:root {
    --primary-color: #ff6347; /* Tomato red */
    --secondary-color: #4caf50; /* Green */
    --background-color: #fff;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --dark-gray: #888;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Arial', sans-serif;
}

/* Dark mode colors */
.dark-mode {
    --primary-color: #ff7f50; /* Lighter coral */
    --secondary-color: #72c275; /* Lighter green */
    --background-color: #282c35;
    --text-color: #f5f5f5;
    --light-gray: #3a3f4b;
    --medium-gray: #555;
    --dark-gray: #ccc;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

h1, h2 {
    color: var(--primary-color);
}

/* Section Headings */
.tasks-section h2,
.settings-section h2 {
    margin-bottom: 20px;
}

/* Style for the link in the header h1 to remove underline */
header h1 a {
    text-decoration: none;
    color: inherit; /* Inherit color from the h1 tag */
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 2px;
}

/* Header Controls */
.header-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

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

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Timer Section */
.timer-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.timer-display {
    font-size: 6rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--primary-color);
}

.timer-mode {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.session-counter {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* Timer Control Buttons */
.timer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.timer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    font-size: 1rem;
}

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

.secondary-timer-btn {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

.timer-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.timer-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

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

.btn-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Adjust the button layout for mobile devices */
@media (max-width: 480px) {
    .timer-controls {
        gap: 10px;
    }
    
    .timer-btn {
        min-width: calc(50% - 10px);
        padding: 12px 10px;
    }
    
    .timer-display {
        font-size: 5rem;
    }
}

/* Tasks Section */
.tasks-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.task-input {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.task-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.2s;
}

.task-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.task-input button {
    padding: 12px 24px;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--medium-gray);
}

.task-input button:hover {
    transform: translateY(-2px);
    background-color: var(--medium-gray);
}

.task-list {
    max-height: 300px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.task-item.dragging {
    opacity: 0.5;
    box-shadow: 0 6px 8px var(--shadow-color);
}

.task-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

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

.task-completed {
    text-decoration: line-through;
    color: var(--dark-gray);
    opacity: 0.7;
}

.task-controls {
    display: flex;
    gap: 8px;
}

.task-edit-btn,
.task-delete-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--medium-gray);
}

.task-edit-btn:hover,
.task-delete-btn:hover {
    transform: translateY(-2px);
    background-color: var(--medium-gray);
}

/* Task Empty Message */
.task-empty-message {
    color: var(--dark-gray);
    text-align: center;
    padding: 20px;
}

/* Settings Section */
.settings-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-top: 10px;
    
    /* Hidden by default */
    display: none;
    animation: slideDown 0.3s ease-out;
}

.settings-section.visible {
    display: block;
}

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

.setting-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item label {
    margin-right: 10px;
}

.setting-item input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    color: var(--text-color);
}

#save-settings-btn {
    margin-top: 0;
}

#test-sound-btn {
    padding: 5px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

#reset-settings-btn {
    background-color: #999;
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: 50px;
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.message {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
    animation: slideIn 0.3s ease-out;
}

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

/* Add this near the settings section styles */

.settings-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

.settings-buttons button {
    min-width: auto;
}

/* General Button Styles */
button {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.1s;
}

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

.secondary-btn {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Icon styles */
.history-icon, .settings-icon, .theme-icon {
    font-size: 1.3rem;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.icon-btn:hover .history-icon,
.icon-btn:hover .settings-icon,
.icon-btn:hover .theme-icon {
    color: var(--primary-color);
}

.dark-mode .history-icon,
.dark-mode .settings-icon,
.dark-mode .theme-icon {
    color: var(--text-color);
    opacity: 0.9;
}

.dark-mode .icon-btn:hover .history-icon,
.dark-mode .icon-btn:hover .settings-icon,
.dark-mode .icon-btn:hover .theme-icon {
    color: var(--primary-color);
    opacity: 1;
}

/* Data Management Section */
.data-management {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.data-management h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.action-btn {
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 16px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.dark-mode .action-btn {
    background: var(--background-color);
    border-color: var(--medium-gray);
    color: var(--text-color);
}

.dark-mode .action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.header-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
}
.header-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: var(--dark-gray);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

/* Header Brand Update */
.header-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    margin-left: 8px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Hero Section - Minimal */
.hero-section {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.hero-section h1 {
    font-size: 1.4em;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1em;
    color: var(--dark-gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Content Section */
.content-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.content-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.content-section h3 {
    color: var(--text-color);
    margin: 25px 0 15px 0;
    font-size: 1.3em;
}

.technique-explanation p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

.technique-explanation ol, .technique-explanation ul {
    margin: 20px 0 20px 30px;
    line-height: 1.7;
}

.technique-explanation li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.technique-explanation strong {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.faq-section h2 {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 5px 0;
        margin-bottom: 10px;
    }
    
    .hero-section h1 {
        font-size: 1.2em;
    }
    
    .content-section, .faq-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .breadcrumb {
        margin-bottom: 15px;
    }
    
    .technique-explanation ol, .technique-explanation ul {
        margin-left: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .timer-section {
        margin: 20px 0;
    }
} 