/**
 * Dmarckly - Modern Stylesheet
 */

:root {
    --primary-glow: rgba(59, 130, 246, 0.35);
    --success-glow: rgba(16, 185, 129, 0.35);
    --warning-glow: rgba(245, 158, 11, 0.35);
    --danger-glow: rgba(239, 68, 68, 0.35);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-sans);
    background-color: #0b0f19 !important;
    color: #e2e8f0;
    overflow-x: hidden;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.tracking-tight { letter-spacing: -0.025em; }

.font-mono {
    font-family: var(--font-mono);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-gradient {
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.18), transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12), transparent 50%);
}

.search-input-group {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 0.4rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-input-group input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 1.1rem;
}

.search-input-group input::placeholder {
    color: #64748b;
}

/* Quick Example Badges */
.quick-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.825rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-chip:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    transform: translateY(-1px);
}

/* Score Gauge Ring */
.score-circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.score-circle-inner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Grade Badges */
.grade-badge-huge {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 1rem;
    letter-spacing: -0.03em;
}

.grade-badge-huge.grade-A-plus,
.grade-badge-huge.grade-A {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 2px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 25px var(--success-glow);
}

.grade-badge-huge.grade-B {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 25px var(--primary-glow);
}

.grade-badge-huge.grade-C {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 2px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 25px var(--warning-glow);
}

.grade-badge-huge.grade-D,
.grade-badge-huge.grade-F {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 25px var(--danger-glow);
}

/* Status Pulse Dot */
.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Code Snippet Box */
.code-box {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    word-break: break-all;
    color: #38bdf8;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Tables */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.table-dark-custom th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom-width: 1px;
}

/* Nav Tabs Custom */
.nav-pills-custom .nav-link {
    color: #94a3b8;
    border-radius: 0.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-pills-custom .nav-link.active {
    background-color: #1e293b;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-pills-custom .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
}

/* Print Styles */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    .navbar, footer, .search-container, .btn-print-hide, .quick-chip {
        display: none !important;
    }
    .glass-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .code-box {
        background: #f8fafc !important;
        color: #0369a1 !important;
        border: 1px solid #e2e8f0 !important;
    }
}
