                /* Schedule Section - Mobile Styles */
#schedule .card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#schedule .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

#schedule .calendar {
    padding: 15px;
}

#schedule .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#schedule .calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

#schedule .calendar-nav button {
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

#schedule .calendar-title {
    font-weight: 600;
    font-size: 16px;
}

#schedule .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

#schedule .calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 5px 0;
}

#schedule #calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    grid-column: span 7;
}

#schedule .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
}

#schedule .calendar-day.today {
    background-color: #007bff;
    color: white;
}

#schedule .calendar-day.has-event {
    position: relative;
}

#schedule .calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background-color: #007bff;
    border-radius: 50%;
}

#schedule .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#schedule .table th {
    text-align: left;
    padding: 10px;
    background-color: #f8f9fa;
    font-weight: 600;
    display: none; /* Hide headers on mobile */
}

#schedule .table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: block; /* Stack table cells */
}

#schedule .table tr {
    margin-bottom: 10px;
    display: block;
    border: 1px solid #eee;
    border-radius: 5px;
}

#schedule .table td:before {
    content: attr(data-label);
    font-weight: 600;
    display: inline-block;
    width: 100px;
    color: #666;
}

/* Add some spacing between table rows */
#schedule .table tbody tr {
    margin-bottom: 10px;
}

/* Adjust button sizes for mobile */
#schedule .btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Modal adjustments for mobile */
.modal-content {
    width: 90%;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    #schedule .table th {
        display: table-cell;
    }
    
    #schedule .table td {
        display: table-cell;
    }
    
    #schedule .table td:before {
        display: none;
    }
    
    #schedule .table tr {
        display: table-row;
        border: none;
    }
}
            

            
.stopwatch-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.stopwatch-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #ffebee;
    border: none;
    border-radius: 6px;
    color: #d32f2f;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.stopwatch-remove:hover {
    background: #ffcdd2;
}

.stopwatch-header {
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 17px;
    word-break: break-word;
    padding-right: 40px;
    line-height: 1.4;
    color: #333;
}

.stopwatch-display-sm {
    font-size: 26px;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    margin: 14px 0;
    padding: 12px 8px;
    background: #424242;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
}

.speed-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 14px 0;
    font-size: 14px;
    gap: 10px;
}

.speed-info span {
    margin: 0;
    white-space: nowrap;
    flex: 1 0 auto;
    text-align: center;
    padding: 6px 4px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #555;
}

.stopwatch-controls-sm {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.stopwatch-controls-sm button {
    min-width: 60px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Colors */
.btn-start {
    background-color: #4caf50;
    color: white;
}

.btn-pause {
    background-color: #ff9800;
    color: white;
}

.btn-reset {
    background-color: #f44336;
    color: white;
}

.btn-lap {
    background-color: #2196f3;
    color: white;
}

/* Hover States */
.btn-start:hover { background-color: #388e3c; }
.btn-pause:hover { background-color: #f57c00; }
.btn-reset:hover { background-color: #d32f2f; }
.btn-lap:hover { background-color: #1976d2; }

/* Active States */
.stopwatch-controls-sm button:active {
    transform: scale(0.96);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
    margin-top: 12px;
}

.table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

.table th, .table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .stopwatch-item {
        padding: 14px;
        margin-bottom: 16px;
    }
    
    .stopwatch-header {
        font-size: 16px;
    }
    
    .stopwatch-display-sm {
        font-size: 24px;
        padding: 10px 6px;
    }
    
    .stopwatch-controls-sm {
        gap: 10px;
    }
    
    .stopwatch-controls-sm button {
        min-width: 56px;
        height: 44px;
        font-size: 14px;
        padding: 0 10px;
    }
    
    .table th, .table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .stopwatch-item {
        padding: 12px;
    }
    
    .stopwatch-header {
        font-size: 15px;
        padding-right: 36px;
    }
    
    .stopwatch-display-sm {
        font-size: 22px;
    }
    
    .speed-info span {
        font-size: 13px;
        padding: 5px 3px;
    }
    
    .stopwatch-controls-sm {
        gap: 8px;
    }
    
    .stopwatch-controls-sm button {
        min-width: 52px;
        height: 42px;
        font-size: 13px;
        padding: 0 8px;
        border-radius: 6px;
    }
    
    .table {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .stopwatch-controls-sm {
        gap: 6px;
    }
    
    .stopwatch-controls-sm button {
        min-width: 48px;
        height: 40px;
        font-size: 12px;
    }
    
    .speed-info span {
        flex: 1 0 100%;
        margin-bottom: 4px;
    }
}