/* =====================================================
   RESET & BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f4f9;
    color: #1a2332;
    min-height: 100vh;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e8edf3;
}
::-webkit-scrollbar-thumb {
    background: #2c3e6b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a3355;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: linear-gradient(135deg, #0b1a33 0%, #1a3355 50%, #2c4a7a 100%);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(11, 26, 51, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 12px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.navbar .logo i {
    font-size: 32px;
    color: #ffd700;
}

.navbar .logo span:first-of-type {
    color: #ffd700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar .badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.navbar .badge i {
    margin-right: 6px;
}

.navbar .user-count {
    color: #aac4e8;
    font-size: 14px;
    font-weight: 500;
}

.navbar .user-count i {
    margin-right: 6px;
}

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 24px;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0b1a33;
}

.page-header h2 i {
    color: #2c4a7a;
    margin-right: 10px;
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header .header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-back {
    background: #e8edf3;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3355;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-back:hover {
    background: #d0d9e6;
    transform: translateX(-4px);
}

.btn-primary {
    background: linear-gradient(135deg, #1a3355, #2c4a7a);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44, 74, 122, 0.35);
}

.btn-add {
    background: linear-gradient(135deg, #0b7a3a, #0f9d54);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 122, 58, 0.35);
}

.btn-upload {
    background: linear-gradient(135deg, #0b7a3a, #0f9d54);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 122, 58, 0.35);
}

.btn-cancel {
    background: #e8edf3;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3355;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #d0d9e6;
}

.btn-save {
    background: linear-gradient(135deg, #1a3355, #2c4a7a);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 74, 122, 0.35);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 4px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.search-box i {
    color: #8a9bb5;
    font-size: 16px;
}

.search-box input {
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    outline: none;
    width: 220px;
    color: #1a2332;
}

.search-box input::placeholder {
    color: #a0b3cc;
}

.search-box input:focus {
    border-color: #2c4a7a;
}

/* =====================================================
   HOME / TNPC CARD (INDEX PAGE)
   ===================================================== */
.home-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.tnpc-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 30px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(11, 26, 51, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(44, 74, 122, 0.1);
    max-width: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.tnpc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 26, 51, 0.02), rgba(44, 74, 122, 0.05));
    border-radius: 30px;
}

.tnpc-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(11, 26, 51, 0.25);
    border-color: #2c4a7a;
}

.tnpc-card .card-icon {
    font-size: 72px;
    color: #2c4a7a;
    margin-bottom: 16px;
    background: rgba(44, 74, 122, 0.12);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.tnpc-card:hover .card-icon {
    background: rgba(44, 74, 122, 0.22);
    transform: scale(1.05);
}

.tnpc-card h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0b1a33;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.tnpc-card p {
    font-size: 18px;
    color: #4a5f7a;
    margin-top: 8px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.tnpc-card .card-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 24px 0 20px;
    position: relative;
    z-index: 1;
}

.tnpc-card .card-stats span {
    font-size: 15px;
    font-weight: 600;
    color: #1a3355;
    background: #f0f4f9;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.tnpc-card .card-stats i {
    color: #2c4a7a;
    margin-right: 8px;
}

.tnpc-card .click-hint {
    color: #2c4a7a;
    font-weight: 600;
    font-size: 15px;
    animation: pulse 2s infinite;
    background: rgba(44, 74, 122, 0.06);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* =====================================================
   USER GRID (USERS PAGE)
   ===================================================== */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.user-card {
    background: white;
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8edf3;
    display: block;
    color: inherit;
}

.user-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 26, 51, 0.12);
    border-color: #2c4a7a;
}

/* =====================================================
   USER CARD - AVATAR STYLES
   ===================================================== */
.user-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid #e8edf3;
    transition: all 0.3s;
    background: #f0f4f9;
}

.user-card:hover .avatar {
    border-color: #2c4a7a;
}

.user-card .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #2c4a7a, #1a3355);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    border: 3px solid #e8edf3;
    transition: all 0.3s;
    text-transform: uppercase;
}

.user-card:hover .avatar-placeholder {
    border-color: #2c4a7a;
    transform: scale(1.05);
}

.user-card .name {
    font-size: 18px;
    font-weight: 700;
    color: #0b1a33;
}

.user-card .phone {
    font-size: 14px;
    color: #6a7f9a;
    margin-top: 4px;
}

.user-card .doc-badge {
    display: inline-block;
    margin-top: 10px;
    background: #e8f0fe;
    color: #2c4a7a;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.user-card .doc-badge i {
    margin-right: 4px;
}

/* =====================================================
   USER CARD ACTION BUTTONS
   ===================================================== */
.user-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-card .card-actions button {
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-card .card-actions .btn-view {
    background: #e8f0fe;
    color: #2c4a7a;
}

.user-card .card-actions .btn-view:hover {
    background: #2c4a7a;
    color: white;
}

.user-card .card-actions .btn-edit {
    background: #e8f0fe;
    color: #2c4a7a;
}

.user-card .card-actions .btn-edit:hover {
    background: #2c4a7a;
    color: white;
}

.user-card .card-actions .btn-delete-user {
    background: #fde8e8;
    color: #dc3545;
}

.user-card .card-actions .btn-delete-user:hover {
    background: #dc3545;
    color: white;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    border: 1px solid #dce3ec;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3355;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 44px;
}

.page-btn:hover:not(:disabled) {
    background: #2c4a7a;
    color: white;
    border-color: #2c4a7a;
}

.page-btn.active {
    background: #2c4a7a;
    color: white;
    border-color: #2c4a7a;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-numbers .page-btn {
    min-width: 40px;
    text-align: center;
}

/* =====================================================
   PROFILE CARD (DETAILS PAGE)
   ===================================================== */
.profile-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   PROFILE PAGE - AVATAR STYLES
   ===================================================== */
.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 4px solid #2c4a7a;
    box-shadow: 0 8px 24px rgba(44, 74, 122, 0.2);
    background: #f0f4f9;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #2c4a7a, #1a3355);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    border: 4px solid #2c4a7a;
    box-shadow: 0 8px 24px rgba(44, 74, 122, 0.2);
    text-transform: uppercase;
}

.profile-info h2 {
    font-size: 28px;
    color: #0b1a33;
}

.profile-info p {
    font-size: 16px;
    color: #4a5f7a;
    margin: 6px 0;
}

.profile-info p i {
    color: #2c4a7a;
    width: 24px;
}

/* =====================================================
   DETAILS GRID (DETAILS PAGE)
   ===================================================== */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.details-info,
.details-docs {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.details-info h3,
.details-docs h3 {
    font-size: 20px;
    color: #0b1a33;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f9;
}

.details-info h3 i,
.details-docs h3 i {
    color: #2c4a7a;
    margin-right: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: #6a7f9a;
}

.info-row .value {
    font-weight: 600;
    color: #0b1a33;
}

/* =====================================================
   DOCUMENTS LIST
   ===================================================== */
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s;
    border-left: 4px solid #2c4a7a;
}

.document-item:hover {
    background: #f0f4f9;
    transform: translateX(4px);
}

.document-item .doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-item .doc-info i {
    font-size: 28px;
    color: #2c4a7a;
}

.document-item .doc-info .doc-name {
    font-weight: 500;
    color: #0b1a33;
}

.document-item .doc-info .doc-size {
    font-size: 12px;
    color: #8a9bb5;
}

.document-item .doc-actions {
    display: flex;
    gap: 8px;
}

.document-item .doc-actions button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.document-item .doc-actions .btn-view {
    color: #2c4a7a;
    background: #e8f0fe;
}

.document-item .doc-actions .btn-view:hover {
    background: #2c4a7a;
    color: white;
}

.document-item .doc-actions .btn-download {
    color: #0b7a3a;
    background: #e8f5ee;
}

.document-item .doc-actions .btn-download:hover {
    background: #0b7a3a;
    color: white;
}

.document-item .doc-actions .btn-delete-doc {
    color: #dc3545;
    background: #fde8e8;
}

.document-item .doc-actions .btn-delete-doc:hover {
    background: #dc3545;
    color: white;
}

.empty-docs {
    text-align: center;
    padding: 40px 20px;
    color: #8a9bb5;
}

.empty-docs i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-docs p {
    font-size: 16px;
}

/* =====================================================
   IMAGE UPLOAD - CLEAN & PROFESSIONAL
   ===================================================== */
.upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.upload-circle {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #f0f4f9;
    border: 3px dashed #c0cbd8;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-circle:hover {
    border-color: #2c4a7a;
    background: #e8edf3;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(44, 74, 122, 0.15);
}

/* Image inside circle - properly sized */
.upload-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-circle img.show {
    display: block;
}

/* Placeholder when no image */
.upload-circle .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a9bb5;
    padding: 15px;
    text-align: center;
    z-index: 1;
}

.upload-circle .upload-placeholder i {
    font-size: 32px;
    color: #2c4a7a;
    margin-bottom: 6px;
}

.upload-circle .upload-placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: #1a3355;
}

.upload-circle .upload-placeholder small {
    font-size: 11px;
    color: #a0b3cc;
    margin-top: 2px;
}

/* When image is uploaded */
.upload-circle.has-image .upload-placeholder {
    display: none;
}

.upload-circle.has-image img {
    display: block !important;
}

/* =====================================================
   PHONE INPUT WITH +91 PREFIX
   ===================================================== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #fafbfc;
    transition: all 0.3s;
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: #2c4a7a;
    box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.1);
    background: white;
}

.phone-input-wrapper .phone-prefix {
    padding: 12px 12px 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #1a3355;
    background: #e8edf3;
    border-right: 1px solid #dce3ec;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
}

.phone-input-wrapper input {
    border: none !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    background: transparent !important;
    outline: none !important;
    flex: 1;
    min-width: 0;
    letter-spacing: 1px;
    box-shadow: none !important;
}

.phone-input-wrapper input:focus {
    box-shadow: none !important;
    border: none !important;
}

.phone-input-wrapper input::placeholder {
    color: #a0b3cc;
    letter-spacing: 0.5px;
}

/* Phone input validation states */
.phone-input-wrapper.invalid {
    border-color: #dc3545;
}

.phone-input-wrapper.invalid:focus-within {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.phone-input-wrapper.valid {
    border-color: #0b7a3a;
}

.phone-input-wrapper.valid:focus-within {
    border-color: #0b7a3a;
    box-shadow: 0 0 0 3px rgba(11, 122, 58, 0.1);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
    position: relative;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-sm {
    max-width: 420px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8edf3;
}

.modal-header h3 {
    font-size: 20px;
    color: #0b1a33;
}

.modal-header h3 i {
    color: #2c4a7a;
    margin-right: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #8a9bb5;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #dc3545;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    position: relative;
    min-height: 100px;
}

/* =====================================================
   FORM STYLES
   ===================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1a3355;
    margin-bottom: 6px;
}

.form-group label i {
    color: #2c4a7a;
    width: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c4a7a;
    box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #a0b3cc;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #8a9bb5;
    font-size: 11px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e8edf3;
}

/* =====================================================
   FORM LOADING SPINNER
   ===================================================== */
.form-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 10;
}

.form-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8edf3;
    border-top: 4px solid #2c4a7a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-loading p {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3355;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   TOAST NOTIFICATIONS - BOTTOM RIGHT
   ===================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUpToast 0.4s ease;
    pointer-events: auto;
    border-left: 4px solid #2c4a7a;
}

.toast.success {
    border-left-color: #0b7a3a;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast .toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #0b7a3a;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast .toast-content {
    flex: 1;
}

.toast .toast-content .toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a2332;
}

.toast .toast-content .toast-message {
    font-size: 13px;
    color: #6a7f9a;
    margin-top: 2px;
}

.toast .toast-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #8a9bb5;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s;
}

.toast .toast-close:hover {
    color: #dc3545;
    transform: rotate(90deg);
}

.toast.hiding {
    animation: slideDownToast 0.4s ease forwards;
}

/* =====================================================
   TOAST ANIMATIONS - BOTTOM RIGHT
   ===================================================== */
@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDownToast {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
}

/* =====================================================
   RESPONSIVE - TABLETS & SMALLER
   ===================================================== */
@media (max-width: 1024px) {
    .details-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    .navbar .logo {
        font-size: 18px;
    }
    .navbar .logo i {
        font-size: 24px;
    }
    .navbar .badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    .navbar .user-count {
        font-size: 12px;
    }

    .container {
        padding: 16px;
    }

    .tnpc-card {
        padding: 40px 30px;
    }
    .tnpc-card h1 {
        font-size: 38px;
    }
    .tnpc-card .card-icon {
        width: 90px;
        height: 90px;
        line-height: 90px;
        font-size: 44px;
    }
    .tnpc-card .card-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .tnpc-card .card-stats span {
        width: 100%;
        max-width: 220px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .page-header h2 {
        font-size: 20px;
    }
    .page-header .header-left {
        flex-direction: column;
        align-items: stretch;
    }
    .page-header .header-right {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }
    .search-box input {
        width: 100%;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
    }

    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .profile-card {
        padding: 24px;
    }
    .profile-avatar {
        width: 110px;
        height: 110px;
    }
    .profile-avatar-placeholder {
        width: 110px;
        height: 110px;
        font-size: 38px;
    }
    .profile-info h2 {
        font-size: 22px;
    }

    .details-info,
    .details-docs {
        padding: 18px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    .btn-upload {
        padding: 12px 20px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .modal-header h3 {
        font-size: 17px;
    }
    .modal-body {
        padding: 18px;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .user-card .card-actions {
        flex-wrap: wrap;
    }
    .user-card .card-actions button {
        font-size: 11px;
        padding: 4px 10px;
    }

    .upload-circle {
        width: 110px;
        height: 110px;
    }
    .upload-circle .upload-placeholder i {
        font-size: 26px;
    }
    .upload-circle .upload-placeholder span {
        font-size: 12px;
    }

    /* Phone input responsive */
    .phone-input-wrapper .phone-prefix {
        padding: 10px 10px 10px 14px;
        font-size: 13px;
        min-width: 40px;
    }
    .phone-input-wrapper input {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    /* Toast responsive */
    .toast-container {
        bottom: 20px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    .toast {
        padding: 14px 16px;
        border-radius: 10px;
    }
    .toast .toast-content .toast-title {
        font-size: 13px;
    }
    .toast .toast-content .toast-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 16px;
    }
    .navbar .logo i {
        font-size: 20px;
    }
    .navbar .badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    .nav-right {
        gap: 10px;
    }

    .tnpc-card {
        padding: 30px 20px;
    }
    .tnpc-card h1 {
        font-size: 30px;
        letter-spacing: 1px;
    }
    .tnpc-card .card-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 34px;
    }
    .tnpc-card p {
        font-size: 15px;
    }
    .tnpc-card .card-stats span {
        font-size: 13px;
        padding: 8px 16px;
    }
    .tnpc-card .click-hint {
        font-size: 13px;
        padding: 6px 16px;
    }

    .users-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .user-card {
        padding: 16px 12px;
    }
    .user-card .avatar {
        width: 56px;
        height: 56px;
    }
    .user-card .avatar-placeholder {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    .user-card .name {
        font-size: 14px;
    }
    .user-card .phone {
        font-size: 12px;
    }
    .user-card .doc-badge {
        font-size: 10px;
        padding: 3px 12px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 36px;
    }
    .page-numbers .page-btn {
        min-width: 34px;
    }

    .profile-card {
        padding: 20px 16px;
    }
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    .profile-avatar-placeholder {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }
    .profile-info h2 {
        font-size: 20px;
    }
    .profile-info p {
        font-size: 14px;
    }

    .details-info,
    .details-docs {
        padding: 14px;
    }
    .details-info h3,
    .details-docs h3 {
        font-size: 17px;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    .info-row .label {
        font-size: 13px;
    }
    .info-row .value {
        font-size: 14px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    .document-item .doc-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .document-item .doc-info .doc-name {
        font-size: 14px;
    }
    .document-item .doc-info .doc-size {
        font-size: 11px;
    }

    .btn-back {
        font-size: 13px;
        padding: 8px 16px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    .btn-upload {
        padding: 10px 16px;
        font-size: 13px;
    }
    .btn-add {
        padding: 10px 16px;
        font-size: 13px;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .modal-sm {
        max-width: 95%;
    }

    .upload-circle {
        width: 90px;
        height: 90px;
    }
    .upload-circle .upload-placeholder i {
        font-size: 22px;
    }
    .upload-circle .upload-placeholder span {
        font-size: 11px;
    }
    .upload-circle .upload-placeholder small {
        font-size: 9px;
    }

    /* Phone input responsive */
    .phone-input-wrapper .phone-prefix {
        padding: 8px 6px 8px 10px;
        font-size: 12px;
        min-width: 34px;
    }
    .phone-input-wrapper input {
        padding: 8px 10px !important;
        font-size: 13px !important;
        letter-spacing: 0.5px;
    }

    /* Toast responsive */
    .toast-container {
        bottom: 15px;
        right: 10px;
        left: 10px;
    }
    .toast {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .toast .toast-icon {
        font-size: 20px;
    }
    .toast .toast-content .toast-title {
        font-size: 13px;
    }
    .toast .toast-content .toast-message {
        font-size: 12px;
    }
    .toast .toast-close {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .users-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .user-card {
        padding: 12px 8px;
    }
    .user-card .avatar {
        width: 44px;
        height: 44px;
    }
    .user-card .avatar-placeholder {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .user-card .name {
        font-size: 12px;
    }
    .user-card .phone {
        font-size: 11px;
    }
    .tnpc-card h1 {
        font-size: 26px;
    }
    .tnpc-card .card-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 28px;
    }

    .phone-input-wrapper .phone-prefix {
        padding: 6px 4px 6px 8px;
        font-size: 11px;
        min-width: 30px;
    }
    .phone-input-wrapper input {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .navbar {
        position: static;
        background: #0b1a33 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .btn-back,
    .btn-primary,
    .btn-upload,
    .btn-add,
    .doc-actions,
    .card-actions,
    .search-box,
    .pagination,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }
    .tnpc-card {
        box-shadow: none !important;
        border: 2px solid #0b1a33 !important;
    }
    .user-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    .details-info,
    .details-docs {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .profile-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}
.text-muted {
    color: #8a9bb5;
}
.mt-10 {
    margin-top: 10px;
}
.mt-20 {
    margin-top: 20px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-20 {
    margin-bottom: 20px;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gap-10 {
    gap: 10px;
}
.gap-20 {
    gap: 20px;
}
.w-100 {
    width: 100%;
}