:root {
    --primary: #10a37f;
    --primary-hover: #0e906f;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --bg-dark: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-nav {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* Button Styles */
button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    width: 100%;
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--card-bg);
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }

/* Login Specific */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg-dark) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-container h1 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}
.login-container p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.input-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-msg {
    color: var(--danger);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 1.2rem;
}

/* Dashboard Specific */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Timer Section */
.timer-section {
    text-align: center;
}
.timer-section h2 { margin-bottom: 1rem; font-size: 1.25rem; color: var(--text-secondary); }
.timer-display { margin: 2rem 0; }
.time {
    font-size: 3.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
.status-badge.active { background: rgba(16, 163, 127, 0.2); color: var(--primary); }

.timer-controls { display: flex; justify-content: center; gap: 1rem; }
.hidden { display: none !important; }

/* Stats & History */
.stat-card h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.5rem;}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }

.history-section h2 { margin-bottom: 1rem; font-size: 1.25rem; }
.table-responsive { overflow-x: auto; }
.entries-table { width: 100%; border-collapse: collapse; text-align: left; }
.entries-table th, .entries-table td { padding: 1rem 0.5rem; border-bottom: 1px solid var(--border-color); }
.entries-table th { color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; }
.text-center { text-align: center; }
