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

body {
    font-family: Arial, sans-serif;
    background: #f4f4f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.collapsible-header:hover {
    background-color: #f5f5f5;
}

#toggle-icon {
    font-size: 14px;
    margin-left: 10px;
}

.time-period {
    font-size: 24px;
    color: #2196F3;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.notice {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    border-left: 3px solid #2196F3;
}

.practice-time {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #2196F3;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.1);
    font-weight: 500;
    line-height: 1.8;
}

.password-display {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #2196F3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

#password-text {
    width: 100%;
    text-align: center;
}

#password-text:empty {
    display: none;
}

.auth-input {
    text-align: center;
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-input input {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.auth-input input:focus {
    outline: none;
    border-color: #2196F3;
}

button {
    padding: 12px 30px;
    font-size: 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

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

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

#loading {
    text-align: center;
    color: #2196F3;
    font-size: 18px;
}

.login-section {
    text-align: center;
}

.login-section input {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.login-section input:focus {
    outline: none;
    border-color: #2196F3;
}

.admin-panel {
    display: none;
}

.password-section {
    margin-bottom: 30px;
}

.password-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.password-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.password-item:last-child {
    border-bottom: none;
}

.password-item span:first-child {
    font-weight: bold;
    color: #555;
}

.password-item span:last-child {
    color: #2196F3;
    font-weight: bold;
    font-size: 18px;
}

.time-settings-section {
    margin-top: 30px;
}

.time-settings {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.time-period-setting {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.current-time-display {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border: 1px solid #2196F3;
}

.time-period-setting label {
    width: 80px;
    font-weight: bold;
    color: #555;
}

.time-period-setting:nth-child(2) label,
.time-period-setting:nth-child(4) label {
    color: #2196F3;
}

.time-period-setting input[type="time"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 0 10px;
    flex: 1;
    min-width: 120px;
}

.time-period-setting input[type="time"]:focus {
    outline: none;
    border-color: #2196F3;
}

.time-period-setting span {
    color: #999;
    margin: 0 10px;
}

.save-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.save-button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.save-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .password-display {
        font-size: 24px;
        min-height: 100px;
    }
    
    .auth-input {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .auth-input input {
        width: 100%;
        max-width: 280px;
    }
    
    .auth-input button {
        width: 100%;
        max-width: 280px;
    }
    
    .practice-time {
        font-size: 16px;
        line-height: 2;
    }
    
    .time-period-setting {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-period-setting label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .time-period-setting input[type="time"] {
        width: 100%;
        margin: 5px 0;
    }
}
