/* Auth Pages Styles */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E4A72 0%, #1a2d4a 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-title {
    font-size: 11px;
    font-weight: 600;
    color: #3C6494;
    /* Lapis Lazuli */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #2E4A72;
    /* YInMn Blue */
    margin: 0 0 6px 0;
}

.auth-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Alert Messages */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f9fafb;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3C6494;
    /* Lapis Lazuli */
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(60, 100, 148, 0.15);
}

.input-with-icon input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #6b7280;
}

.toggle-password svg {
    position: static;
    width: 20px;
    height: 20px;
}

/* Checkbox */
.form-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3C6494;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3C6494 0%, #2E4A72 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(46, 74, 114, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2E4A72 0%, #1a2d4a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(46, 74, 114, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-block {
    width: 100%;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.auth-footer a {
    color: #3C6494;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Unauthorized Page */
.unauthorized-container {
    text-align: center;
}

.unauthorized-icon {
    width: 80px;
    height: 80px;
    color: #dc2626;
    margin-bottom: 24px;
}

.unauthorized-container h1 {
    font-size: 28px;
    color: #1a1f35;
    margin: 0 0 12px 0;
}

.unauthorized-container p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* User Management Page */
.users-page {
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1f35;
    margin: 0;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #3C6494;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: #2d4a6f;
}

.btn-add svg {
    width: 18px;
    height: 18px;
}

/* Users Table */
.users-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.users-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
}

.users-table td {
    font-size: 14px;
    color: #374151;
}

.users-table tr:hover {
    background: #f9fafb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3C6494;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: #1a1f35;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
}

/* Role and Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin,
.badge-super_admin {
    background: #e8f0f8;
    color: #2E4A72;
}

.badge-recruiter {
    background: #dbeafe;
    color: #1e40af;
}

.badge-user,
.badge-data_entry {
    background: #e5e7eb;
    color: #374151;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #e5e7eb;
    color: #6b7280;
}

.badge-suspended {
    background: #fee2e2;
    color: #991b1b;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-edit {
    background: #dbeafe;
    color: #1e40af;
}

.btn-edit:hover {
    background: #bfdbfe;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-password {
    background: #e8f0f8;
    color: #2E4A72;
}

.btn-password:hover {
    background: #c8d9eb;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f35;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-cancel {
    padding: 10px 20px;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-submit {
    padding: 10px 20px;
    background: #3C6494;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #2d4a6f;
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Form in Modal */
.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form .form-group:last-child {
    margin-bottom: 0;
}

.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: #3C6494;
    box-shadow: 0 0 0 3px rgba(60, 100, 148, 0.1);
}

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

/* Profile Page */
.profile-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.profile-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f35;
    margin: 0;
}

.profile-card-body {
    padding: 24px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #3C6494;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 28px;
}

.profile-meta {
    flex: 1;
}

.profile-meta h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1f35;
    margin: 0 0 4px 0;
}

.profile-meta p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .btn-submit {
    margin-top: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .users-table-container {
        overflow-x: auto;
    }

    .users-table {
        min-width: 700px;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }
}