/* backendjobs/css/dashboard.css */

:root {
    /* Professional Fintech Slate Palette */
    --bg-base: #0f172a;
    /* Slate 900 */
    --bg-surface: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */

    --accent-blue: #38bdf8;
    /* Light Blue */
    --accent-teal: #2dd4bf;
    /* Teal */
    --accent-purple: #c084fc;
    /* Purple */
    --accent-slate: #94a3b8;
    /* Slate 400 */

    --border-glass: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(56, 189, 248, 0.4);

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #cbd5e1;
    /* Slate 300 */
    --text-muted: #64748b;
    /* Slate 500 */

    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

/* Base Utilties */
.mt-4 {
    margin-top: 24px;
}

/* Subtle Glass System */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

/* Subtle Top Borders */
.glow-accent-cyan {
    border-top: 3px solid var(--accent-blue);
    border-bottom: none;
}

.glow-accent-green {
    border-top: 3px solid var(--accent-teal);
    border-bottom: none;
}

.glow-accent-yellow {
    border-top: 3px solid var(--accent-slate);
    border-bottom: none;
}

.glow-accent-purple {
    border-top: 3px solid var(--accent-purple);
    border-bottom: none;
}

/* Layout Grid */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    border-radius: 0;
    border-right: 1px solid var(--border-glass);
    z-index: 100;
}

.sidebar-header {
    padding: 0 24px;
    margin-bottom: 40px;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-blue);
}

.sidebar-nav .icon {
    margin-right: 12px;
    font-size: 16px;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
}

/* Top Header & Controls */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
}

.controls-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 8px;
}

.date-control,
.search-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-control label,
.search-control label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.slate-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    color-scheme: dark;
}

.slate-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Buttons */
.btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    padding: 24px;
}

.metric-card h3 {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-card .value {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
}

/* Trends Grid */
.trends-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-card.large {
    grid-column: span 2;
}

.chart-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Data Table Panel */
.table-section {
    padding: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.data-table td {
    padding: 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.job-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.job-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card.large {
        grid-column: span 1;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}