/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --accent-color: #1d4ed8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.5;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.01em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="%23e2e8f0" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Professional Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    overflow: hidden;
}

.header-content {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    width: 100%;
    min-height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.brand-text h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.025em;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-widgets {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Weather Widget */
.weather-widget {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    min-width: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.weather-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.weather-temp {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.weather-location {
    font-size: 0.6875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Time Widget */
.time-widget {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
    min-width: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.time-display {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: center;
}

.current-time {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.current-date {
    font-size: 0.6875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Professional Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    flex: 1;
    max-width: 400px;
    transition: all 0.2s ease;
}

.search-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.search-icon {
    color: #64748b;
    padding: 0 0.5rem;
    font-size: 0.875rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.action-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

#search {
    flex: 1;
    padding: 0.5rem;
    border: none;
    font-size: 0.875rem;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-weight: 500;
}

#search::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

#search-btn, #google-search-btn {
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

#search-btn {
    background: #f1f5f9;
    color: #64748b;
    margin-left: 0.25rem;
}

#search-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

#google-search-btn {
    background: #4285f4;
    color: white;
    margin-left: 0.25rem;
}

#google-search-btn:hover {
    background: #3367d6;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Professional Card Styles */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-icon {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    position: relative;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

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

.card-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.status-dot.active {
    background: #22c55e;
}

.status-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
}

.metric-label {
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.025em;
}

.card-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-top: 1px solid #f1f5f9;
}

.card-link:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

/* Hide any duplicate elements that might appear outside modals */
body > .calendar-header,
body > .calendar-grid,
body > .calendar-weekdays,
body > .calendar-days,
body > .calendar-events,
body > .pomodoro-timer:not(.modal .pomodoro-timer),
body > .timer-circle:not(.modal .timer-circle),
body > .pomodoro-controls,
body > .pomodoro-settings,
body > .pomodoro-stats {
    display: none !important;
}

/* Modal styles */
.calendar-modal,
.pomodoro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal-body {
    padding: 2rem;
}

.shortcut-section {
    margin-bottom: 2rem;
}

.shortcut-section:last-child {
    margin-bottom: 0;
}

.shortcut-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0 0.125rem;
}

.shortcut-item span {
    color: #64748b;
    font-size: 0.875rem;
}

/* Professional Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.875rem;
    background: white;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

footer kbd {
    background: #f8fafc;
    color: #475569;
}

/* Responsive Design */
/* Professional Responsive Design */
@media (max-width: 1200px) {
    .header-widgets {
        gap: 1rem;
    }
    
    .pomodoro-widget {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column !important;
        gap: 1rem;
        text-align: center;
    }
    
    .header-widgets {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row !important;
    }
    
    .weather-widget,
    .time-widget,
    .pomodoro-widget {
        min-width: 80px;
        flex: 1;
        justify-content: center;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .dark-mode-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }
        
    .dark-mode-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        color: #475569;
    }
        
    .dark-mode .dark-mode-toggle {
        background: #1e293b;
        border-color: #334155;
        color: #fbbf24;
    }
        
    .dark-mode .dark-mode-toggle:hover {
        background: #334155;
        border-color: #475569;
    }
    
    .toolbar-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-metrics {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }
    
    .toolbar-actions {
        flex-wrap: wrap;
    }
}

/* Calendar Modal Styles */
.calendar-modal {
    max-width: 600px;
    width: 90%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--primary-color);
    color: white;
}

#current-month {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}

.calendar-grid {
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: var(--card-bg);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-day.other-month {
    color: var(--text-secondary);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: white;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.calendar-events {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.calendar-events h5 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-weight: 600;
}

.no-events {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Pomodoro Modal Styles */
.pomodoro-modal {
    max-width: 500px;
    width: 90%;
}

.pomodoro-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.timer-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-background {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
}

.timer-display {
    position: absolute;
    font-size: 2.5em;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pomodoro-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pomodoro-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pomodoro-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

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

.pomodoro-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9em;
}

.setting-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9em;
}

.pomodoro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.pomodoro-stats .stat {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.pomodoro-stats .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pomodoro-stats .stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Pomodoro Widget Styles */
.pomodoro-widget {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 87, 87, 0.15) 100%);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.3);
    min-width: 100px;
    flex-shrink: 0;
}

.pomodoro-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.pomodoro-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.pomodoro-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pomodoro-widget:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 87, 87, 0.2) 100%);
    border-color: rgba(255, 107, 107, 0.4);
}

.pomodoro-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomodoro-circle {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomodoro-svg {
    position: absolute;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
}

.pomodoro-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.pomodoro-progress {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 87.96;
    stroke-dashoffset: 87.96;
    transition: stroke-dashoffset 1s ease;
}

.pomodoro-tomato {
    font-size: 14px;
    color: #ef4444;
    z-index: 1;
}

.pomodoro-widget.running .pomodoro-tomato {
    animation: pulse 2s infinite;
}

.pomodoro-widget.paused .pomodoro-tomato {
    color: #f59e0b;
}

.pomodoro-widget.completed .pomodoro-tomato {
    color: #10b981;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Widget Controls */
.widget-controls {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.widget-control-btn {
    background: rgba(59, 130, 246, 0.8);
    border: 1px solid rgba(59, 130, 246, 1);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.widget-control-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 1);
    color: white;
    transform: scale(1.05);
}

.widget-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.widget-control-btn:active {
    transform: scale(0.95);
}

#widget-play-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

#widget-pause-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

#widget-reset-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Dark mode adjustments for pomodoro widget */
.dark-mode .pomodoro-widget {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 87, 87, 0.2) 100%);
    border-color: rgba(255, 107, 107, 0.4);
}

.dark-mode .pomodoro-widget:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 87, 87, 0.25) 100%);
    border-color: rgba(255, 107, 107, 0.5);
}

.dark-mode .pomodoro-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.dark-mode .widget-control-btn {
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 1);
    color: white;
}

.dark-mode .widget-control-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 1);
    color: white;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

header {
    animation: slideInFromLeft 0.8s ease-out;
}

.search-container {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }

.card-icon {
    animation: float 3s ease-in-out infinite;
}

/* Professional Dark Mode */
.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.dark-mode::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="darkgrid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="%23334155" stroke-width="1" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23darkgrid)"/></svg>') repeat;
}

.dark-mode header {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .brand-text h1 {
    color: #f8fafc;
}

.dark-mode .brand-subtitle {
    color: #94a3b8;
}

.dark-mode .stat-number {
    color: #f8fafc;
}

.dark-mode .stat-label {
    color: #94a3b8;
}

.dark-mode .toolbar {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .search-container {
    background: #0f172a;
    border-color: #334155;
}

.dark-mode .search-container:focus-within {
    border-color: #3b82f6;
    background: #1e293b;
}

.dark-mode #search {
    color: #e2e8f0;
}

.dark-mode #search::placeholder {
    color: #64748b;
}

.dark-mode .action-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.dark-mode .action-btn:hover {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.dark-mode .action-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.dark-mode .card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .card:hover {
    border-color: #475569;
}

.dark-mode .card-content h3 {
    color: #f8fafc;
}

.dark-mode .card-content p {
    color: #94a3b8;
}

.dark-mode .status-text {
    color: #94a3b8;
}

.dark-mode .metric-value {
    color: #f8fafc;
}

.dark-mode .metric-label {
    color: #94a3b8;
}

.dark-mode .card-metrics {
    border-color: #334155;
}

.dark-mode .card-link {
    background: #0f172a;
    border-color: #334155;
    color: #60a5fa;
}

.dark-mode .card-link:hover {
    background: #1e293b;
    color: #3b82f6;
}

.dark-mode footer {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.dark-mode footer kbd {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

/* Dark Mode Modal */
.dark-mode .modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

.dark-mode .modal-header {
    border-color: #334155;
}

.dark-mode .modal-header h3 {
    color: #f8fafc;
}

.dark-mode .modal-close {
    color: #94a3b8;
}

.dark-mode .modal-close:hover {
    background: #334155;
    color: #e2e8f0;
}

.dark-mode .shortcut-section h4 {
    color: #f8fafc;
}

.dark-mode .shortcut-item {
    border-color: #334155;
}

.dark-mode .shortcut-item span {
    color: #94a3b8;
}

.dark-mode kbd {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.dark-mode .weather-widget {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.dark-mode .time-widget {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}
