:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(59, 130, 246, 0.3);
    animation-delay: 0s;
}
.blob-2 {
    bottom: -10%; right: -5%;
    width: 600px; height: 600px;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -5s;
}
.blob-3 {
    top: 40%; left: 50%;
    width: 400px; height: 400px;
    background: rgba(16, 185, 129, 0.2);
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Controls Section */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
}

.search-bar {
    flex: 1 1 300px;
}
.search-bar input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.filters {
    display: flex;
    gap: 1rem;
    flex: 1 1 auto;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.filter-group select {
    padding: 0.75rem 2rem 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.filter-group select option {
    background: #1e1b4b;
    color: white;
}

.stats {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.stats span {
    color: var(--accent-hover);
    font-weight: 600;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}
th {
    padding: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: var(--transition);
    position: sticky;
    top: 0;
}
th:hover {
    background: rgba(255, 255, 255, 0.08);
}
.sort-icon {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    opacity: 0.5;
}
td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e2e8f0;
}
tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
tr:last-child td {
    border-bottom: none;
}
.text-center {
    text-align: center;
}

/* Job Action Link */
.action-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}
.action-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.page-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.page-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
}
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    margin: 2rem auto 1rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Truncation for long text */
.truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filters {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
