:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-hover: #1d4ed8;
    --primary-shadow: rgb(37 99 235 / 25%);
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --accent: #36cfc9;
    
    /* Surface Colors */
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --surface-elevated: #ffffff;
    --background: #f8fafc;
    --secondary-bg: #e2e8f0;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Shadow System */
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
    --shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
    --shadow-xl: 0 20px 25px rgb(15 23 42 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Legacy Variables (for backward compatibility) */
    --primary-color: var(--primary);
    --primary-color-light: var(--primary-light);
    --surface-color: var(--surface);
    --light-bg: var(--background);
    --border-color: var(--border);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --secondary-color: var(--text-muted);
    --success-color: var(--success);
    --info-color: var(--info);
    --warning-color: var(--warning);
    --danger-color: var(--danger);
    --dark-text: var(--text-main);
    --border-radius: var(--radius-lg);
    --shadow: var(--shadow-md);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Angle Converter Variables (for educational content styling) */
    --angle-primary: #2563eb;
    --angle-primary-dark: #1d4ed8;
    --angle-accent: #0ea5e9;
    --angle-surface: #ffffff;
    --angle-border: #e2e8f0;
    --angle-text: #0f172a;
    --angle-muted: #64748b;
    --angle-success: #22c55e;
    --angle-radius-lg: 1.5rem;
    --angle-radius-md: 1rem;
    --angle-radius-sm: 0.75rem;
    --angle-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --angle-shadow-lg: 0 30px 60px rgba(37, 99, 235, 0.12);
    
    /* Related Tools Variables */
    --related-tools-bg: var(--surface);
    --related-tools-border: var(--border);
    --related-tools-text: var(--text-main);
    --related-tools-link: var(--primary);
    --related-tools-link-hover: var(--primary-hover);
    
    /* FAQ Variables */
    --faq-bg: var(--surface);
    --faq-border: var(--border);
    --faq-question-text: var(--text-main);
    --faq-answer-text: var(--text-muted);
    --faq-hover-bg: var(--surface-muted);
    
    /* Pomodoro Specific Variables */
    --pomodoro-primary: #ef4444;
    --pomodoro-primary-dark: #dc2626;
    --pomodoro-primary-light: #fee2e2;
    --pomodoro-success: #10b981;
    --pomodoro-success-dark: #059669;
    --pomodoro-info: #3b82f6;
    --pomodoro-info-dark: #2563eb;
    --pomodoro-warning: #f59e0b;
    --pomodoro-warning-dark: #d97706;
    --pomodoro-surface: #ffffff;
    --pomodoro-surface-muted: #f8fafc;
    --pomodoro-background: #f1f5f9;
    --pomodoro-border: #e2e8f0;
    --pomodoro-text-main: #0f172a;
    --pomodoro-text-muted: #64748b;
    --pomodoro-text-light: #94a3b8;
    --pomodoro-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
    --pomodoro-shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
    --pomodoro-shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
    --pomodoro-shadow-xl: 0 20px 25px rgb(15 23 42 / 0.1);
    --pomodoro-radius-sm: 0.5rem;
    --pomodoro-radius-md: 1rem;
    --pomodoro-radius-lg: 1.5rem;
    --pomodoro-radius-xl: 2rem;
    --pomodoro-radius-full: 9999px;
}

.pomodoro-timer-page {
    padding: 2rem 0;
}

.pomodoro-intro {
    margin-bottom: 2rem;
}

.pomodoro-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--pomodoro-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pomodoro-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--pomodoro-text-muted);
    margin-bottom: .5rem;
    max-width: 780px;
}

.pomodoro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-chip {
    background: var(--pomodoro-surface);
    color: var(--pomodoro-text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--pomodoro-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--pomodoro-shadow-sm);
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-card {
    background: var(--pomodoro-surface);
    border-radius: var(--pomodoro-radius-lg);
    box-shadow: var(--pomodoro-shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.pomodoro-left-column {
    display: flex;
    flex-direction: column;
}

.pomodoro-right-column {
    display: flex;
    flex-direction: column;
}

.pomodoro-settings {
    background: var(--pomodoro-surface-muted);
    border-radius: var(--pomodoro-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--pomodoro-border);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pomodoro-text-main);
}

.preset-section {
    margin-bottom: 1.5rem;
}

.preset-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pomodoro-text-muted);
    margin-bottom: 0.75rem;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.75rem;
    background: var(--pomodoro-surface);
    border: 2px solid var(--pomodoro-border);
    border-radius: var(--pomodoro-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.25rem;
}

.preset-btn:hover {
    background: var(--pomodoro-surface-muted);
    border-color: var(--pomodoro-primary);
    transform: translateY(-2px);
    box-shadow: var(--pomodoro-shadow-sm);
}

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

.preset-btn.active .preset-name,
.preset-btn.active .preset-details {
    color: white;
}

.preset-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pomodoro-text-main);
}

.preset-details {
    font-size: 0.75rem;
    color: var(--pomodoro-text-muted);
    font-weight: 500;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--pomodoro-text-main);
    font-size: 0.875rem;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pomodoro-info);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tooltip-trigger:hover {
    background: var(--pomodoro-info-dark);
    transform: scale(1.1);
}

.tooltiptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pomodoro-text-main);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--pomodoro-radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 200px;
    white-space: normal;
    text-align: center;
}

.tooltip-trigger:hover + .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.pomodoro-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pomodoro-border);
    border-radius: var(--pomodoro-radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--pomodoro-surface);
    color: var(--pomodoro-text-main);
}

.pomodoro-input:focus {
    outline: none;
    border-color: var(--pomodoro-primary);
    box-shadow: 0 0 0 3px var(--pomodoro-primary-light);
}

.pomodoro-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--pomodoro-surface);
    border-radius: var(--pomodoro-radius-sm);
    border: 1px solid var(--pomodoro-border);
}

.pomodoro-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--pomodoro-primary);
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--pomodoro-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-display-section {
    text-align: center;
    padding: 1rem;
}

.session-type-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pomodoro-text-muted);
}

.session-type-display.work {
    color: var(--pomodoro-primary);
}

.session-type-display.short-break {
    color: var(--pomodoro-success);
}

.session-type-display.long-break {
    color: var(--pomodoro-info);
}

.session-count {
    font-size: 0.875rem;
    color: var(--pomodoro-text-muted);
    margin-bottom: 1rem;
}

.progress-circle-container {
    width: 320px;
    height: 320px;
    margin: 0 auto 2rem;
    position: relative;
}

.progress-circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.progress-percentage {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--pomodoro-text-muted);
    margin-top: 0.75rem;
    line-height: 1;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--pomodoro-border);
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease, stroke 0.3s ease;
}

.progress-ring-fill.work {
    stroke: var(--pomodoro-primary);
}

.progress-ring-fill.short-break {
    stroke: var(--pomodoro-success);
}

.progress-ring-fill.long-break {
    stroke: var(--pomodoro-info);
}

.timer-display {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--pomodoro-text-main);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin: 0;
}

.timer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.pomodoro-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--pomodoro-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    box-shadow: var(--pomodoro-shadow-sm);
}

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

.pomodoro-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--pomodoro-shadow-md);
}

.pomodoro-btn:not(:disabled):active {
    transform: translateY(0);
}

.btn-start {
    background: var(--pomodoro-success);
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: var(--pomodoro-success-dark);
}

.btn-pause {
    background: var(--pomodoro-warning);
    color: white;
}

.btn-pause:hover:not(:disabled) {
    background: var(--pomodoro-warning-dark);
}

.btn-reset {
    background: var(--pomodoro-text-muted);
    color: white;
}

.btn-reset:hover:not(:disabled) {
    background: var(--pomodoro-text-main);
}

.btn-skip {
    background: var(--pomodoro-info);
    color: white;
}

.btn-skip:hover:not(:disabled) {
    background: var(--pomodoro-info-dark);
}

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

.stats-card {
    background: var(--pomodoro-surface);
    border-radius: var(--pomodoro-radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--pomodoro-border);
    box-shadow: var(--pomodoro-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pomodoro-shadow-md);
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pomodoro-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--pomodoro-text-muted);
    font-weight: 500;
}

.result-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pomodoro-border);
}

.copy-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.copy-buttons-row .copy-button {
    flex: 1 1 auto;
    min-width: 140px;
}

.copy-button {
    width: 48%;
    background: #f1f5f9;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #405063 !important;
    border: 1px solid #dde3e7;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.copy-button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff !important;
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.share-container {
    background: rgba(241, 245, 249, 0.8);
    border-radius: var(--pomodoro-radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid var(--pomodoro-border);
    margin-top: 1rem;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--pomodoro-text-main);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-x {
    background: #111827;
}

.share-facebook {
    background: #1877f2;
}

.share-linkedin {
    background: #0a66c2;
}

.share-reddit {
    background: #ff4500;
}

.share-telegram {
    background: #229ed9;
}

.share-whatsapp {
    background: #25d366;
    color: #0f172a;
}

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

@media (max-width: 992px) {
    .pomodoro-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pomodoro-card {
        padding: 1.5rem;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.75rem 0.5rem;
    }
    
    .preset-name {
        font-size: 0.875rem;
    }
    
    .preset-details {
        font-size: 0.6875rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-circle-container {
        width: 280px;
        height: 280px;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .pomodoro-btn {
        min-width: 120px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .copy-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pomodoro-timer-page {
        padding: 1rem 0;
    }
    
    .pomodoro-card {
        padding: 1rem;
    }
    
    .progress-circle-container {
        width: 240px;
        height: 240px;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .progress-percentage {
        font-size: 0.875rem;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .pomodoro-btn {
        width: 100%;
    }
}

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

/* Focus styles for accessibility */
.pomodoro-btn:focus-visible,
.pomodoro-input:focus-visible,
.copy-button:focus-visible,
.share-btn:focus-visible,
.tooltip-trigger:focus-visible {
    outline: 3px solid var(--pomodoro-primary);
    outline-offset: 2px;
}

/* Educational Content Section */
.angle-seo-section {
    padding: 2rem 0;
}

.angle-card {
    background: var(--angle-surface);
    border-radius: var(--angle-radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--angle-shadow-sm);
    border: 1px solid var(--angle-border);
}

.angle-education-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.angle-education-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.angle-education-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.angle-education-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.angle-education-card a:hover {
    border-bottom-color: var(--primary);
}

/* Infographic styles */
.infographic-timeline {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
}

.infographic-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 2rem;
}

.infographic-conversion-formula {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.infographic-conversion-formula > .infographic-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.formula-box {
    padding: 1.5rem;
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formula-box:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.formula-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.formula-content {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.formula-example {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .infographic-conversion-formula {
        grid-template-columns: 1fr;
    }
    
    .infographic-timeline {
        padding: 1.5rem;
    }
    
    .angle-education-card h2 {
        font-size: 1.75rem;
    }
    
    .angle-education-card h3 {
        font-size: 1.25rem;
    }
}

