/* Color Scheme - Professional */
:root {
    --green-primary: #3FDF3F;
    --green-hover: #30c430;
    --green-light: rgba(63, 223, 63, 0.15);
    --green-border: rgba(63, 223, 63, 0.3);
    --deep-gray: #020817;
    --black-primary: #0b1324;
    --black-text: #0f172a;
    --black-secondary: #1e293b;
    --white: #ffffff;
    --gray-bg: #f5f7fb;
    --gray-light: #f1f5f9;
    --gray-border: #e2e8f0;
    --gray-text: #6b7280;
    --gray-text-dark: #334155;
    --muted-text: #94a3b8;
    --lavender: #e4ddff;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --shadow-sm: 0 4px 12px rgba(2, 8, 23, 0.04);
    --shadow-md: 0 20px 45px rgba(2, 8, 23, 0.08);
    --shadow-lg: 0 35px 65px rgba(2, 8, 23, 0.12);
    --shadow-xl: 0 60px 120px rgba(2, 8, 23, 0.18);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: var(--black-text);
    line-height: 1.55;
    min-height: 100vh;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 56px 72px;
    background: linear-gradient(180deg, rgba(4, 8, 23, 0.02), rgba(4, 8, 23, 0.02)) no-repeat;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 32px 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px 32px;
    }
}

/* Dashboard Layout */
.dashboard-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 28px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 45px rgba(2, 8, 23, 0.06);
}

.quick-panel {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    padding: 18px 18px 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
    backdrop-filter: blur(6px);
}

.quick-panel h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-text-dark);
    letter-spacing: 0;
}

.quick-action-btn {
    width: 100%;
    border: 1px solid transparent;
    background: rgba(241, 245, 249, 0.8);
    color: var(--black-text);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action-btn:last-child {
    margin-bottom: 0;
}

.quick-action-btn:hover {
    background: rgba(34, 197, 94, 0.14);
    color: var(--green-hover);
    border-color: rgba(34, 197, 94, 0.4);
}

.quick-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-primary);
    display: inline-flex;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: -4px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.metric-card {
    border-radius: 24px;
    padding: 28px 32px;
    border: none;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-height: 170px;
}

.metric-card.clickable-metric {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-card.clickable-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.metric-card.clickable-metric.active {
    border: 2px solid var(--green-primary);
    box-shadow: 0 20px 50px rgba(63, 223, 63, 0.2);
}

.metric-card:nth-child(1) {
    background: linear-gradient(140deg, #31d67a, #23b0ff);
    border: none;
    color: var(--white);
    box-shadow: 0 25px 50px rgba(35, 176, 255, 0.35);
}

.metric-card:nth-child(2) {
    background: linear-gradient(145deg, #f9fbff, #eef2ff);
}

.metric-card:nth-child(3) {
    background: linear-gradient(145deg, #fff8f4, #ffeede);
}

.metric-card:nth-child(4) {
    background: linear-gradient(145deg, #f3f7ff, #e8f0ff);
}

.metric-card:nth-child(1) .metric-label,
.metric-card:nth-child(1) .metric-subtext {
    color: rgba(255, 255, 255, 0.85);
}

.metric-card:nth-child(1) .metric-value {
    color: var(--white);
}

.metric-card:nth-child(1) .metric-chip {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.chip-green {
    background: rgba(63, 223, 63, 0.15);
    color: var(--green-hover);
}

.chip-green-muted {
    background: rgba(47, 177, 102, 0.1);
    color: var(--green-primary);
}

.chip-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.chip-slate {
    background: rgba(51, 65, 85, 0.12);
    color: var(--gray-text-dark);
}

.metric-label {
    font-size: 13px;
    color: #1f2937;
    letter-spacing: 0.12em;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 600;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #0b1220;
    margin-bottom: 2px;
}

.metric-subtext {
    font-size: 13px;
    color: #5b6475;
    font-weight: 500;
}

.metric-card.accent .metric-label,
.metric-card.accent .metric-subtext {
    color: rgba(255, 255, 255, 0.8);
}

.metric-card.accent .metric-value {
    color: var(--white);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 16px 0;
    margin-bottom: 12px;
    box-shadow: 0 18px 35px rgba(2, 8, 23, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.header-content {
    width: 100%;
    margin: 0;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--black-primary);
    letter-spacing: -0.7px;
    margin: 0;
}

.logo::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.tagline {
    font-size: 13px;
    color: var(--muted-text);
    font-weight: 500;
    margin: 2px 0 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-user-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: var(--white);
}

.profile-header:hover {
    background: var(--gray-light);
    border-color: var(--gray-border);
}

.profile-header.active {
    background: var(--gray-light);
    border-color: var(--gray-border);
}

.profile-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(63, 223, 63, 0.25);
    border: 2px solid var(--white);
}

.profile-info-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-name-header {
    color: var(--black-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role-header {
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.profile-dropdown-icon {
    color: var(--gray-text);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.profile-header.active .profile-dropdown-icon {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--gray-border);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 12px 16px;
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.profile-dropdown-header span {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profile-dropdown-menu {
    padding: 8px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--black-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.profile-dropdown-item:hover {
    background: var(--gray-light);
    color: var(--black-text);
}

.profile-dropdown-item svg {
    color: var(--gray-text);
    flex-shrink: 0;
}

.profile-dropdown-item:hover svg {
    color: var(--green-primary);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--gray-border);
    margin: 8px 0;
}

.profile-dropdown-logout {
    color: #ef4444;
}

.profile-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.profile-dropdown-logout svg {
    color: #ef4444;
}

.profile-dropdown-logout:hover svg {
    color: #dc2626;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-tab {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: none;
    color: var(--gray-text-dark);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nav-tab:hover {
    background: var(--gray-light);
    color: var(--black-text);
}

.nav-tab.active {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

/* Main Content */
.main-content {
    min-height: 500px;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Card */
.card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: 0 24px 45px rgba(2, 8, 23, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 30px 65px rgba(2, 8, 23, 0.12);
    transform: translateY(-3px);
}

.card h2 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black-primary);
    letter-spacing: -0.3px;
}

.card-description {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--black-text);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    color: var(--black-text);
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px var(--green-light);
}

.form-control::placeholder {
    color: var(--gray-text);
}

.form-control:hover:not(:focus) {
    border-color: var(--gray-text-dark);
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--gray-text);
    font-size: 13px;
}

/* File Select Group */
.file-select-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.file-select-group .form-control {
    flex: 1;
}

.file-upload-group {
    margin-top: 16px;
    text-align: center;
}

.divider {
    display: block;
    margin: 20px 0;
    color: var(--gray-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gray-light);
    border: 1px dashed var(--gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-text-dark);
    font-weight: 600;
    font-size: 14px;
}

.upload-label:hover {
    border-color: var(--green-primary);
    background: var(--green-light);
    color: var(--black-text);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(63, 223, 63, 0.35);
    font-weight: 600;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--green-hover), #25995a);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(63, 223, 63, 0.45);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--black-text);
    border: 1.5px solid var(--gray-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--gray-light);
    border-color: var(--gray-text-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.btn-logout {
    background: #ef4444;
    color: var(--white);
    border: 1.5px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-logout:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
    background: var(--white);
    color: var(--gray-text-dark);
    border: 1.5px solid var(--gray-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-ghost:hover {
    border-color: var(--green-primary);
    color: var(--green-hover);
    background: rgba(63, 223, 63, 0.05);
    box-shadow: 0 2px 8px rgba(63, 223, 63, 0.15);
    transform: translateY(-1px);
}

.btn-ghost.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-success {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-success:hover {
    background: var(--green-hover);
    box-shadow: var(--shadow-xl);
}

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

.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}

.profile-actions-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text-dark);
    background: var(--white);
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 8, 23, 0.06);
}

.btn-dashboard:hover {
    background: var(--gray-light);
    border-color: var(--gray-text-dark);
    color: var(--black-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 8, 23, 0.1);
}

.btn-dashboard svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-dashboard:hover svg {
    transform: translateX(-2px);
}

.btn-logout-professional {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    background: var(--white);
    border: 1.5px solid #ef4444;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
    position: relative;
}

.btn-logout-professional:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout-professional:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.btn-logout-professional svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

@media (max-width: 640px) {
    .profile-actions-section {
        flex-direction: column;
    }
    
    .btn-dashboard,
    .btn-logout-professional {
        width: 100%;
        justify-content: center;
    }
}

.info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    min-width: 140px;
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.info-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--black-text);
}

/* Progress Section */
.progress-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-border);
}

.progress-section h3 {
    margin-bottom: 20px;
    color: var(--black-text);
    font-size: 18px;
    font-weight: 600;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--gray-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-primary), var(--green-hover));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    color: var(--black-text);
    font-weight: 600;
    min-width: 50px;
    text-align: right;
    font-size: 14px;
}

/* Results Container */
.results-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    background: var(--gray-light);
    padding: 16px;
}

.result-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.result-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.result-item.success {
    border-left-color: var(--success-color);
}

.result-item.failed {
    border-left-color: var(--error-color);
}

.result-item.error {
    border-left-color: var(--error-color);
}

.result-item.skipped {
    border-left-color: var(--warning-color);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    color: var(--black-text);
    margin-bottom: 4px;
    font-size: 14px;
}

.result-email {
    color: var(--gray-text);
    font-size: 13px;
    word-break: break-all;
}

.result-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.result-status.success {
    background: var(--green-light);
    color: var(--success-color);
}

.result-status.failed,
.result-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.result-status.skipped {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Summary Section */
.summary-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-border);
}

.summary-section h3 {
    margin-bottom: 24px;
    color: var(--black-text);
    font-size: 18px;
    font-weight: 600;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card.success {
    border-color: var(--success-color);
    background: var(--green-light);
}

.stat-card.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-card.success .stat-value {
    color: var(--success-color);
}

.stat-card.error .stat-value {
    color: var(--error-color);
}

.stat-label {
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 24px;
}

/* Result Message */
.result-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid;
}

.result-message.success {
    background: var(--green-light);
    border-color: var(--success-color);
    color: var(--success-color);
}

.result-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* CSV Guide */
.guide-section {
    margin-bottom: 32px;
}

.guide-section h3 {
    color: var(--black-text);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.guide-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.guide-column {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.guide-column:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--green-primary);
}

.column-name {
    color: var(--green-primary);
    font-weight: 600;
    font-size: 14px;
}

.column-desc {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.5;
}

.code-block {
    background: var(--black-primary);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: var(--white);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-block code {
    color: var(--green-primary);
}

.guide-tip {
    background: var(--green-light);
    border: 1px solid var(--green-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 24px;
    color: var(--black-text);
    font-size: 14px;
}

.guide-tip strong {
    color: var(--green-primary);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--black-text);
    font-size: 14px;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 32px 0;
    color: var(--muted-text);
    font-size: 13px;
    margin-top: 48px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--black-text);
    font-size: 15px;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-text);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-primary);
}

/* Filters Panel */
.filters-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px rgba(2, 8, 23, 0.06);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-border);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--black-text);
    letter-spacing: -0.2px;
}

.filters-title svg {
    color: var(--green-primary);
}

.active-filters-count {
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(63, 223, 63, 0.3);
}

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.filters-content {
    border-top: 1px solid var(--gray-border);
    padding-top: 20px;
    margin-top: 16px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--black-text);
    margin-bottom: 0;
}

.filter-field .form-control {
    font-size: 14px;
    padding: 10px 14px;
}

.filter-field .checkbox-label {
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}

.filters-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid var(--gray-border);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
    border-top: 2px solid var(--gray-border);
    margin-top: 20px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(63, 223, 63, 0.1), rgba(47, 177, 102, 0.08));
    border: 1.5px solid var(--green-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--green-hover);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(63, 223, 63, 0.1);
    transition: all 0.2s ease;
}

.active-filter-tag:hover {
    box-shadow: 0 4px 10px rgba(63, 223, 63, 0.2);
    transform: translateY(-1px);
}

.active-filter-tag .filter-remove {
    background: none;
    border: none;
    color: var(--green-hover);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.active-filter-tag .filter-remove:hover {
    background: rgba(47, 177, 102, 0.2);
}

/* Leads Section */
.leads-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-border);
}

.leads-header h2 {
    margin-bottom: 4px;
    color: var(--black-primary);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.leads-header .card-description {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 0;
}

.leads-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-toolbar {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
}

.lead-toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lead-filters-header {
    display: flex;
    justify-content: flex-end;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.filter-toggle.active {
    border-color: var(--green-primary);
    color: var(--green-hover);
    background: rgba(47, 177, 102, 0.1);
}

.filter-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.filter-icon .icon-line {
    width: 30px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 2px;
}

.filter-icon .icon-knob {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
}
.filter-icon .icon-line:nth-child(2) .icon-knob {
    left: 50%;
}
.filter-icon .icon-line:nth-child(3) .icon-knob {
    left: 80%;
}

.lead-filters-wrapper {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    max-height: 999px;
    opacity: 1;
}

.lead-filters-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.lead-selection-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-summary {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text-dark);
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.lead-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text-dark);
    margin-bottom: 6px;
    display: block;
}

.filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.lead-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.lead-toolbar-actions .btn {
    font-weight: 600;
    letter-spacing: -0.1px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.lead-toolbar-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.lead-toolbar-actions .btn-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    box-shadow: 0 4px 16px rgba(63, 223, 63, 0.3);
}

.lead-toolbar-actions .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(63, 223, 63, 0.4);
}

/* Selected Leads Panel */
.selected-leads-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-top: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.selected-leads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(63, 223, 63, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.selected-leads-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text-dark);
}

.selected-leads-title svg {
    color: #3FDF3F;
}

.selected-leads-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}

.selected-actions-meta {
    font-size: 13px;
    color: var(--gray-text);
}

.selected-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selected-leads-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.selected-lead-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.02);
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.selected-lead-item:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
}

.selected-lead-item:last-child {
    margin-bottom: 0;
}

.selected-lead-info {
    flex: 1;
    min-width: 0;
}

.selected-lead-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text-dark);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-lead-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-text);
}

.selected-lead-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.selected-lead-detail strong {
    font-weight: 600;
    color: var(--gray-text-dark);
}

.selected-lead-remove {
    background: transparent;
    border: none;
    color: var(--gray-text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.selected-lead-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.selected-leads-empty {
    padding: 32px;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
}

.modal-description {
    margin-bottom: 16px;
    color: var(--gray-text);
    font-size: 14px;
}

.lead-select {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.lead-select-checkbox {
    width: 16px;
    height: 16px;
}

.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
    width: 100%;
    align-items: start;
    grid-auto-rows: 1fr;
}

.leads-grid > .lead-card {
    max-width: 400px;
    height: 100%;
}

.lead-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 18px 35px rgba(2, 8, 23, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.lead-card:hover {
    box-shadow: 0 24px 55px rgba(2, 8, 23, 0.12);
    transform: translateY(-4px);
    border-color: rgba(15, 23, 42, 0.15);
}

.lead-card-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0;
}

.lead-card-left {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.lead-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-light), rgba(47, 177, 102, 0.1));
    color: var(--black-text);
    font-weight: 600;
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.lead-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    padding-right: 0;
}

.lead-status {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-border);
    background: var(--gray-light);
    color: var(--gray-text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    letter-spacing: 0.025em;
    line-height: 1.2;
}

.lead-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.lead-status.status-sent {
    background: rgba(47, 177, 102, 0.15);
    border-color: rgba(47, 177, 102, 0.35);
    color: var(--green-hover);
    box-shadow: inset 0 0 0 1px rgba(47, 177, 102, 0.2);
}

.lead-status.status-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--warning-color);
}

.lead-status-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.lead-status-badge.lead-status-hot {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.lead-status-badge.lead-status-warm {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.lead-status-badge.lead-status-cold {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.lead-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lead-edit-btn:hover {
    background: var(--gray-light);
    color: var(--black-text);
}

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

.lead-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black-text);
    margin-bottom: 0.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.lead-title {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-bottom: 0.125rem;
    line-height: 1.3;
    font-weight: 500;
    word-break: break-word;
}

.lead-company {
    font-size: 0.75rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.005em;
    word-break: break-word;
}

.lead-info {
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px solid var(--gray-border);
}

.lead-info-item {
    font-size: 0.75rem;
    color: var(--gray-text-dark);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.lead-info-item:last-child {
    margin-bottom: 0;
}

.lead-info-item strong {
    display: block;
    font-size: 0.625rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.125rem;
    font-weight: 600;
}

.lead-info-text {
    color: var(--black-text);
    word-break: normal;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    overflow-wrap: break-word;
    word-wrap: normal;
    margin-top: 0.125rem;
    font-size: 0.75rem;
}


.lead-about {
    margin: 0;
    padding: 0.5rem;
    background: #f7f8fb;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: var(--gray-text-dark);
    line-height: 1.3;
    max-height: 2.5rem;
    overflow-y: auto;
    font-weight: 400;
}

.lead-about.empty {
    color: var(--gray-text);
    font-style: italic;
}

.lead-email-intro {
    margin: 0;
    padding: 0.5rem;
    border-left: 2px solid var(--green-primary);
    background: rgba(47, 177, 102, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: var(--gray-text-dark);
    line-height: 1.3;
    font-weight: 400;
}

.lead-actions {
    display: flex;
    gap: 0.375rem;
    margin-top: auto;
    width: 100%;
    padding-top: 0.375rem;
}

.lead-action-btn {
    flex: 1;
    padding: 0.4375rem 0.625rem;
    border: none;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    min-height: 32px;
}

.lead-action-btn.send-email {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.lead-action-btn.send-email:hover:not(:disabled) {
    background: var(--green-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.lead-action-btn.generate-about {
    background: var(--white);
    color: var(--green-primary);
    border: 1.5px solid var(--green-primary);
}

.lead-action-btn.generate-about:hover:not(:disabled) {
    background: var(--green-light);
}

.lead-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-text);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--gray-border);
}

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

    .quick-panel {
        position: static;
    }

    .nav-tab {
        min-width: 120px;
    }

    .lead-toolbar-top {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .lead-selection-row {
        justify-content: space-between;
    }

    .lead-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .leads-header {
        flex-direction: column;
        gap: 16px;
    }

    .leads-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filters-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .leads-grid > .lead-card {
        max-width: 100%;
    }
    
    .lead-card {
        padding: 0.875rem;
        gap: 0.5rem;
        min-height: 260px;
    }
    
    .lead-name {
        font-size: 1.0625rem;
        margin-bottom: 0.5rem;
    }
    
    .lead-title {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .lead-company {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .lead-info {
        margin-top: 1.125rem;
        padding-top: 1.125rem;
    }
    
    .lead-info-item {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .lead-info-item strong {
        margin-bottom: 0.125rem;
    }
    
    .lead-about,
    .lead-email-intro {
        font-size: 0.75rem;
        padding: 0.875rem;
    }
    
    .lead-action-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
}

@media (max-width: 768px) {
    .leads-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .leads-grid > .lead-card {
        max-width: 100%;
    }
    
    .lead-card {
        padding: 0.75rem;
        gap: 0.5rem;
        min-height: 240px;
    }
    
    .lead-avatar {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.6875rem;
    }
    
    .lead-name {
        font-size: 0.9375rem;
        margin-bottom: 0.125rem;
    }
    
    .lead-title {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
    
    .lead-company {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .lead-info {
        margin-top: 0.375rem;
        padding-top: 0.375rem;
    }
    
    .lead-info-item {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .lead-info-item strong {
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
    }
    
    .lead-about,
    .lead-email-intro {
        font-size: 0.6875rem;
        padding: 0.5rem;
    }
    
    .lead-action-btn {
        padding: 0.4375rem 0.5rem;
        font-size: 0.6875rem;
        min-height: 30px;
    }
    
    .lead-status {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (min-width: 1400px) and (max-width: 1919px) {
    .leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .leads-grid > .lead-card {
        max-width: 420px;
    }
}

@media (min-width: 1920px) {
    .leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 28px;
    }
    
    .leads-grid > .lead-card {
        max-width: 450px;
    }
}

.empty-state h3 {
    font-size: 20px;
    color: var(--black-text);
    margin-bottom: 8px;
}

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

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

.loading-spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-state p {
    font-size: 14px;
    color: var(--gray-text);
}

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

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

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal .form-control,
.modal textarea {
    background: var(--gray-light);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-text-dark);
    font-weight: 500;
    margin-bottom: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.required {
    color: var(--error-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.import-summary {
    background: rgba(47, 177, 102, 0.08);
    border: 1px solid rgba(47, 177, 102, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-text-dark);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-light);
    color: var(--black-text);
}

/* Notification Styles */
.notification {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.notification-message {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px 32px;
    }

    .header {
        padding: 16px 0;
    }

    .header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-tabs {
        padding: 6px;
        gap: 6px;
    }

    .nav-tab {
        min-width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }

    .card {
        padding: 24px;
    }

    .card h2 {
        font-size: 20px;
    }

    .file-select-group {
        flex-direction: column;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .guide-columns {
        grid-template-columns: 1fr;
    }

    .info-box {
        flex-direction: column;
        gap: 16px;
    }

    .leads-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leads-header {
        flex-direction: column;
        gap: 16px;
    }

    .lead-actions {
        flex-direction: column;
    }

    .lead-action-btn {
        width: 100%;
    }

    .modal {
        padding: 24px;
        max-width: 100%;
    }
}

/* Select dropdown styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23121829' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}
