/**
 * JobTracker Web Dashboard CSS System
 * Premium Dark Glassmorphic Design Theme override for Bootstrap 5
 */

:root {
    --bg-color: #0c0f17;
    --card-bg: rgba(22, 28, 45, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #3b82f6;
    --accent-green: #10b981;
    --text-main: #f3f4f6;
    --text-secondary: #9ca3af;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Glassmorphic card design container */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

/* Match metric circular progress widget */
.circle-progress-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.circle-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
}

svg.progress-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

/* Pills controller tabs */
.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.nav-pills .nav-link:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Table row container representing a matched job listing */
.job-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-row:last-child {
    border-bottom: none;
}

/* Origin labels */
.badge-source {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-jobstreet { 
    background-color: rgba(16, 185, 129, 0.2); 
    color: #10b981; 
    border: 1px solid rgba(16, 185, 129, 0.3); 
}

.badge-indeed { 
    background-color: rgba(59, 130, 246, 0.2); 
    color: #3b82f6; 
    border: 1px solid rgba(59, 130, 246, 0.3); 
}

.badge-linkedin { 
    background-color: rgba(139, 92, 246, 0.2); 
    color: #a78bfa; 
    border: 1px solid rgba(139, 92, 246, 0.3); 
}

.btn-custom {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

/* High fidelity render matching standard A4 letterhead dimensions */
.cover-letter-paper {
    background-color: white;
    color: #2c3e50;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.5;
    padding: 2.5cm;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
}

.view-pane {
    display: none;
}

.view-pane.active-pane {
    display: block;
}
