/*
 * BizFlow Timer Dashboard Styles
 * Complete styling for timer and productivity tracking
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Layout */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar (using existing styles) */
.sidebar {
    width: 220px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    padding: 1.5rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.nav-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: #000000;
    width: 100%;
    box-sizing: border-box;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-left-color: #000000;
    transform: translateX(5px);
    text-decoration: none;
}

.nav-item.active .nav-link {
    background-color: rgba(0, 0, 0, 0.15);
    border-left-color: #000000;
    transform: translateX(5px);
}

.nav-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: #000000;
    transition: transform 0.15s ease;
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    transition: color 0.15s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #000000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Timer Header */
.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-section h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.page-subtitle {
    color: #888888;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.timer-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.btn-secondary {
    background: #333333;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #555555;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 1rem;
}

/* Timer Types Selection */
.timer-types-section {
    margin-bottom: 3rem;
}

.timer-type-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.timer-tab {
    background: #333333;
    color: #ffffff;
    border: 2px solid #555555;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.timer-tab:hover {
    background: #555555;
    border-color: #f1c40f;
    transform: translateY(-2px);
}

.timer-tab.active {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    border-color: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Main Timer Section */
.main-timer-section {
    margin-bottom: 4rem;
    position: relative;
}

.timer-container {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.timer-container.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timer Display */
.timer-display {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

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

.progress-background {
    fill: none;
    stroke: #333333;
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: #f1c40f;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 879.65;
    /* 2 * PI * 140 */
    stroke-dashoffset: 879.65;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.timer-time-large {
    font-size: 4rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.timer-label {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 0.5rem;
}

.timer-session {
    font-size: 1rem;
    color: #f1c40f;
    font-weight: 500;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.control-btn.primary {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.control-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.control-btn.secondary {
    background: #333333;
    color: #ffffff;
    border: 2px solid #555555;
}

.control-btn.secondary:hover {
    background: #555555;
    border-color: #f1c40f;
    transform: translateY(-2px);
}

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

/* Timer Settings Quick */
.timer-settings-quick {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.setting-item label {
    color: #888888;
    font-size: 0.9rem;
    font-weight: 500;
}

.setting-item select {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.setting-item select:focus {
    outline: none;
    border-color: #f1c40f;
}

/* Project Timer Specific */
.project-header {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-selector,
.task-input {
    background: #333333;
    color: #ffffff;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

.project-selector {
    min-width: 200px;
}

.task-input {
    flex: 1;
    min-width: 250px;
}

.project-selector:focus,
.task-input:focus {
    outline: none;
    border-color: #f1c40f;
}

/* Time Input Section */
.time-input-section {
    margin-top: 2rem;
    text-align: center;
}

.time-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-inputs input {
    background: #333333;
    color: #ffffff;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 0.75rem;
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.time-inputs input:focus {
    outline: none;
    border-color: #f1c40f;
}

.time-inputs span {
    font-size: 1.5rem;
    color: #888888;
}

/* Lap Times */
.lap-times {
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
}

.lap-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333333;
    transition: background-color 0.15s ease;
}

.lap-time:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lap-time:last-child {
    border-bottom: none;
}

.lap-number {
    color: #888888;
    font-weight: 500;
}

.lap-time-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #ffffff;
}

/* Productivity Section */
.productivity-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.productivity-date {
    color: #888888;
    font-size: 1rem;
}

.productivity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #555555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1c40f;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #888888;
    font-size: 1rem;
    font-weight: 500;
}

/* Recent Sessions */
.recent-sessions-section {
    margin-bottom: 3rem;
}

.sessions-list {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333333;
    overflow: hidden;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333333;
    transition: background-color 0.15s ease;
}

.session-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-title {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

.session-details {
    color: #888888;
    font-size: 0.9rem;
}

.session-time {
    color: #f1c40f;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 500;
}

.session-type {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-type.pomodoro {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.session-type.project {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.session-type.countdown {
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border: 1px solid #555555;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 1000px;
}

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

.modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.15s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Settings Content */
.settings-content {
    margin-bottom: 2rem;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333333;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h4 {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.setting-row:last-child {
    margin-bottom: 0;
}

.setting-row label {
    color: #ffffff;
    font-size: 1rem;
    flex: 1;
}

.setting-row input[type="number"] {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 6px;
    padding: 0.5rem;
    width: 80px;
    text-align: center;
}

.setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f1c40f;
}

.setting-row select {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 120px;
}

.setting-row span {
    color: #888888;
    font-size: 0.9rem;
    min-width: 60px;
}

/* History Controls */
.history-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.history-controls select {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 6px;
    padding: 0.5rem;
}

/* History Content */
.history-content {
    margin-bottom: 2rem;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #333333;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.summary-card h4 {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    color: #f1c40f;
    font-size: 1.5rem;
    font-weight: 700;
}

.history-chart {
    background: #333333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.history-table th {
    background: #333333;
    color: #ffffff;
    font-weight: 500;
}

.history-table td {
    color: #ffffff;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.time-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input {
    width: 60px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timer-type-tabs {
        justify-content: center;
        gap: 0.5rem;
    }

    .timer-tab {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }

    .productivity-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .nav-menu {
        display: flex;
        white-space: nowrap;
        padding: 0 1rem;
        gap: 0.25rem;
    }

    .nav-item {
        flex-direction: column;
        padding: 0.5rem;
        min-width: 80px;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #000000;
        transform: translateY(-3px);
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .nav-text {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem;
    }

    .timer-header {
        flex-direction: column;
        align-items: stretch;
    }

    .timer-actions {
        justify-content: stretch;
    }

    .timer-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .timer-type-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .timer-circle {
        width: 250px;
        height: 250px;
    }

    .timer-time {
        font-size: 2.5rem;
    }

    .timer-time-large {
        font-size: 3rem;
    }

    .timer-controls {
        gap: 1rem;
    }

    .control-btn {
        padding: 0.75rem 1.5rem;
        min-width: 100px;
    }

    .timer-settings-quick {
        flex-direction: column;
        gap: 1rem;
    }

    .project-header {
        flex-direction: column;
    }

    .productivity-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .page-title-section h1 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .history-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .setting-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .time-input-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .timer-type-tabs {
        grid-template-columns: 1fr;
    }

    .timer-circle {
        width: 200px;
        height: 200px;
    }

    .timer-time {
        font-size: 2rem;
    }

    .timer-time-large {
        font-size: 2.5rem;
    }

    .timer-controls {
        flex-direction: column;
        align-items: center;
    }

    .control-btn {
        width: 100%;
        max-width: 200px;
    }

    .history-summary {
        grid-template-columns: 1fr;
    }

    .session-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .session-time {
        align-self: center;
    }
}

/* Animation for timer completion */
@keyframes timerComplete {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.timer-complete {
    animation: timerComplete 0.6s ease-in-out;
}

/* Pulse animation for active timer */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.timer-active .timer-time {
    animation: pulse 2s ease-in-out infinite;
}

/* Break session styling */
.break-session .progress-bar {
    stroke: #2ecc71;
}

.break-session .timer-time {
    color: #2ecc71;
}

/* Focus session styling */
.focus-session .progress-bar {
    stroke: #f1c40f;
}

.focus-session .timer-time {
    color: #f1c40f;
}

/* High contrast mode */
@media (prefers-contrast: high) {

    .timer-container,
    .stat-card,
    .session-item,
    .modal-content {
        border-width: 2px;
    }

    .progress-bar {
        stroke-width: 10;
    }

    .btn {
        border: 2px solid transparent;
    }

    .btn:focus {
        border-color: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .timer-container,
    .stat-card,
    .control-btn,
    .timer-tab,
    .btn {
        transition: none;
        animation: none;
    }

    .timer-active .timer-time {
        animation: none;
    }

    .timer-complete {
        animation: none;
    }

    .progress-bar {
        transition: none;
    }
}

/* Print styles */
@media print {

    .sidebar,
    .timer-actions,
    .timer-controls,
    .modal {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .timer-container {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .productivity-stats,
    .sessions-list {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* Dark mode variations */
.timer-theme-dark {
    --timer-bg: #0a0a0a;
    --timer-text: #e0e0e0;
    --timer-accent: #4a9eff;
}

.timer-theme-minimal {
    --timer-bg: #fafafa;
    --timer-text: #333333;
    --timer-accent: #666666;
}

.timer-theme-colorful {
    --timer-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --timer-text: #ffffff;
    --timer-accent: #ff6b6b;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #555555;
    border-radius: 50%;
    border-top-color: #f1c40f;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888888;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.timer-tab:focus,
.control-btn:focus,
.btn:focus {
    outline: 2px solid #f1c40f;
    outline-offset: 2px;
}

/* Custom scrollbar */
.lap-times::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.lap-times::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.lap-times::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 3px;
}

.lap-times::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Firefox scrollbar */
.lap-times,
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #555555 #1a1a1a;
}