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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #252535;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-high: #ff4757;
    --accent-medium: #ffa502;
    --accent-low: #2ed573;
    --accent-blue: #3742fa;
    --accent-purple: #7c3aed;
    --border-color: #2a2a3a;
    --success: #2ed573;
    --warning: #ffa502;
    --danger: #ff4757;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.progress-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

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

.progress-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.progress-text small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.risk-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.risk-item.high .risk-dot { background: var(--accent-high); box-shadow: 0 0 10px var(--accent-high); }
.risk-item.medium .risk-dot { background: var(--accent-medium); box-shadow: 0 0 10px var(--accent-medium); }
.risk-item.low .risk-dot { background: var(--accent-low); box-shadow: 0 0 10px var(--accent-low); }

/* Navigation */
.section-nav {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.05) 100%);
    border: 1px solid var(--accent-high);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 30px 0;
    color: var(--text-primary);
}

.alert-banner strong {
    color: var(--accent-high);
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.compliance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.compliance-card.high::before { background: var(--accent-high); }
.compliance-card.medium::before { background: var(--accent-medium); }
.compliance-card.low::before { background: var(--accent-low); }

.compliance-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.compliance-card.completed {
    opacity: 0.7;
    border-color: var(--accent-low);
}

.compliance-card.completed::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--accent-low);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-badge.high {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-high);
}

.risk-badge.medium {
    background: rgba(255, 165, 2, 0.15);
    color: var(--accent-medium);
}

.risk-badge.low {
    background: rgba(46, 213, 115, 0.15);
    color: var(--accent-low);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-fine {
    font-size: 0.85rem;
    color: var(--accent-high);
    font-weight: 500;
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #4a55db;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Checklist Section */
.checklist-section {
    padding: 30px 0;
}

.checklist-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.checklist-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.checklist-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.checklist-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.checklist-category h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    color: var(--text-primary);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.checklist-item label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.checklist-item.completed label {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-hover);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-high);
}

.modal-body {
    padding: 40px;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header .risk-badge {
    margin-bottom: 12px;
    display: inline-block;
}

.modal-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.modal-fine {
    color: var(--accent-high);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.warning-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--accent-high);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.warning-box h4 {
    color: var(--accent-high);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box ul {
    margin: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer p {
    margin-bottom: 8px;
}

.credit {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .progress-overview {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-categories {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 24px;
    }
}