* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: #0e1117;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
}

/* Auth Screens */
.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #262730;
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.auth-container {
    background: #1a1d26;
    border: 1px solid #2d3139;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.auth-container h1 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #00d4aa;
}

.auth-container p {
    color: #888;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.auth-input {
    background: #1a1f2e;
    border: 1px solid #2d3548;
    color: #e0e0e0;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: #00d4aa;
}

.auth-input::placeholder {
    color: #666;
}

.btn-login {
    background: #00d4aa;
    color: #0e1117;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #00ffc6;
    transform: translateY(-2px);
}

.auth-error {
    color: #ff4757;
    margin-top: 16px;
    font-size: 13px;
}

/* Header */
.header {
    background: #1a1d26;
    border-bottom: 1px solid #2d3139;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #00d4aa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.last-updated {
    font-size: 12px;
    color: #666;
}

.user-email {
    font-size: 12px;
    color: #888;
}

.btn-logout {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.report-section {
    background: #1a1d26;
    border: 1px solid #2d3139;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    background: #15181f;
    border-bottom: 1px solid #2d3139;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.section-updated {
    font-size: 11px;
    color: #666;
}

.report-content {
    padding: 24px;
}

.loading-indicator {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Markdown Rendering */
.md-content {
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.md-line {
    margin: 8px 0;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Color-coded lines */
.md-line.green-signal {
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #22c55e;
}

.md-line.red-signal {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
}

.md-line.up-signal {
    color: #22c55e;
}

.md-line.down-signal {
    color: #ef4444;
}

/* Dividers */
.md-divider {
    border: none;
    border-top: 1px solid #2d3139;
    margin: 16px 0;
    opacity: 0.5;
}

/* Emoji and special chars */
.md-content {
    font-feature-settings: 'liga' 0;
}

/* Bold text */
.md-bold {
    font-weight: 700;
    color: #f0f0f0;
}

/* Bullet points */
.md-bullet {
    padding-left: 20px;
}

/* Headers */
.md-header {
    font-size: 16px;
    font-weight: 700;
    color: #00d4aa;
    margin: 12px 0 8px 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #2d3139;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header h1 {
        font-size: 18px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 16px;
    }

    .report-content {
        padding: 16px;
    }

    .md-content {
        font-size: 13px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Additional utility classes */
.highlight {
    background: rgba(0, 212, 170, 0.15);
    padding: 2px 4px;
    border-radius: 2px;
}

.neutral-line {
    color: #999;
}

/* Smooth animations */
.report-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}