@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    background: -webkit-linear-gradient(45deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clock-container {
    text-align: right;
}

.live-time {
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.countdown {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brief-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.brief-timestamp {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.brief-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brief-content {
    line-height: 1.7;
    font-size: 0.98rem;
    color: #f8fafc;
}

.brief-content p {
    color: #f8fafc;
    margin-bottom: 1rem;
}

.brief-content h2, .brief-content h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
}

.brief-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.brief-content li {
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    color: #94a3b8;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Session Bar Styles */
.session-bar-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.session-bar-container h3 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.session-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.session-block {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.session-block span {
    position: relative;
    z-index: 2;
}

.session-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(96, 165, 250, 0.8));
    z-index: 1;
    transition: width 1s linear;
}

.active-session {
    border-color: rgba(96, 165, 250, 0.6);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.session-status {
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

/* Dynamic Tags */
.tag-bullish {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
}

.tag-bearish {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
}

.tag-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
}

.risk-high {
    color: #ef4444;
    font-weight: 700;
}

.risk-med {
    color: #f59e0b;
    font-weight: 600;
}

.risk-low {
    color: #3b82f6;
    font-weight: 600;
}
