/* Custom Styles for Don Vlavonou */

:root {
    --primary-green: #16a34a;
    --primary-yellow: #fbbf24;
    --text-dark: #1f2937;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Amount buttons active state */
.amount-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Payment method button active state */
.payment-method-btn.active {
    border-color: var(--primary-green);
    background-color: #f0fdf4;
    border-width: 3px;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Success message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles for receipt */
@media print {
    header, footer, .payment-method-btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .no-print {
        display: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Focus styles for accessibility */
input:focus, 
button:focus, 
textarea:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
