@import url('https://fonts.googleapis.com/css2?family=Odibee+Sans&display=swap');

.odibee-sans-regular {
  font-family: "Odibee Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

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

html, body {
    height: 100%;
    font-family: 'Odibee Sans', sans-serif;
    background-color: #1a1a2e;
    color: #eee;
    overflow: hidden;
}

.modoro-app {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-right: 2px solid #0f3460;
}

.timer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.timer-upper {
    background: linear-gradient(135deg, #533483 0%, #7c5fa6 100%);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    min-width: 28rem;
    min-height: 20rem;
}

.timer-phase {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.phase-indicator {
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    font-size: 0.9rem;
}

.timer-ticker {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-ticker-text {
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Odibee Sans', monospace;
    width: 100%;
    text-align: center;
}

.timer-buttons {
    display: flex;
    gap: 1rem;
}

.timer-button {
    background: linear-gradient(135deg, #e94057 0%, #f27121 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 64, 87, 0.3);
}

.timer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 64, 87, 0.4);
}

.timer-button:active {
    transform: translateY(0);
}

.timer-button.timer-pause {
    background: linear-gradient(135deg, #f7931e 0%, #ffb347 100%);
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.timer-button.timer-stop {
    background: linear-gradient(135deg, #6c757d 0%, #8a959e 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.timer-lower {
    background: linear-gradient(135deg, #533483 0%, #7c5fa6 100%);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 35rem;
    height: 18rem;
    position: relative;
    overflow: hidden;
}

.task-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.task-buttons {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-buttons:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tasks-display {
    flex: 1;
    position: relative;
    min-height: 8rem;
    max-width: 750px;
    max-height: 8rem;
    margin: 0 1rem;
    width: 100%;
}

.task {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.task-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    margin-top: 0.5rem;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.task-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.task-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.task-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    gap: 2rem;
}

.add-task-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.task-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.add-task-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-task-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.task-menu {
    position: absolute;
    top: 2rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: none;
}

.task-menu.show {
    display: block;
}

.task-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.task-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.task-dots {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.task-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.task-dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.6);
}

.task-dot.active {
    background: #e94057;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(233, 64, 87, 0.4);
}

.task-dot.completed {
    background: #28a745;
    position: relative;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.task-dot.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: white;
}

.logo-body {
    margin-top: 1.6rem;
}

.logo {
    width: 8rem;
    opacity: 0.8;
}

.side-container {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
}

.side-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
}

.reminder-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.reminder-radio span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.reminder-radio input[type="radio"] {
    margin-right: 0.3rem;
}

.reminder-radio label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.reminders-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
}

.reminder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.reminder:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.reminder-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
    padding-right: 2rem;
}

.reminder-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.reminder-deadline {
    color: #e94057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.reminder-urgency {
    font-weight: 600;
    font-size: 1.1rem;
}

.reminder-urgency.low {
    color: #28a745;
}

.reminder-urgency.medium {
    color: #ffc107;
}

.reminder-urgency.high {
    color: #e94057;
}

.reminder-add-container {
    margin-top: 1rem;
    text-align: center;
}

.reminder-add-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.reminder-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e94057;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-btn {
    background: linear-gradient(135deg, #e94057 0%, #f27121 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 64, 87, 0.3);
}

.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 3000;
    pointer-events: none;
    animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modoro-app {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .main-container {
        border-right: none;
        border-bottom: 2px solid #0f3460;
    }
    
    .timer-upper,
    .timer-lower {
        min-width: auto;
        width: 100%;
    }
    
    .timer-buttons {
        flex-wrap: wrap;
    }
    
    .side-container {
        max-height: 40vh;
    }
}

.reminder-delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(233, 64, 87, 0.8);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reminder-delete:hover {
    background: rgba(233, 64, 87, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 64, 87, 0.4);
}

.reminder-delete:active {
    transform: scale(0.95);
}

/* Reminder deadline states */
.reminder.warning {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.reminder.urgent {
    border-left: 4px solid #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.reminder.overdue {
    border-left: 4px solid #e94057;
    background: rgba(233, 64, 87, 0.1);
}

.reminder-deadline.overdue {
    color: #e94057;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.task.completed {
    opacity: 0.7;
}

/* Ambient Noise Drawer */
.ambient-noise-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1500;
}

.ambient-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
}

.ambient-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ambient-toggle-btn.active {
    background: rgba(233, 64, 87, 0.8);
    border-color: rgba(233, 64, 87, 1);
    animation: musical-pulse 2s ease-in-out infinite;
}

@keyframes musical-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ambient-drawer {
    position: absolute;
    top: 4rem;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ambient-drawer.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ambient-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ambient-sounds {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ambient-sound-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ambient-sound-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 140px;
}

.ambient-sound-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.ambient-sound-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.8);
}

.individual-volume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

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

.individual-volume-slider {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 20px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.individual-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: rgba(233, 64, 87, 0.9);
    border-radius: 50%;
    cursor: pointer;
}

.individual-volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: rgba(233, 64, 87, 0.9);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.individual-volume-value {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.ambient-volume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ambient-volume-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

.ambient-volume-slider {
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    appearance: slider-vertical; /* Standard */
    width: 30px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 15px;
    cursor: pointer;
}

.ambient-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e94057;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ambient-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e94057;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ambient-volume-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}