.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 700;
}

.login-box h2 .brand-iam {
    color: #000000;
}

.login-box h2 .brand-paolo {
    color: var(--primary-color);
}

.login-box p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.dashboard-container {
    min-height: calc(100vh - 70px);
    background-color: var(--background);
}

/* Container fluid limitato (come iamcarla.it) */
.container-fluid.px-4,
.container-fluid.px-3 {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Admin Dashboard Header (come iamcarla.it - elegante) */
.admin-dashboard-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 140, 90, 0.08));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.15);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.admin-dashboard-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #0b1320;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.admin-dashboard-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* KPI Cards Grid - 3 cards, responsive */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.admin-kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.admin-kpi-card:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.admin-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
}

.admin-kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.admin-kpi-value {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.admin-kpi-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--primary-color);
    border-radius: 10px;
}

.admin-kpi-icon i {
    font-size: 1.3rem;
}

.admin-kpi-icon-job-forms {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
    color: var(--primary-color);
}

.admin-kpi-icon-candidates {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
    color: #3b82f6;
}

.admin-kpi-icon-hires {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    color: #10b981;
}

.admin-kpi-icon-employees {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
    color: #8b5cf6;
}

.admin-kpi-icon-prompts {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
    color: var(--primary-color, #FF6B35);
}

/* Navigation Tabs */
.admin-nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.nav-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Admin Views */
.admin-views {
    margin-top: 2.5rem;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.view-header h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-2xl, 1.5rem);
    color: #334155;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.view-description {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.stat-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.dashboard-recent {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.dashboard-recent h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.activities-list {
    min-height: 200px;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-style: italic;
}

/* Employees */
.employees-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.employees-grid .employee-card {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 400px;
}

.employee-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.employee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.employee-card-title h3 {
    color: var(--text-dark);
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.employee-email {
    color: var(--text-light);
    font-size: 0.9rem;
}

.employee-card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-icon-small:hover {
    background: var(--gray-100);
    color: var(--error-color);
}

.employee-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.employee-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.employee-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.employee-info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.employee-documents {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 0.9rem;
}

.document-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.document-item span {
    flex: 1;
    color: var(--text-dark);
}

.btn-download {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-download:hover {
    background: rgba(255, 107, 53, 0.1);
}

.no-documents {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

/* Job Forms */
.job-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-form-card {
    background: var(--white);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.job-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.job-form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-form-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    flex: 1;
}

/* Job Form Menu (3 dots) */
.job-form-menu {
    position: relative;
    z-index: 10;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-color);
}

.menu-toggle:hover {
    background-color: var(--background);
}

.menu-dots {
    display: inline-block;
    transform: rotate(90deg);
    font-weight: bold;
    letter-spacing: -2px;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    margin-top: 5px;
    z-index: 1000;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: var(--background);
}

.menu-item-danger {
    color: #dc3545;
}

.menu-item-danger:hover {
    background-color: #fee;
    color: #c82333;
}

.menu-item span {
    font-size: 1rem;
}

.job-form-card .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.job-form-card .link-display {
    background: var(--background);
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 15px;
}

.job-form-card .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Forms */
/* Form styles like IamCarla */
.create-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label,
.form-group .form-label {
    font-weight: 600;
    color: #0b1320;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Stili per sezioni collassabili - spostati da inline */
#create-form-section {
    display: none;
    margin-bottom: 2rem;
}

#job-details-view {
    display: none;
}

/* Stili per testo descrittivo - spostati da inline */
.ideal-candidate-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.login-message {
    text-align: center;
    color: var(--text-light);
    margin-top: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #FF6B35);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Elegant Question Item Styling */
#questions-container,
#edit-questions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.question-item {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(2, 6, 23, 0.04);
    position: relative;
}

.question-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.question-item-header {
    display: block;
    margin-bottom: 0.75rem;
}

.question-item-number {
    display: none !important;
}

.question-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
    background: #fff;
    color: #0b1320;
}

.question-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.question-input::placeholder {
    color: #94a3b8;
}

.question-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.question-type {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: #0b1320;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.question-type:hover {
    border-color: var(--primary-color);
}

.question-type:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-remove-question {
    padding: 0.5rem 0.75rem;
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.btn-remove-question:hover {
    background: #fecaca;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

.question-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1.5px solid #f1f5f9;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.option-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.option-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
    background: #fff;
    color: #0b1320;
}

.option-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.option-input::placeholder {
    color: #94a3b8;
}

.btn-remove-option {
    padding: 0.5rem 0.75rem;
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-remove-option:hover {
    background: #fecaca;
    border-color: #fca5a5;
    color: #b91c1c;
}

.btn-add-option {
    padding: 0.5rem 0.875rem;
    background: #f0f9ff;
    color: var(--primary-color);
    border: 1.5px solid #bae6fd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-add-option:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    transform: translateY(-1px);
}

#add-question,
#edit-add-question {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', 'Inter', sans-serif;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.25);
}

#add-question:hover,
#edit-add-question:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

#add-question:active,
#edit-add-question:active {
    transform: translateY(0);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* Candidates List */
.candidates-list {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.candidate-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.candidate-item:last-child {
    border-bottom: none;
}

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

.candidate-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.candidate-score {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.candidate-email {
    color: var(--text-light);
    margin-bottom: 10px;
}

.candidate-responses {
    margin-top: 15px;
}

.response-item {
    margin-bottom: 10px;
    padding: 10px;
    background: var(--background);
    border-radius: 5px;
}

.response-question {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.response-answer {
    color: var(--text-light);
}

/* Query Section */
.query-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.query-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.query-input-group input {
    flex: 1;
}

.query-answer {
    background: var(--background);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Data Table */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.data-table thead {
    background: var(--background);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.data-table tbody tr:hover {
    background: var(--background);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Invites List */
.invites-list {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.invite-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-item:last-child {
    border-bottom: none;
}

.invite-info {
    flex: 1;
}

.invite-email {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.invite-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.invite-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.invite-status.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.invite-status.expired {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.invite-status.used {
    background: rgba(158, 158, 158, 0.1);
    color: var(--text-light);
}

/* Prompts List */
.prompts-list {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.prompt-item {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.prompt-item:hover {
    background: var(--background);
}

.prompt-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.prompt-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.prompt-default-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prompt-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    background: var(--background);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.prompt-actions {
    display: flex;
    gap: 10px;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.rank-badge.rank-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.rank-badge.rank-normal {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rank-badge.rank-unranked {
    background: var(--text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

/* Job Position Title */
.job-position-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Job Description Collapsible */
.job-description-collapsible {
    margin: 15px 0;
}

.job-description-preview {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.job-form-card .job-description-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-details-header {
    margin-bottom: 24px;
}

.job-details-header .job-position-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.job-details-header .job-description-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.job-details-header .job-description-collapsible {
    margin-bottom: 8px;
}

.job-details-header .btn-show-more {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    margin-top: 4px;
    display: inline-block;
}

.job-details-header .btn-show-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 5px 0;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-show-more:hover {
    color: var(--primary-light);
}

/* Link Display Large */
.link-display-large {
    background: var(--background);
    padding: 15px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

/* Candidates Summary Box */
.candidates-summary-box {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.candidates-summary-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.summary-title {
    color: var(--text-dark);
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.btn-toggle-summary {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-toggle-summary:hover {
    color: var(--primary-color);
}

.summary-content {
    background: var(--gray-100);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.summary-placeholder {
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-style: italic;
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
}

.summary-text {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    text-align: left;
    text-indent: 0;
}

.summary-text::first-line {
    text-indent: 0;
    margin-left: 0;
    padding-left: 0;
}

/* Query Box Elegant */
.query-box {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.query-box-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.query-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.query-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.query-answer-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Candidate Item Collapsible */
.candidate-item-collapsible {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.candidate-item-collapsible:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.candidate-header-collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.candidate-accordion {
    margin-top: 15px;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-color);
}

.accordion-header.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.accordion-content {
    display: none;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
}

.analysis-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Job Details Header */
.job-details-header {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* Quick links - elegant aligned cards (like IamCarla) */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md, 1rem);
    margin-top: var(--spacing-xl, 2rem);
    padding: 0;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-link-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #f1f5f9);
    border-radius: 12px;
    padding: var(--spacing-lg, 1.5rem) var(--spacing-md, 1rem);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark, #1e293b);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm, 0.75rem);
    min-height: 140px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #FF6B35), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover {
    border-color: var(--primary-color, #FF6B35);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    text-decoration: none;
    color: var(--text-dark, #1e293b);
    background: var(--white, #ffffff);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

.quick-link-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: var(--font-size-base, 1rem);
    color: var(--text-dark, #1e293b);
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    display: block;
    flex-shrink: 0;
}

.quick-link-card:hover .quick-link-title {
    color: var(--primary-color, #FF6B35);
}

/* Utility classes like IamCarla */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.h4 {
    font-size: var(--font-size-xl, 1.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1e293b);
    font-family: 'Inter', system-ui, sans-serif;
}

.text-muted {
    color: var(--text-secondary, #475569);
    font-family: 'Inter', system-ui, sans-serif;
}

.small {
    font-size: var(--font-size-sm, 0.875rem);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Collapsible Section Styles */
.collapsible-section {
    margin-bottom: 1.5rem;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    border-color: var(--primary-color, #FF6B35);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1320;
}

.collapsible-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color, #FF6B35);
}

.collapsible-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-user-stats-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table-header {
    padding: 1rem 1.5rem;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.admin-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1320;
    margin: 0;
}

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

.admin-stats-table thead {
    background: var(--background);
}

.admin-stats-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.admin-stats-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: #0b1320;
    font-size: 0.95rem;
}

.admin-stats-table tbody tr:hover {
    background: var(--background);
}

.admin-stats-table tbody tr:last-child td {
    border-bottom: none;
}
