/* Custom styles for Safari Supper Organizer */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Card styling */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Form styling */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Couple and House entry styling */
.couple-entry, .house-entry {
    position: relative;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.couple-entry:hover, .house-entry:hover {
    background-color: #e9ecef;
}

/* Schedule table styling */
.table-responsive {
    border-radius: 0.25rem;
    overflow: hidden;
}

.badge {
    font-weight: normal;
    padding: 0.5em 0.75em;
}

/* Print styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .no-print, .navbar, footer, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        font-weight: bold;
    }
    
    h1, h2, h3 {
        color: #000 !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.25rem !important;
        margin-bottom: 0.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.1rem;
}

/* Success animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Capacity indicator */
.capacity-indicator {
    font-weight: bold;
}

.capacity-ok {
    color: var(--success-color);
}

.capacity-warning {
    color: var(--warning-color);
}

.capacity-error {
    color: var(--danger-color);
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Ensure form submit buttons are always clickable */
button[type="submit"],
input[type="submit"] {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Fallback for button styling if Bootstrap JS fails */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}