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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
}

.login-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.login-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#user-select {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

#user-select:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.week-navigation h2 {
    color: #333;
    font-size: 1.5rem;
}

.week-navigation button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.day-header {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    padding: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 8px;
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-slot {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.time-slot:hover {
    border-color: #667eea;
}

.time-slot h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.signup-info {
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.signup-info.has-signup {
    background: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.signup-info .user-name {
    font-weight: 600;
    color: #155724;
}

.signup-info .time {
    color: #155724;
    font-size: 0.8rem;
}

.signup-info .notes {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.signup-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    align-self: flex-start;
}

.signup-btn.edit-btn {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.delete-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.delete-btn:hover {
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .day-header {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    .week-navigation {
        padding: 1rem;
    }

    .week-navigation h2 {
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}