/* Job Dashboard Styles */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px; /* Account for fixed navbar */
}

.job-dashboard {
    display: flex;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
    animation: fadeIn 0.5s ease-in-out;
}

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

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 0;
    position: static;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ecf0f1;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #34495e;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #34495e;
    color: #3498db;
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 0;
    padding: 20px;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

.tab-btn:hover {
    background: #0056b3;
    color: white;
}

.job-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.jobs-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jobs-list {
    max-height: 600px;
    overflow-y: auto;
}

.job-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px 100px 100px 100px 120px 120px 80px 100px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.job-row:hover {
    background-color: #f8f9fa;
}

.job-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.job-title {
    font-weight: 600;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.job-title:hover {
    text-decoration: underline;
}

.job-location {
    color: #6c757d;
    font-size: 14px;
    margin-top: 2px;
}

.candidate-count {
    text-align: center;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

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

.status-paused {
    background: #fff3cd;
    color: #856404;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.post-type {
    font-size: 12px;
    color: #6c757d;
}

.sponsor-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.sponsor-link:hover {
    text-decoration: underline;
}

.job-actions {
    position: relative;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.bulk-actions {
    padding: 15px 20px;
    background: #e3f2fd;
    border-bottom: 1px solid #dee2e6;
    display: none;
    align-items: center;
    gap: 15px;
}

.bulk-actions.show {
    display: flex;
}

.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
    top: 100%;
    left: 0;
}

.status-dropdown:hover .status-dropdown-content {
    display: block;
}

.status-option {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-size: 12px;
}

.status-option:hover {
    background-color: #f1f1f1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .job-dashboard {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 250px;
        height: calc(100vh - 80px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .job-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .job-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Additional Enhancements */
.create-campaign-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.create-campaign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.job-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1001;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}