/* ==================================================
   Mindworx Brand Variables - UPDATED with Grey Primary
   ================================================== */
   :root {
    --mw-blue: #59585B; /* Changed from blue to grey */
    --mw-orange: #F28F3B;
    --mw-grey: #59585B;
    --mw-grey-dark: #3a3a3d;
    --mw-light-gray: #f4f6f8;
    --mw-text-dark: #1f2933;
    --mw-footer-gray: #f0f0f0;
    --border-light: #e3e6f0;
}

/* ==================================================
   Global
   ================================================== */
* {
    box-sizing: border-box;
    font-family: 'Inter', "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--mw-light-gray);
    color: var(--mw-text-dark);
    line-height: 1.5;
}

/* ==================================================
   Modern Dashboard Layout Shell
   ================================================== */
body.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fc;
}

/* ==================================================
   Sidebar - UPDATED with Grey Primary
   ================================================== */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h2 {
    color: var(--mw-grey); /* Changed from blue to grey */
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
}

.sidebar-header h2 span {
    color: var(--mw-orange); /* Orange accent */
    font-weight: 800;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--mw-grey); /* Changed to grey */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.nav-links a i {
    width: 25px;
    font-size: 1.1rem;
    color: var(--mw-grey); /* Grey icons */
    transition: color 0.2s ease;
    text-align: center;
    margin-right: 10px;
}

.nav-links a:hover {
    color: var(--mw-grey-dark);
    background-color: #f8f9fc;
}

.nav-links a:hover i {
    color: var(--mw-grey-dark);
}

.nav-links a.active {
    color: var(--mw-grey-dark);
    background-color: #f4f6f8;
    border-left-color: var(--mw-orange); /* Orange accent for active */
    font-weight: 700;
}

.nav-links a.active i {
    color: var(--mw-orange); /* Orange icon for active */
}

/* Nav Divider - NEW */
.nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 15px 24px;
}

/* Section Title - NEW */
.nav-section-title {
    padding: 8px 24px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b7b9cc;
    font-weight: 700;
}

/* ==================================================
   Sidebar CV Animation - NEW
   ================================================== */
.sidebar-footer {
    padding: 20px 24px 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.cv-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cv-animation:hover {
    opacity: 1;
}

.cv-icon {
    position: relative;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 6px 6px 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: subtleFloat 4s ease-in-out infinite;
}

.cv-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 30px;
    height: 4px;
    background: var(--mw-grey);
    border-radius: 2px;
    opacity: 0.3;
    animation: subtleShimmer 3s ease-in-out infinite;
}

.cv-icon::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 10px;
    width: 20px;
    height: 4px;
    background: var(--mw-orange);
    border-radius: 2px;
    opacity: 0.5;
    animation: subtleShimmer 3s ease-in-out infinite 0.5s;
}

.cv-icon .page-fold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, transparent 50%, rgba(242, 143, 59, 0.3) 50%);
    border-radius: 0 0 4px 0;
    animation: subtleFold 4s ease-in-out infinite;
}

.cv-animation span {
    font-size: 0.7rem;
    color: var(--mw-grey);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(0.5deg); }
}

@keyframes subtleShimmer {
    0%, 100% { opacity: 0.3; width: 30px; }
    50% { opacity: 0.8; width: 35px; }
}

@keyframes subtleFold {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ==================================================
   Main Content Wrapper
   ================================================== */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: calc(100% - 260px);
}

/* ==================================================
   Topbar - UPDATED with Gradient
   ================================================== */
.topbar {
    height: 70px;
    background: linear-gradient(135deg, var(--mw-grey), var(--mw-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-logo {
    height: 40px;
    width: auto;
}

.topbar-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* ==================================================
   Content Area
   ================================================== */
.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

/* ==================================================
   Alerts
   ================================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-error {
    background-color: #fde1e1;
    color: #e74a3b;
    border-left: 4px solid #e74a3b;
}

.alert-success {
    background-color: #e3fbed;
    color: #1cc88a;
    border-left: 4px solid #1cc88a;
}

.alert-warning {
    background-color: #fdf5e2;
    color: #f6c23e;
    border-left: 4px solid #f6c23e;
}

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

/* ==================================================
   Stats Grid - UPDATED metric names
   ================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 5px solid var(--mw-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

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

.stat-card-title {
    color: #858796;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    color: #dddfeb;
    font-size: 2rem;
}

.stat-card h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--mw-text-dark);
    font-weight: 700;
    line-height: 1.2;
}

/* ==================================================
   Quick Actions Bar - UPDATED button names
   ================================================== */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.quick-actions .btn-primary {
    background: var(--mw-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-actions .btn-primary:hover {
    background: var(--mw-grey);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quick-actions .btn-primary i {
    font-size: 1.1rem;
}

.quick-actions .btn-secondary {
    background: transparent;
    color: var(--mw-grey);
    border: 2px solid var(--mw-grey);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-actions .btn-secondary:hover {
    background: var(--mw-grey);
    color: white;
}

/* ==================================================
   Cards
   ================================================== */
.mw-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.mw-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--mw-grey-dark);
}

.mw-card h3 i {
    color: var(--mw-orange);
    margin-right: 10px;
    font-size: 1.3rem;
}

/* ==================================================
   Candidates Analytics Section - NEW visual elements
   ================================================== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.analytics-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--mw-orange);
}

.analytics-card h4 {
    color: var(--mw-grey-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-card h4 i {
    color: var(--mw-orange);
}

/* Mini Chart */
.trend-chart {
    display: flex;
    align-items: flex-end;
    height: 100px;
    gap: 8px;
    margin-top: 15px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--mw-orange), #ff9f4b);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: height 0.3s ease;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.9;
    transform: scaleX(1.02);
}

.chart-bar span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--mw-grey);
    font-weight: 600;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #858796;
    font-size: 0.7rem;
}

/* Seniority Breakdown */
.seniority-list {
    list-style: none;
}

.seniority-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.seniority-label {
    width: 80px;
    font-weight: 600;
    color: var(--mw-grey);
}

.seniority-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.seniority-fill {
    height: 100%;
    background: var(--mw-orange);
    border-radius: 4px;
}

.seniority-value {
    width: 40px;
    text-align: right;
    font-weight: 700;
    color: var(--mw-grey-dark);
}

/* Industry Distribution */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.industry-tag {
    background: white;
    border: 1px solid var(--mw-orange);
    color: var(--mw-grey);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.industry-tag i {
    color: var(--mw-orange);
    font-size: 0.8rem;
}

.industry-tag span {
    background: var(--mw-orange);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 5px;
    font-size: 0.7rem;
}

/* Quality Metrics */
.quality-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quality-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mw-grey);
}

.quality-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-green { background: #48bb78; }
.dot-yellow { background: var(--mw-orange); }
.dot-red { background: #e74c3c; }

.quality-value {
    font-weight: 700;
    color: var(--mw-grey-dark);
}

/* ==================================================
   Word Cloud
   ================================================== */
.word-cloud {
    min-height: 200px;
    padding: 20px;
    text-align: center;
    line-height: 2;
    background: #f8f9fa;
    border-radius: 8px;
}

.word-cloud span {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    color: var(--mw-grey);
}

.word-cloud span:hover {
    background: var(--mw-orange);
    color: white;
    transform: scale(1.05);
    border-color: var(--mw-orange);
}

.word-1 { font-size: 1rem; }
.word-2 { font-size: 1.2rem; }
.word-3 { font-size: 1.4rem; }
.word-4 { font-size: 1.6rem; }
.word-5 { font-size: 1.8rem; }

/* ==================================================
   Job Matching Section
   ================================================== */
#jobMatcherSection {
    margin-top: 30px;
    border-left: 4px solid var(--mw-orange);
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#jobMatcherSection textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    margin: 15px 0;
    transition: border-color 0.3s;
}

#jobMatcherSection textarea:focus {
    outline: none;
    border-color: var(--mw-orange);
}

.job-matcher-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Match scores */
.match-high {
    color: #48bb78;
    font-weight: 700;
}

.match-medium {
    color: var(--mw-orange);
    font-weight: 700;
}

.match-low {
    color: #e74c3c;
    font-weight: 700;
}

/* ==================================================
   Table Styles
   ================================================== */
.mw-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mw-table th,
.mw-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
}

.mw-table th {
    background-color: var(--mw-light-gray);
    color: var(--mw-grey-dark);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-executive {
    background-color: #f3e5f5;
    color: #8e44ad;
}

.status-senior {
    background-color: #e3f2fd;
    color: #2980b9;
}

.status-mid {
    background-color: #fff3e0;
    color: #f39c12;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
}

.status.error {
    background: #fee;
    color: #c33;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================================================
   Pipeline Stats
   ================================================== */
.pipeline-stats {
    padding: 10px 0;
}

.pipeline-item {
    margin-bottom: 20px;
}

.pipeline-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--mw-grey);
    font-size: 0.95rem;
}

.pipeline-label strong {
    color: var(--mw-orange);
    font-size: 1.1rem;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--mw-orange);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pipeline-item:last-child .progress-fill {
    background: #48bb78;
}

/* ==================================================
   Batch Processing Styles
   ================================================== */
.batch-progress {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

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

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.progress-bar-fill {
    height: 8px;
    background: var(--mw-orange);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.batch-cv-card {
    margin-bottom: 20px;
}

.cv-header-card {
    margin-bottom: 10px;
    background: var(--mw-orange);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.cv-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-header-content h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.cv-counter {
    background: white;
    color: var(--mw-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Form Grid */
.batch-form-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mw-orange);
}

.form-group.missing input {
    border: 2px solid #f4b400;
    background-color: #fffbe6;
}

.required,
.required-star {
    color: var(--mw-orange);
}

/* Navigation Buttons */
.nav-buttons,
.batch-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Batch Grid */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.batch-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--mw-orange);
    transition: all 0.3s ease;
}

.batch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.batch-date {
    font-weight: 700;
    color: var(--mw-orange);
    font-size: 1.1rem;
}

.batch-count {
    background: var(--mw-grey);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.batch-body {
    margin: 10px 0;
    color: #666;
}

.batch-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-small {
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    background: #e0e0e0;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #d0d0d0;
}

.btn-small.btn-primary {
    background: var(--mw-orange);
    color: white;
}

.btn-small.btn-primary:hover {
    background: #e07d2a;
}

/* Folder Badge */
.folder-badge {
    background: var(--mw-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.batch-today {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.batch-today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.batch-info {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--mw-orange);
}

/* ==================================================
   Preview Fields
   ================================================== */
.preview-field {
    margin-bottom: 12px;
}

.preview-field label {
    font-weight: 600;
    display: block;
}

.preview-field pre {
    background: #f8f9fa;
    padding: 10px;
    white-space: pre-wrap;
}

/* ==================================================
   Footer
   ================================================== */
.dashboard-footer {
    background-color: var(--mw-footer-gray);
    padding: 15px 0;
    text-align: center;
    color: var(--mw-grey);
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #ddd;
}

/* ==================================================
   Login Page (kept original)
   ================================================== */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 50px 35px 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 6px solid var(--mw-orange);
}

.logo {
    max-width: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mw-grey);
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* ==================================================
   Tabs Component
   ================================================== */
.custom-tabs-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: #fafbfe;
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #858796;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--mw-grey);
    background: #f1f3f9;
}

.tab-btn.active {
    color: var(--mw-grey);
    border-bottom-color: var(--mw-orange);
    background: #fff;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ==================================================
   Sticky Action Bar
   ================================================== */
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 20px 30px;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    z-index: 50;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: -30px;
}

/* ==================================================
   FIX UNCLICKABLE BUTTON
   ================================================== */
button[type="submit"],
.btn-primary,
.quick-actions .btn-primary,
form button,
.batch-today-actions .btn-primary,
div button[type="submit"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 9999 !important;
}

form, div, .mw-card, .mw-container {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

#batchForm button[type="submit"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background-color: #48bb78 !important;
    color: white !important;
}

button:disabled,
button[disabled] {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ==================================================
   Responsive
   ================================================== */
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn-primary,
    .quick-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .job-matcher-actions {
        flex-direction: column;
    }
    
    .job-matcher-actions button {
        width: 100%;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-today-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .batch-today-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .batch-today-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .batch-form-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}