/* Custom Styles for Pomodoro Timer - Bulma Framework */

:root {
    --primary-color: #db4c4c;
    --primary-dark: #c74545;
    --primary-light: #e57373;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --bg-dark: #2d3436;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===== NAVBAR ===== */
.navbar.is-danger {
    background-color: var(--primary-color);
}

.navbar-item.has-text-white,
.navbar-item.has-text-white:hover {
    color: var(--text-light) !important;
}

.navbar-burger span {
    background-color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero.is-medium {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.hero .title.has-text-danger-dark {
    color: var(--primary-dark) !important;
}

.hero .subtitle.has-text-grey-dark {
    color: var(--text-muted) !important;
}

/* ===== TIMER CONTAINER ===== */
.timer-container {
    background-color: var(--primary-color) !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
}

.timer-display {
    font-size: 7rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .timer-display {
        font-size: 5rem;
    }
}

@media screen and (max-width: 480px) {
    .timer-display {
        font-size: 3.5rem;
    }
}

/* ===== TABS STYLING ===== */
.tabs.is-boxed {
    margin-bottom: 0;
}

.tabs.is-boxed ul {
    border-bottom: none;
}

.tabs.is-boxed li {
    margin-bottom: 0;
}

.tabs.is-boxed li a {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.75em 1.25em;
    margin: 0 0.25rem;
}

.tabs.is-boxed li a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--text-light);
}

.tabs.is-boxed li.is-active a {
    background-color: var(--text-light);
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.button.is-white {
    background-color: var(--text-light);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
}

.button.is-white:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.button.is-white.is-outlined {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.button.is-white.is-outlined:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.button.is-danger {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.button.is-danger:hover {
    background-color: var(--primary-dark);
}

/* ===== TASK ITEMS ===== */
.task-item {
    background: var(--text-light);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-item.completed {
    opacity: 0.5;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-text {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 1.5rem;
}

.section.has-background-light {
    background-color: var(--bg-light);
}

.section .title.has-text-danger-dark {
    color: var(--primary-dark) !important;
}

.section .subtitle.has-text-grey-dark,
.section .has-text-grey-dark {
    color: var(--text-muted) !important;
}

/* ===== BOXES ===== */
.box {
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.box .title.is-5 {
    color: var(--text-dark);
}

.box p {
    color: var(--text-muted);
}

/* ===== MEDIA CONTENT ===== */
.media-content .title.is-5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.media-content p {
    color: var(--text-muted);
}

/* ===== FAQ MESSAGES ===== */
.message.is-danger .message-header {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.message.is-danger .message-header p {
    color: var(--text-light);
    font-weight: 500;
}

.message.is-danger .message-body {
    background-color: #fff5f5;
    color: var(--text-dark);
    border-color: var(--primary-light);
}

/* ===== CTA SECTION ===== */
.section.has-background-danger {
    background-color: var(--primary-color) !important;
}

.section.has-background-danger .title.has-text-white {
    color: var(--text-light) !important;
}

.section.has-background-danger .subtitle.has-text-white-ter,
.section.has-background-danger .has-text-white-ter {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== FOOTER ===== */
.footer.has-background-dark {
    background-color: var(--bg-dark) !important;
    padding: 3rem 1.5rem 2rem;
}

.footer .title.has-text-white {
    color: var(--text-light) !important;
    font-weight: 600;
}

.footer .has-text-white,
.footer .content.has-text-white p,
.footer strong.has-text-white {
    color: var(--text-light) !important;
}

.footer .has-text-white-ter,
.footer a.has-text-white-ter,
.footer .content.has-text-white-ter p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer a.has-text-white-ter:hover {
    color: var(--text-light) !important;
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer hr.has-background-grey {
    background-color: rgba(255, 255, 255, 0.2) !important;
    height: 1px;
    margin: 2rem 0;
}

.footer .button.is-white.is-outlined {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

.footer .button.is-white.is-outlined:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* ===== MODAL ===== */
.modal-card-head.has-background-danger {
    background-color: var(--primary-color) !important;
}

.modal-card-title.has-text-white {
    color: var(--text-light) !important;
}

/* ===== ICONS ===== */
.has-text-danger {
    color: var(--primary-color) !important;
}

/* ===== INPUT FIELDS ===== */
.input {
    border-color: #dbdbdb;
    color: var(--text-dark);
}

.input::placeholder {
    color: #999999;
}

.input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(219, 76, 76, 0.25);
}

/* ===== SETTINGS BUTTON ===== */
#settingsBtn.is-white.is-outlined {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-light);
}

#settingsBtn.is-white.is-outlined:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .button {
        display: none;
    }
}
