/* VowDesk Custom Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --font-family-sans-serif: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Typography */
body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Layout */
.min-vh-100 {
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #764ba2 0%, #5a4fcf 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-icon {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    /* Safari fallback with explicit colors */
    background: #667eea;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Fallback for CSS variables */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simplified pattern for Safari compatibility */
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

.bg-gradient-primary {
    /* Safari fallback with explicit colors */
    background: #667eea !important;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.text-accent {
    color: #ffd700 !important;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatars */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
}

/* Step Numbers */
.step-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a73e7 0%, #6c42a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    --bs-table-hover-bg: rgba(102, 126, 234, 0.05);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--bs-table-hover-bg);
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Progress Bars */
.progress {
    border-radius: var(--border-radius);
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

/* Task Cards */
.task-card {
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateY(-2px);
}

/* Vendor Cards */
.vendor-card {
    transition: all 0.3s ease;
}

.vendor-card:hover {
    transform: translateY(-2px);
}

/* Wedding Party Cards */
.wedding-party-card {
    transition: all 0.3s ease;
}

.wedding-party-card:hover {
    transform: translateY(-2px);
}

/* RSVP Forms */
.rsvp-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rsvp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.event-card {
    border-left: 4px solid var(--primary-color);
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.meal-option {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
}

.meal-option:hover,
.meal-option.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.guest-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.guest-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.rsvp-step-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.rsvp-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.rsvp-form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.rsvp-form-section:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.rsvp-attendance-option {
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.rsvp-attendance-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rsvp-attendance-option input[type="radio"]:checked + .card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.rsvp-form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.rsvp-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.rsvp-btn {
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rsvp-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.rsvp-btn-primary:hover {
    background: linear-gradient(135deg, #5a73e7 0%, #6c42a1 100%);
    color: white;
}

.rsvp-step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
}

.rsvp-step {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
    position: relative;
}

.rsvp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2px;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.rsvp-step.completed:not(:last-child)::after {
    background: var(--success-color);
}

.rsvp-step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.rsvp-step.active .rsvp-step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.rsvp-step.completed .rsvp-step-number {
    background: var(--success-color);
    color: white;
    border-color: white;
}

.rsvp-step-label {
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.rsvp-step.active .rsvp-step-label {
    color: var(--primary-color);
}

.rsvp-step.completed .rsvp-step-label {
    color: var(--success-color);
}

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

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Logo Styling */
.footer-logo {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.hero-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.login-logo {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.countdown-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.countdown-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.selection-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.selection-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.shadow-soft {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Logo responsive adjustments */
    .navbar-icon {
        height: 36px !important;
    }
    
    .hero-logo {
        height: 100px !important;
    }
    
    .login-logo {
        height: 50px !important;
    }
    
    .footer-logo {
        height: 50px !important;
    }
    
    .countdown-logo {
        height: 50px !important;
    }
    
    .selection-logo {
        height: 60px !important;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group > .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Logo responsive adjustments for small screens */
    .navbar-icon {
        height: 32px !important;
    }
    
    .hero-logo {
        height: 80px !important;
    }
    
    .login-logo {
        height: 40px !important;
    }
    
    .footer-logo {
        height: 45px !important;
    }
    
    /* Adjust footer layout for small screens */
    .d-flex.align-items-center .me-3 {
        margin-right: 1rem !important;
    }
    
    /* Stack footer content on very small screens */
    .row.align-items-center {
        text-align: center;
    }
    
    .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    .countdown-logo {
        height: 40px !important;
    }
    
    .selection-logo {
        height: 50px !important;
    }
    
    /* Adjust wedding selection layout for small screens */
    .d-flex.align-items-center.justify-content-center.mb-3 {
        flex-direction: column;
        text-align: center;
    }
    
    .selection-logo {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
    }
    
    /* Adjust login page layout for small screens */
    .d-flex.align-items-center.mb-3 {
        flex-direction: column;
        text-align: center;
    }
    
    .login-logo {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .dropdown,
    .modal,
    .card-footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    .bg-primary,
    .bg-success,
    .bg-warning,
    .bg-danger,
    .bg-info {
        background: transparent !important;
        color: inherit !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: This would be expanded for full dark mode support */
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .table {
        --bs-table-bg: #2d3748;
        --bs-table-color: #e2e8f0;
    }
}

/* Focus Indicators for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-controls .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-controls .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.calendar-controls .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.calendar-controls .btn:active {
    transform: translateY(0);
}

.calendar-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 200px;
    text-align: center;
}

.calendar-view-toggle .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-view-toggle .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.calendar-view-toggle .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.calendar-view-toggle .btn.active,
.calendar-view-toggle .btn.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: white;
}

.calendar-grid {
    background: white;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.calendar-day-header {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.calendar-body {
    min-height: 500px;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e9ecef;
}

.calendar-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e9ecef;
    min-height: 60px;
}

.calendar-day {
    padding: 0.5rem;
    border-right: 1px solid #e9ecef;
    min-height: 120px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.05);
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid var(--primary-color);
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 80px;
    overflow: hidden;
}

.calendar-event {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.calendar-event.event-completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.event-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-icon {
    font-size: 0.625rem;
    flex-shrink: 0;
}

.event-title {
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.event-details {
    font-size: 0.625rem;
    opacity: 0.9;
}

.event-assigned,
.event-amount,
.event-description {
    display: block;
    margin-top: 0.125rem;
}

.event-vendor {
    display: block;
    margin-top: 0.125rem;
    font-weight: 500;
}

/* Week view specific styles */
.week-view .calendar-day {
    min-height: 120px;
    padding: 0.5rem;
}

.week-view .day-events {
    max-height: 100px;
    overflow-y: auto;
}

.week-view .calendar-event {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.week-view .event-content {
    display: block;
    width: 100%;
}

.week-view .event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.week-view .event-details {
    margin-top: 0;
    display: block;
    width: 100%;
}

.week-view .event-details div {
    font-size: 0.7rem;
    margin-bottom: 0.125rem;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.week-view .event-amount {
    font-weight: 500;
}

.week-view .calendar-body {
    height: auto;
    min-height: 120px;
}

.week-view .calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e9ecef;
    min-height: 200px;
}

/* Event modal styles */
.event-details-modal .row {
    margin-bottom: 0.75rem;
}

.event-details-modal .col-sm-3 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .calendar-controls {
        order: 2;
    }
    
    .calendar-title {
        order: 1;
        font-size: 1.25rem;
    }
    
    .calendar-view-toggle {
        order: 3;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .day-events {
        max-height: 60px;
    }
    
    .calendar-event {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 60px;
    }
    
    .day-events {
        max-height: 40px;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 0.125rem;
    }
    
    .event-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }
    
    .event-title {
        font-size: 0.5rem;
    }
}

/* Calendar loading state */
.calendar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #6c757d;
}

.calendar-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Calendar empty state */
.calendar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #6c757d;
    text-align: center;
}

.calendar-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animation for calendar events */
@keyframes eventPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-event:hover {
    animation: eventPulse 0.3s ease;
}

/* Focus styles for accessibility */
.calendar-event:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.calendar-day:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}
