/* ==========================================
   Dashboard Styles - Professional Theme
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --deep-atlantic-blue: #0B2A45;
    --midnight-navy: #071E33;
    
    /* Neutrals */
    --off-white: #F5F7FA;
    --charcoal: #2B2E34;
    --slate-gray: #5B6770;
    
    /* Accent */
    --muted-gold: #C9A44C;
    
    /* Typography */
    --font-headline: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
    --font-utility: 'IBM Plex Sans', sans-serif;
    
    /* Typography Scale */
    --h1-size: 48px;
    --h2-size: 36px;
    --h3-size: 28px;
    --body-size: 18px;
    --metadata-size: 14px;
    
    /* UI Elements */
    --border-radius: 6px;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--off-white);
    min-height: 100vh;
    color: var(--slate-gray);
    padding: 20px;
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-in;
}

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

/* Header */
h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: var(--h1-size);
    color: var(--charcoal);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h2 {
    font-size: var(--h2-size);
    color: var(--charcoal);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

h3 {
    font-size: var(--h3-size);
    color: var(--charcoal);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

/* Widget Grid */
.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Widget Card */
.widget {
    background: #ffffff;
    border: 1px solid rgba(43, 46, 52, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 8px rgba(43, 46, 52, 0.08);
    transition: all var(--transition-speed) ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(43, 46, 52, 0.12);
}

.widget-title {
    font-size: var(--h3-size);
    color: var(--charcoal);
    font-family: var(--font-headline);
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--muted-gold);
    padding-bottom: 10px;
    letter-spacing: -0.2px;
}

/* Time Widget */
.time-display {
    text-align: center;
}

.time {
    font-size: 4rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: 2px;
}

.date {
    font-size: var(--body-size);
    font-family: var(--font-body);
    color: var(--muted-gold);
    margin-top: 10px;
    font-weight: 500;
}

/* Weather Widget */
.weather-display {
    text-align: center;
}

.weather-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.temperature {
    font-size: 4rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
}

.weather-info {
    font-size: var(--body-size);
    font-family: var(--font-body);
    color: var(--muted-gold);
    margin-top: 15px;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    color: var(--charcoal);
    gap: 10px;
}

.weather-detail {
    text-align: center;
    flex: 1;
}

.weather-detail-label {
    font-size: var(--metadata-size);
    font-family: var(--font-body);
    color: var(--muted-gold);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Focus Timer Widget */
.timer-display {
    text-align: center;
}

.timer {
    font-size: 5rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
    margin: 20px 0;
    letter-spacing: 3px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: var(--body-size);
    font-family: var(--font-body);
    font-weight: 600;
    border: 2px solid var(--deep-atlantic-blue);
    background: var(--deep-atlantic-blue);
    color: #ffffff;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: none;
    letter-spacing: 0;
    outline: none;
    position: relative;
}

.btn:hover {
    background: var(--deep-atlantic-blue);
    color: #ffffff;
    border-color: var(--muted-gold);
    box-shadow: 0 2px 8px rgba(11, 42, 69, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: var(--deep-atlantic-blue);
    color: #ffffff;
    border-color: var(--deep-atlantic-blue);
    transform: none;
    box-shadow: none;
}

/* Timer Inputs */
.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.timer-input {
    width: 80px;
    padding: 10px;
    font-size: var(--body-size);
    font-family: var(--font-body);
    text-align: center;
    background: var(--off-white);
    border: 1px solid rgba(43, 46, 52, 0.2);
    border-radius: var(--border-radius);
    color: var(--charcoal);
    outline: none;
    transition: all var(--transition-speed) ease;
}

.timer-input:focus {
    border-color: var(--muted-gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.1);
}

.timer-input::placeholder {
    color: var(--slate-gray);
    opacity: 0.6;
}

.timer-label {
    text-align: center;
    font-size: var(--metadata-size);
    font-family: var(--font-body);
    color: var(--muted-gold);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .time {
        font-size: 3rem;
    }

    .date {
        font-size: 16px;
    }

    .temperature {
        font-size: 3rem;
    }

    .timer {
        font-size: 3.5rem;
    }

    .weather-icon {
        font-size: 4rem;
    }

    .widget {
        padding: 20px;
    }

    .timer-controls {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    .time {
        font-size: 2.5rem;
    }

    .temperature {
        font-size: 2.5rem;
    }

    .timer {
        font-size: 2.5rem;
    }

    .weather-icon {
        font-size: 3rem;
    }

    .weather-details {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .widget {
        border: 1px solid #000000;
        box-shadow: none;
        page-break-inside: avoid;
    }

    h1 {
        color: #000000;
        text-shadow: none;
    }
}