* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 14px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.door-button {
    position: relative;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}

.door-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.door-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.door-button:not(:disabled):active {
    transform: translateY(0);
}

#buildingBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#apartmentBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon {
    font-size: 24px;
}

.status {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Date entry form styles */
.date-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.date-form.visible {
    display: block;
}

.date-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.date-form p {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.date-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.date-inputs input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.date-inputs input:focus {
    outline: none;
    border-color: #667eea;
}

.confirm-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-btn:hover {
    opacity: 0.9;
}
