/* Daily Schedule Manager - Frontend Styles */

.dsm-schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dsm-period-section {
    background: #f9f6f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dsm-period-title {
    color: #2d3e6f;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.dsm-schedule-item {
    display: flex;
    
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.dsm-time-badge {
    background-color: #5a9b8e;
    color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    max-width: 100%;
}

.dsm-time-slot {
    font-size: 18px;
    line-height: 1.2;
}

.dsm-activities {
    display: flex;
    flex: 1;
    gap: 0;
}

.dsm-activity {
    padding: 15px;
    position: relative;
}

.dsm-activity-full {
    flex: 1;
    background: #d4e9ed;
}

.dsm-activity-split {
    flex: 1;
    background: #d4e9ed;
}

.dsm-activity-split:first-child {
    border-right: 2px dashed rgba(0, 0, 0, 0.1);
}

.dsm-time-range {
    display: block;
    font-size: 11px;
    color: #2d3e6f;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsm-activity-title {
    color: #2d3e6f;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.3;
}

.dsm-activity-subtitle {
    color: #2d3e6f;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dsm-schedule-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .dsm-period-title {
        font-size: 24px;
    }
    
    .dsm-schedule-item {
        flex-direction: column;
    }
    
    .dsm-time-badge {
        min-width: 100%;
        padding: 10px;
    }
    
    .dsm-activities {
        flex-direction: column;
    }
    
    .dsm-activity-split:first-child {
        border-right: none;
        border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .dsm-period-section {
        padding: 15px;
    }
    
    .dsm-activity {
        padding: 12px;
    }
    
    .dsm-activity-title {
        font-size: 14px;
    }
    
    .dsm-activity-subtitle {
        font-size: 12px;
    }
}