/* CSS Custom Properties */
:root {
    --primary-color: #7868E6;
    --secondary-color: #B8B5FF;
    --accent-color: #FFB4B4;
    --background-light: #EDEEF7;
    --background-accent: #E4FBFF;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-accent) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Paper Texture Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Tablet and larger screens - Full width */
@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }
}

/* Desktop screens - Full width */
@media (min-width: 1024px) {
    .app-container {
        max-width: 100%;
        margin: 0;
    }
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Tablet header adjustments - Full width */
@media (min-width: 768px) {
    .app-header {
        padding: 2.5rem 3rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .header-content {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .app-logo {
        width: 70px;
        height: 70px;
    }
    
    .app-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

/* Desktop header adjustments - Full width */
@media (min-width: 1024px) {
    .app-header {
        padding: 3rem 4rem 2.5rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .header-content {
        gap: 2rem;
        justify-content: center;
    }
    
    .app-logo {
        width: 80px;
        height: 80px;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    clip-path: ellipse(100% 100% at 50% 0%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header Content Layout */
.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.logo-container {
    flex-shrink: 0;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.app-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.header-text {
    flex: 1;
    text-align: left;
}

.app-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.3;
}

/* Main Content */
.main-content {
    padding: 2rem 1.5rem 6rem;
    min-height: calc(100vh - 200px);
}

/* Tablet main content adjustments - Full width */
@media (min-width: 768px) {
    .main-content {
        padding: 2.5rem 3rem 7rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .time-display {
        font-size: 4rem;
    }
    
    .timer-controls {
        gap: 2rem;
        justify-content: center;
    }
    
    .timer-btn {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
        min-width: 200px;
    }
    
    .reset-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.1rem;
        min-width: 160px;
    }
}

/* Desktop main content adjustments - Full width */
@media (min-width: 1024px) {
    .main-content {
        padding: 3rem 4rem 8rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .time-display {
        font-size: 4.5rem;
    }
    
    .timer-controls {
        gap: 2.5rem;
        justify-content: center;
    }
    
    .timer-btn {
        padding: 1.8rem 3.5rem;
        font-size: 1.3rem;
        min-width: 220px;
    }
    
    .reset-btn {
        padding: 1.8rem 3rem;
        font-size: 1.2rem;
        min-width: 180px;
    }
}

/* Section Styles */
section {
    margin-bottom: 2rem;
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Timer Section */
.timer-section {
    text-align: center;
}

.timer-display {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 181, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.timer-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(120, 104, 230, 0.05), rgba(184, 181, 255, 0.05));
    z-index: -1;
}

.time-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.timer-running .time-display {
    animation: pulse 2s infinite;
    color: var(--accent-color);
}

.session-status {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.session-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    transition: var(--transition);
}

.timer-running .session-status::before {
    background: var(--accent-color);
    animation: pulse 2s infinite;
}

.timer-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.timer-btn {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    min-width: 160px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.timer-btn:hover::before {
    left: 100%;
}

.timer-btn.running {
    background: linear-gradient(135deg, var(--accent-color), #ff8a8a);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 180, 180, 0.5);
}

.timer-btn.running .btn-text::after {
    content: 'Parar';
}

.timer-btn.running .btn-icon::after {
    content: '⏸';
}

.reset-btn {
    font-size: 1rem;
    padding: 1.2rem 2rem;
    min-width: 130px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    color: var(--primary-color);
}

.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 104, 230, 0.1), transparent);
    transition: left 0.5s;
}

.reset-btn:hover::before {
    left: 100%;
}

.reset-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Benefits Display */
.benefits-display {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.benefits-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 180, 180, 0.05), rgba(255, 138, 138, 0.05));
    z-index: -1;
}

.benefits-display h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefits-list {
    color: var(--text-dark);
}

.benefit-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--background-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.benefit-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tablet statistics adjustments - Full width */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Desktop statistics adjustments - Full width */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto 2rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 181, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* History Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.clear-history-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.history-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 181, 255, 0.2);
}

.history-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(184, 181, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-item:hover {
    background: rgba(184, 181, 255, 0.05);
}

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

.history-info {
    flex: 1;
}

.history-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.history-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.history-benefits {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.delete-session {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-session:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.no-sessions {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* FAQ Section */
.faq-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Tablet FAQ adjustments - Full width */
@media (min-width: 768px) {
    .faq-section {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .faq-container {
        gap: 1.5rem;
    }
    
    .faq-question {
        padding: 2rem;
    }
    
    .faq-question h3 {
        font-size: 1.2rem;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
    }
    
    .faq-item.active .faq-answer {
        padding: 2rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
}

/* Desktop FAQ adjustments - Full width */
@media (min-width: 1024px) {
    .faq-section {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .faq-container {
        gap: 2rem;
    }
    
    .faq-question {
        padding: 2.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.3rem;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-item.active .faq-answer {
        padding: 2.5rem;
    }
    
    .faq-answer p {
        font-size: 1.05rem;
    }
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 181, 255, 0.2);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(120, 104, 230, 0.05), rgba(184, 181, 255, 0.05));
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(120, 104, 230, 0.1), rgba(184, 181, 255, 0.1));
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(184, 181, 255, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-bottom: 60px;
}

/* Tablet navigation adjustments - Full width */
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 100%;
        padding: 1rem 2rem;
        margin-bottom: 0;
        border-radius: 0;
        left: 0;
        transform: none;
        width: 100%;
    }
    
    .nav-btn {
        padding: 1rem 1rem;
        gap: 0.4rem;
        flex: 1;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-label {
        font-size: 0.8rem;
    }
}

/* Desktop navigation adjustments - Full width */
@media (min-width: 1024px) {
    .bottom-nav {
        max-width: 100%;
        padding: 1.2rem 3rem;
        left: 0;
        transform: none;
        width: 100%;
    }
    
    .nav-btn {
        padding: 1.2rem 1.5rem;
        gap: 0.5rem;
        flex: 1;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-label {
        font-size: 0.85rem;
    }
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 12px;
    min-width: 70px;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px;
}

.nav-btn.active {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-btn.active::before {
    opacity: 1;
}

.nav-btn:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(184, 181, 255, 0.1);
    transform: translateY(-1px);
}

.nav-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.nav-btn.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.app-footer {
    background: var(--background-light);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    margin-top: auto;
    margin-bottom: 150px;
}

.app-footer p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.app-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .header-content {
        gap: 0.8rem;
    }
    
    .app-logo {
        width: 50px;
        height: 50px;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .time-display {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .timer-btn {
        flex: 1;
        min-width: 140px;
        max-width: 180px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .reset-btn {
        flex: 1;
        min-width: 120px;
        max-width: 160px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 1rem 1rem 6rem;
    }
    
    .timer-display {
        padding: 1.5rem;
    }
    
    .time-display {
        font-size: 2rem;
    }
    
    .app-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .header-content {
        gap: 0.6rem;
    }
    
    .app-logo {
        width: 45px;
        height: 45px;
    }
    
    .app-header h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .reset-btn {
        width: 100%;
        max-width: 160px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
}

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

.timer-btn.running {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.history-item {
    animation: slideIn 0.3s ease-out;
}

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

/* Focus States */
button:focus,
.nav-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.3);
}

.timer-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 180, 180, 0.3);
}

.reset-btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(184, 181, 255, 0.3);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #4040ff;
        --text-dark: #000000;
        --text-light: #333333;
    }
}
