.bfl-schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.bfl-week-container {
    background: #fff;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bfl-week-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bfl-week-content {
    display: block;
}

.bfl-week-container h2 {
    color: #0073aa;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    text-align: center;
}

.bfl-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.bfl-week-summary {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.bfl-week-summary-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.bfl-week-summary-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 4px;
    border-radius: 6px;
}

.bfl-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.bfl-week-summary.is-collapsed .bfl-week-summary-body {
    display: none;
}

.bfl-week-summary.is-collapsed .bfl-summary-icon {
    transform: rotate(0deg);
}

.bfl-week-summary.is-expanded .bfl-summary-icon {
    transform: rotate(45deg);
}

.bfl-week-summary-body {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 12px;
}

.bfl-week-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bfl-week-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
}

.bfl-week-summary-row .summary-label {
    font-weight: 600;
    color: #1e293b;
}

.bfl-week-summary-row .summary-value {
    font-weight: 600;
    color: #0f172a;
}

.bfl-schedule-day {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
}

.bfl-start-date-label {
    background: #0ea5e9;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    margin: 0 auto 8px auto;
    width: fit-content;
}

.bfl-schedule-day.bfl-start-date {
    border: 2px solid #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.bfl-schedule-day.bfl-day-past {
    background-color: #dbdbdb;
}

.bfl-schedule-day.bfl-day-today {
    background-color: #e6f4ff;
    border: 2px solid #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.bfl-schedule-day:hover {
    transform: translateY(-5px);
}

/* New day header styles */
.day-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.day-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.day-date {
    color: #666;
    font-size: 0.9em;
}

/* Sunday specific styles */
.bfl-schedule-day.sunday {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.bfl-workout-type {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
}

.bfl-workout-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

.log-workout-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
    width: 100%;
}

.log-workout-btn:hover {
    background-color: #005177;
}

/* Weekly Measurements Button */
.log-weekly-measurements {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
    font-size: 0.9em;
}

.log-weekly-measurements:hover {
    background-color: #218838;
}

.log-weekly-measurements[data-has-measurements="1"] {
    background-color: #17a2b8;
}

.log-weekly-measurements[data-has-measurements="1"]:hover {
    background-color: #138496;
}

/* Workout Status Indicators */
.workout-status {
    position: absolute;
    top: -2px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.workout-status.none {
    display: none;
}

.workout-status.partial {
    background-color: #f0ad4e;
    border: 2px solid #eea236;
}

.workout-status.complete {
    background-color: #5cb85c;
    border: 2px solid #4cae4c;
}

.workout-status.complete::before {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.bfl-measurements-complete::after {
    content: '🏆';
    position: absolute;
    top: -6px;
    right: -10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: #f6c343;
    border: 2px solid #e0a800;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Modal Styles */
.fsm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fsm-modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px;
}

.fsm-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.fsm-close:hover {
    color: #333;
}

/* Form Styles */
.exercise-category {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.exercise-category h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0073aa;
}

.exercise-selection {
    margin-bottom: 15px;
}

.exercise-selection label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.exercise-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.exercise-sets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.exercise-set {
    padding: 10px;
}

.exercise-set label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.weight-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.fsm-submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.fsm-submit-btn:hover {
    background-color: #45a049;
}

/* Clear Button Styles */
.fsm-clear-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.fsm-clear-btn:hover {
    background-color: #c82333;
}

/* Cardio Form Styles */
.cardio-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.cardio-inputs label {
    font-weight: bold;
    color: #333;
}

.cardio-inputs input,
.cardio-inputs textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cardio-inputs textarea {
    height: 100px;
    resize: vertical;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .bfl-schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bfl-week-layout {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .bfl-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exercise-sets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bfl-schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .fsm-modal-content {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }
}
