/* static/style.css - User Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.login-page {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-page {
    background: url('/static/background.svg') center/cover no-repeat;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-page .container {
    max-width: 400px;
    width: 90%;
}

.calendar-page .container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #ec4899;
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #ec4899;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message-box {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-left: 4px solid #ec4899;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #831843;
    line-height: 1.6;
}

.message-box p {
    margin: 0;
}

.locked-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #f39c12;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.locked-info h3 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 22px;
}

.locked-info p {
    color: #856404;
    margin: 10px 0;
    line-height: 1.6;
}

.admin-note {
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.calendar.locked {
    opacity: 0.6;
    pointer-events: none;
}

.date-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.date-card.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.date-card:hover {
    border-color: #ec4899;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}

.date-card.selected {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border-color: #ec4899;
}

.day-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.7;
}

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

.month-name {
    font-size: 12px;
    opacity: 0.7;
}

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

.logout a {
    color: #ec4899;
    text-decoration: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #666;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.modal-date-display {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-left: 4px solid #ec4899;
    padding: 20px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #831843;
    margin: 20px 0;
}

.modal-hint {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.modal-footer {
    padding: 20px 30px 30px 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}

.btn-cancel {
    background: #e0e0e0;
    color: #666;
}

.btn-cancel:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}