/* public/css/style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

#Body-dashboard {
    width: 1600px;
}

.container {
    margin: 0;
    padding: 20px;
}

.container-head {
    max-width: 100vw;
    position: sticky;
    left: 0;
}

.container-controls {
    color: #333;
    background: #f5f5f5;
    margin: 20px 0 0;
}

.container.content {
    max-width: 100vw;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 20px 0 0;
    margin-bottom: 30px;
}

.header .container {
}

.header h1 {
    display: inline-block;
    margin: 0;
}

.header .user-info {
    float: right;
}

.header .user-info span {
    margin-right: 15px;
}

.login-box {
    max-width: 500px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

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

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    margin-left: 10px;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    background: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    word-break: break-all;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.controls {
    margin-bottom: 30px;
    max-width: 100vw;
    position: sticky;
    left: 0;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.month-selector h2 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.range-selector {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

#rangeDisplay {
    margin-top: 10px;
}

#rangeText {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.timetable {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 1560px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-cell.empty {
    background: #f9f9f9;
    border-color: transparent;
}

.day-cell.weekend {
    background: #fff5f5;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}


.slot:hover {
    background: #f0f8ff;
}


.slot.range-selecting {
    background: #fff9c4;
    border-color: #ffc107;
}


.entry {
    display: inline-block;
    font-size: 11px;
    padding: 2px 5px;
    background: #ecf0f1;
    border-radius: 3px;
    white-space: nowrap;
}

.entry.current-user {
    background: #3498db;
    color: white;
    font-weight: 500;
}

.day-cell {
    border: 1px solid #ccc;
    padding: 6px;
    margin: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slots-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
}

.slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 2px;
    padding: 2px;
    border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
}

.slot.user-selected {
    background-color: #d0f0d0;
}

.slot-icon {
    width: 100%;
    font-size: 1.5em;
}

.slot-icon svg {
    color: #bd9400;
    width: 100%;
    height: auto;
    padding: 0 8px;
}

.slot-entries {
    margin-top: 2px;
    font-size: 0.9em;
    text-align: center;
}

.slot-entries .entry {
    display: block;
    margin: 1px 0;
}



.admin-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background: #ecf0f1;
    font-weight: bold;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 5px;
    }
    
    .day-cell {
        min-height: 100px;
        padding: 5px;
    }
    
    .day-header {
        padding: 5px;
        font-size: 12px;
    }
    
    .entry {
        font-size: 10px;
    }
    
    .header .user-info {
        float: none;
        margin-top: 10px;
    }
}
