/* Pomodoro Calculator Specific Styles */

/* Variables - Fresh Modern Color Scheme */
:root {
    --work-color: #ff6b6b;
    --break-color: #4ecdc4;
    --long-break-color: #45b7d1;
    --timer-bg: #2d3748;
    --timer-text: #ffffff;
    --card-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --primary-color: #1a202c;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1a202c;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --background-main: #f1f5f9;
    --background-light: #ffffff;
    --background-soft: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #4ecdc4 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Global Overrides for Page */
body {
    background: var(--background-main);
    font-family: 'Inter', 'Roboto', 'Open Sans', system-ui, sans-serif;
    color: #000000 !important;
    line-height: 1.6;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background: var(--background-main);
    min-height: 100vh;
}

.container {
    max-width: 100%;
    padding: 0;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: var(--background-light);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', 'Roboto', sans-serif;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-weight: 600;
    margin: 0 0.25rem;
    font-size: 1rem;
}

/* Tool Header Styles */
.tool-header {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: var(--gradient-secondary);
    color: white;
    margin-bottom: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.04"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.tool-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.tool-header h1 i {
    font-size: 2.8rem;
    opacity: 0.95;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Tool Container */
.tool-container {
    margin: 3rem 0;
    padding: 0 1rem;
}

.calculator-card {
    background: var(--background-light);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

/* Settings Panel */
.settings-panel {
    background: var(--gradient-secondary);
    color: white;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.settings-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.settings-panel h3 {
    margin: 0 0 2rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.settings-panel h3 i {
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-group label {
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.95);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.input-group:focus-within {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.input-group input:focus {
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.input-suffix {
    padding: 16px 20px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.calculate-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    min-height: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

/* Timer Section */
.timer-section {
    padding: 4rem 2.5rem;
    text-align: center;
    background: var(--background-light);
}

.timer-display {
    margin-bottom: 3rem;
}

.current-session {
    margin-bottom: 2rem;
}

.session-type {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-progress {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.9;
    font-weight: 500;
}

.countdown-timer {
    margin: 3rem 0;
    background: var(--background-soft);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.time-display {
    font-size: 5rem;
    font-weight: 900;
    color: var(--timer-bg);
    font-family: 'Inter', 'Roboto', monospace;
    text-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
    display: inline-block;
    min-width: 350px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover::before {
    opacity: 1;
}

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

.start-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.pause-btn {
    background: var(--gradient-warm);
    color: white;
}

.pause-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.reset-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

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

/* Progress Bar */
.progress-container {
    margin-top: 3rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--background-soft);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Results Panel */
.results-panel {
    background: var(--background-soft);
    padding: 3rem 2.5rem;
    border-top: 1px solid var(--border-color);
}

.results-panel h3 {
    margin: 0 0 2rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
}

.results-panel h3 i {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.result-item {
    background: var(--background-light);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-item:hover::before {
    transform: scaleX(1);
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: var(--border-color);
}

.result-label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timer State Classes */
.timer-work {
    --current-color: var(--work-color);
}

.timer-short-break {
    --current-color: var(--break-color);
}

.timer-long-break {
    --current-color: var(--long-break-color);
}

.timer-work .time-display,
.timer-short-break .time-display,
.timer-long-break .time-display {
    color: var(--current-color);
}

.timer-work .progress-fill {
    background: linear-gradient(90deg, var(--work-color), #c0392b);
}

.timer-short-break .progress-fill {
    background: linear-gradient(90deg, var(--break-color), #27ae60);
}

.timer-long-break .progress-fill {
    background: linear-gradient(90deg, var(--long-break-color), #2980b9);
}

/* Content Sections */
.content-section {
    margin-top: 0;
    background: #f1f5f9;
    padding: 2rem 0;
}

.info-section,
.guide-section,
.faq-section,
.article-section {
    background: #ffffff !important;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-family: 'Inter', 'Roboto', sans-serif;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.info-section::before,
.guide-section::before,
.faq-section::before,
.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.info-section h2,
.guide-section h2,
.faq-section h2,
.article-section h2 {
    color: #000000 !important;
    margin-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    line-height: 1.2;
}

.info-section h2::after,
.guide-section h2::after,
.faq-section h2::after,
.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.info-section p,
.article-section p {
    line-height: 1.8;
    color: #000000 !important;
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
}

.article-section p strong {
    color: #6366f1 !important;
    font-weight: 700;
}

/* Steps Guide */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.5rem;
    background: #ffffff !important;
    border-radius: 20px;
    border: 2px solid transparent;
    border-left: 6px solid #6366f1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover::before {
    opacity: 1;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-color: #6366f1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
}

.step-content h3 {
    margin: 0 0 1.25rem 0;
    color: #000000 !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content p {
    margin: 0;
    color: #000000 !important;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.faq-item {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-item:hover {
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.faq-question {
    padding: 2rem 2.5rem;
    background: #ffffff !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-question:hover::before {
    opacity: 1;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, var(--background-soft) 100%);
}

.faq-item.active .faq-question {
    background: var(--gradient-secondary);
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.faq-item.active .faq-question::before {
    opacity: 0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.4;
    flex: 1;
    padding-right: 1.5rem;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-question i {
    color: #6366f1;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--background-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
    background: rgba(255,255,255,0.2);
}

.faq-answer {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: #ffffff !important;
}

.faq-item.active .faq-answer {
    padding: 2.5rem;
    max-height: 400px;
}

.faq-answer p {
    margin: 0;
    color: #000000 !important;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Related Tools */
.related-tools {
    margin-top: 4rem;
    padding: 4rem 3rem;
    background: #ffffff !important;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.related-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.related-tools h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000 !important;
    font-size: 2.4rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1.5rem;
}

.related-tools h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.tool-card {
    background: #ffffff !important;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    border-color: #8b5cf6;
}

.tool-card i {
    font-size: 3.5rem;
    color: #6366f1;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.tool-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #8b5cf6;
}

.tool-card h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000 !important;
    position: relative;
    z-index: 1;
}

.tool-card p {
    margin: 0;
    color: #000000 !important;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-card {
        margin: 1rem 0;
        border-radius: 10px;
    }
    
    .settings-panel {
        padding: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timer-section {
        padding: 2rem 1rem;
    }
    
    .time-display {
        font-size: 2.5rem;
        min-width: 200px;
    }
    
    .timer-controls {
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .results-panel {
        padding: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .result-item {
        padding: 1rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    /* Tool Header Mobile */
    .tool-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tool-header h1 i {
        font-size: 1.8rem;
    }
    
    .tool-header p {
        font-size: 1rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Content Sections Mobile */
    .info-section,
    .guide-section,
    .faq-section,
    .article-section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-section h2,
    .guide-section h2,
    .faq-section h2,
    .article-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }
    
    .info-section p,
    .article-section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .step-number {
        align-self: center;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 0.75rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.5rem;
    }
    
    .related-tools {
        padding: 2rem 1.5rem;
    }
    
    .related-tools h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 2rem 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .settings-panel h3 {
        font-size: 1.3rem;
    }
    
    .calculate-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .time-display {
        font-size: 2rem;
        min-width: 150px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    /* Ultra Mobile Adjustments */
    .tool-header {
        padding: 1.5rem 1rem;
    }
    
    .tool-header h1 {
        font-size: 1.6rem;
    }
    
    .tool-header h1 i {
        font-size: 1.5rem;
    }
    
    .tool-header p {
        font-size: 0.95rem;
    }
    
    .info-section,
    .guide-section,
    .faq-section,
    .article-section {
        padding: 1.5rem 1rem;
    }
    
    .info-section h2,
    .guide-section h2,
    .faq-section h2,
    .article-section h2 {
        font-size: 1.4rem;
    }
    
    .step {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .related-tools {
        padding: 1.5rem 1rem;
    }
    
    .related-tools h2 {
        font-size: 1.4rem;
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.95rem;
    }
}

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

.timer-active .time-display {
    animation: pulse 2s infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .timer-active .time-display {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .calculator-card {
        border: 2px solid #000;
    }
    
    .settings-panel {
        background: #000;
        color: #fff;
    }
    
    .input-group {
        border: 2px solid #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .calculator-card {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .info-section,
    .guide-section,
    .faq-section,
    .article-section {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .info-section h2,
    .guide-section h2,
    .faq-section h2,
    .article-section h2 {
        color: #ecf0f1;
    }
    
    .step {
        background: #2c3e50;
    }
    
    .faq-question {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .faq-question:hover {
        background: #34495e;
    }
    
    .tool-card {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-content {
    padding: 0;
}

.sidebar-section {
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    padding: 1.5rem 2rem 1rem 2rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    background: #f8fafc;
}

.tool-list {
    padding: 0;
}

.tool-list a {
    display: block;
    padding: 1rem 2rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tool-list a:hover {
    background: #f1f5f9;
    color: #2d3748;
    border-left-color: #6366f1;
}

.tool-list a.active {
    background: #e2e8f0;
    color: #1a202c;
    border-left-color: #8b5cf6;
    font-weight: 600;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Favorites List Styles */
.favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.favorites-list li {
    margin: 0;
}

.favorites-list a {
    display: block;
    padding: 0.75rem 2rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.favorites-list a:hover {
    background: #f1f5f9;
    color: #2d3748;
    border-left-color: #fbbf24;
}

.no-favorites {
    padding: 1rem 2rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Popular Tools List Styles */
.popular-tools {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-tools li {
    margin: 0;
}

.popular-tools a {
    display: block;
    padding: 0.75rem 2rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.popular-tools a:hover {
    background: #f1f5f9;
    color: #2d3748;
    border-left-color: #ef4444;
}

/* Page Favorite Star Button */
.page-favorite-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.page-favorite-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.1);
}

.page-favorite-btn.active {
    color: #fbbf24;
}

.page-favorite-btn.active:hover {
    color: #f59e0b;
}
