/* 90-Minute Max Specific Styles */

/* Header Styling */
.bg-primary {
    background-color: #6f42c1 !important;
}

.bg-primary .text-white {
    color: white !important;
}

/* Flow Task Cards */
.flow-task-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.flow-task-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.flow-task-card.active {
    border-color: #198754;
    background-color: #f0f8f0;
}

.flow-task-card.completed {
    opacity: 0.7;
    background-color: #e9ecef;
}

/* Flow Countdown Display (90min timer) */
.flow-countdown-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    color: #dc3545;
    margin: 10px 0 5px 0;
}

.flow-countdown-display.running {
    color: #198754;
}

/* Flow Timer Display (elapsed time) */
.flow-timer-display {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    color: #6c757d;
    margin: 5px 0 15px 0;
}

.flow-timer-display.running {
    color: #198754;
}

.flow-timer-display.break {
    color: #fd7e14;
}

/* Break Sections */
.break-section {
    background-color: #e8f4fd;
    border: 1px dashed #0d6efd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.break-time-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.break-timer-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fd7e14;
    margin: 10px 0;
}

/* Day Schedule Overview */
.day-schedule-card {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.day-time-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 20px;
    font-family: 'Exo 2', sans-serif;
}

.flow-boxes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flow-boxes-label {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-boxes-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: end;
}

.flow-box {
    min-width: 40px;
    width: auto;
    max-width: 120px;
    height: 80px;
    background-color: #e9ecef;
    border: 2px solid #6c757d;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px;
    text-align: center;
}

.flow-box.has-flow-name {
    width: auto;
    min-width: 80px;
}

.flow-number-display {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}

.flow-name-display {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 2px;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.flow-box.active {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
    transform: scale(1.1);
}

.flow-box.completed {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.flow-box:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Flow Progress Indicator */
.flow-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.flow-progress-bar {
    height: 100%;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.flow-progress-bar.complete {
    background-color: #198754;
}

/* Flow Number Badge */
.flow-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #0d6efd;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Break Duration Buttons */
.break-duration-btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin: 0 2px;
}

/* Time Schedule Display */
.time-schedule {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-top: 5px;
}

/* Flow Controls */
.flow-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.flow-controls .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flow-countdown-display {
        font-size: 2.5rem;
    }
    
    .flow-timer-display {
        font-size: 1.25rem;
    }
    
    .break-timer-display {
        font-size: 1.25rem;
    }
    
    .flow-task-card {
        padding: 15px;
    }
}



/* Day Time Display Styles */
.day-time-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.day-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-time-input {
    width: 120px;
    text-align: center;
    font-size: 1.1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    transition: border-color 0.3s ease;
}

.day-time-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.time-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #495057;
}

.day-time-display {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Completed Sessions Section */
.completed-tasks-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.completed-tasks-section h2 {
    color: #6f42c1;
    margin-bottom: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-filter label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.date-filter input {
    width: 150px;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
}

.table th {
    background-color: #6f42c1;
    color: white;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    border: none;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table td {
    font-family: 'Cormorant', serif;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    border-radius: 4px;
}

/* Modal styling for better readability */
.modal-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    background-color: #f8f9fa;
    color: #212529;
}

.modal-footer {
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
}

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

.timer-pulse {
    animation: pulse 0.3s ease-in-out;
}