 
   body {
        background-color: #F8F8F8;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0;
        padding: 0;
    }

    #divName {
        width: 150px;
        margin-left: 450px;
    }

    #btnserch {
        margin-left: 600px;
    }

    #divPhoneNo {
        margin-left: 200px;
    }

    #img_Aghadi {
      width: 100%;
      max-width: 1000px;
      height: auto;
      display: block;
      object-fit: contain;
      margin: 10px auto 20px auto;
      padding-left: 0px;
      padding-right: 0px;
      border: 1px solid black;
    }

    #btnClose {
        margin-left: 60px;
    }

    .section-ACselect {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 100%;
        position: relative;
        align-items: center;
        gap: 10px;
        flex-direction: row;
    }

    .button {
        padding: 10px 20px;
        background-color: #FF5C00;
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        transition: background-color 0.3s, transform 0.2s;
        margin: 5px 0;
        white-space: nowrap;
    }

    .button:hover {
        background-color: #FF5C00;
        transform: scale(1.05);
    }

    @media (max-width: 600px) {
        .section-ACselect {
            flex-wrap: wrap;
            gap: 8px;
            flex-direction: row;
        }
        .button {
            padding: 6px 12px;
            font-size: 12px;
            margin: 3px;
            white-space: normal;
        }
    }

    /* Popup card style */
    #card {
        display: none;
        margin: auto;
        margin-top: 30px;
        width: 90%;
        max-width: 550px;
        background-color: #f4fff4;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        position: relative;
        padding: 20px;
        animation: popupFade 0.4s ease-in-out;
    }

    /* Card header styling */
    .card-header {
        background-color: #FF5C00;
        color: white;
        padding: 10px 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        text-align: center;
    }

    /* Form inputs */
    #card .form-control {
        border-radius: 5px;
    }

    /* Buttons inside card */
    #card button.btn {
        background-color: #FF5C00;
        color: white;
        border: none;
        padding: 8px 20px;
        margin: 10px 10px 0 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    #card button.btn:hover {
        background-color: #004d00;
        transform: scale(1.05);
    }

    /* Popup fade animation */
    @keyframes popupFade {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .card-my {
        background: #f8f9fa;
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        margin: 15px 10px;
        transition: transform 0.3s ease;
        width: 100%;
        max-width: 600px;
    }

    .card-my:hover {
        transform: translateY(-5px);
    }

    .card-my .card-body {
        padding: 15px;
    }

    .card-my p {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.4;
    }

    .card-my a {
        text-decoration: none;
    }

    #TblVoterList {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 0 10px;
    }

    @media (max-width: 576px) {
        .card-my {
            margin: 10px auto;
            padding: 10px;
        }

        .card-my p {
            font-size: 13px;
        }

        .card-my .btn {
            font-size: 12px;
            padding: 6px 10px;
        }
    }

    /* Voter Details Modal Styling */
    .modal-content {
        background-color: #ffffff;
        border-radius: 10px;
        border: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .modal-header {
        background-color: #FF5C00;
        color: white;
        padding: 15px 20px;
        border-bottom: 2px solid #FF5C00;
    }

    .modal-title {
        margin: 0;
        font-size: 22px;
        font-weight: bold;
    }

    .modal-body table {
        border-collapse: collapse;
        width: 100%;
        font-size: 14px;
    }

    .modal-body table th,
    .modal-body table td {
        text-align: center;
        padding: 8px;
        border: 1px solid #ccc;
    }

    .modal-body table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .modal-body label,
    .modal-body p {
        font-size: 15px;
        color: #333;
    }

    .modal-body h4 {
        font-size: 16px;
        font-weight: 600;
    }

    .modal-body input.form-control {
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    .modal-footer {
        background-color: #f5f5f5;
        padding: 15px;
        border-top: 1px solid #ddd;
    }

    .modal-footer button {
        padding: 8px 20px;
        font-weight: 600;
        border-radius: 5px;
    }

    #btnSendWhatsup button {
        background-color: #28a745;
        color: white;
        border: none;
    }

    #btnSendWhatsup button:hover {
        background-color: #218838;
    }

    #btnClose button {
        background-color: #0286fa;
        color: white;
        border: none;
    }

    #btnClose button:hover {
        background-color: #5a6268;
    }

    @media (max-width: 576px) {
        .modal-body h4,
        .modal-body p,
        .modal-body label {
            font-size: 14px;
        }

        .modal-title {
            font-size: 18px;
        }

        #btnSendWhatsup,
        #btnClose {
            text-align: center;
            margin-top: 10px;
        }
    }

    .btn-admin-custom {
        background-color: white;
        color: #FF5C00;
        border: 2px solid #FF5C00;
        padding: 6px 16px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .btn-admin-custom:hover {
        background-color: #FF5C00;
        color: white;
        text-decoration: none;
    }

    @media screen and (max-width: 576px) {
        .btn-admin-custom {
            font-size: 12px;
            padding: 4px 10px;
        }

        #ButtonDiv > div[style*="position: absolute"] {
            top: 10px !important;
            right: 10px !important;
        }
    }

    /* Container for buttons and image */
    #buttonImageContainer {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .voter-card {
        background: #fff;
        border: 1px solid #d82424 !important; /* 👈 Add this line */
        border-radius: 20px;
        margin: 10px;
        padding: 15px;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      
        height: 220px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
.voter-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.voter-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.voter-details {
    font-size: 16px;
    color: #d9534f;
    margin: 0;
}

    @media (max-width: 768px) {
    .voter-card {
        height: auto;
        min-height: 200px;
    }
}

.social-icon {
    width: 32px;
    height: 32px;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

    .social-icon:hover {
        transform: scale(1.1);
    }
 .customLinkIcon {
        width: 24px;
        height: 24px;
        object-fit: cover;
    }

    
    #scrollToTop {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 1000;
        background-color: #FF5C00;
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        font-size: 20px;
        transition: all 0.3s ease;
    }

    #scrollToTop:hover {
        background-color: #ff9900;
        transform: scale(1.1);
    }

    .link-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Desktop */
        gap: 16px;
        justify-content: center;
        padding: 20px;
        max-width: 1000px;
        margin: auto;
    }

    .link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    flex-direction: row;
    white-space: nowrap;

    /* 👇 Desktop: width reduced */
    max-width: 160px;
    width: 100%;
}
    .link-item:hover {
        transform: scale(1.05);
    background-color: #eee;
    }

    .customLinkIcon {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
    }

    /* 🔻 Mobile View */
    @media (max-width: 768px) {
        .link-container {
            grid-template-columns: repeat(3, 1fr); /* 3 per row */
            justify-content: center;
        }

        .link-container a:nth-child(4),
        .link-container a:nth-child(5) {
            grid-column: span 1;
            justify-self: center; /* Center-align in row */
        }
        .link-item {
        max-width: none;
        width: 100%;
    }
    }
/* Modern responsive table styling */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.table-modern th, .table-modern td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.table-modern thead {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.table-modern tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* Responsive handling */
@media screen and (max-width: 768px) {
    .table-modern {
        font-size: 0.9rem;
    }
    .table-modern th, .table-modern td {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 576px) {
    #ButtonDiv > div[style*="position: absolute"] {
        right: 10px !important;
        top: 10px !important;
        gap: 6px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    #languageSwitcher {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 70px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    background-position: right 6px center !important;
    background-size: 10px 10px !important;
  }

  #languageSwitcher option {
    padding: 0px !important;
  }

    .btn-admin-custom {
        font-size: 13px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
    }
}

