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

body {
    font-family: 'Inter', sans-serif;
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header-icon {
    margin-bottom: 20px;
}

.parish-info {
    text-align: left;
    flex: 1;
    max-width: 400px;
}

.parish-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    white-space: nowrap;
}

.organization {
    font-size: 1.1rem;
    color: #3b82f6;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.sjmv-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
}

.sjmv-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
}

.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    font-size: 1.8rem;
    color: #1e40af;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.calendar-header p {
    color: #374151;
    font-size: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.calendar-day {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: flyInFromTop 0.8s ease forwards;
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

/* Calendar day with no bookings */
.calendar-day.no-bookings {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-color: #e2e8f0;
}

/* Calendar day with some bookings (1-2 people) */
.calendar-day.has-bookings {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

/* Calendar day with many bookings (3+ people) */
.calendar-day.many-bookings {
    background: linear-gradient(145deg, #fecaca, #fca5a5);
    border-color: #ef4444;
}

.calendar-day.selected {
    background: linear-gradient(145deg, #8b5cf6, #a855f7);
    color: white;
    border-color: #7c3aed;
}

.calendar-day .date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-day .month {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.calendar-day.selected .month {
    color: rgba(255, 255, 255, 0.8);
}

.calendar-day .attendees {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

.calendar-day.selected .attendees {
    color: rgba(255, 255, 255, 0.9);
}

.calendar-day .attendee-count {
    background: #D2691E;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
}

/* 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);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #8B4513;
}

.modal h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.attendees-list {
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
}

.attendees-list h4 {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.attendees-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.attendee-item {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
    transition: all 0.3s ease;
}

.attendee-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.attendee-name {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 5px;
}

.attendee-phone {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.attendee-mass {
    color: #6b7280;
    font-size: 0.9rem;
}

.no-attendees {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-radius: 10px;
    border: 2px dashed #f59e0b;
}

/* Add spacing between form and attendees list */
#attendeeForm {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.btn {
    background: linear-gradient(145deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: linear-gradient(145deg, #a855f7, #c084fc);
}

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

.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .parish-name {
        font-size: 1.4rem;
        line-height: 1.3;
        white-space: normal;
    }
    
    .organization {
        font-size: 1rem;
    }
    
    .sjmv-icon {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .calendar-header h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .calendar-header p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .calendar-day {
        padding: 15px;
    }
    
    .calendar-day .date {
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .parish-name {
        font-size: 1.2rem;
    }
    
    .organization {
        font-size: 0.9rem;
    }
    
    .sjmv-icon {
        width: 50px;
        height: 50px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.85rem;
    }
    
    .calendar-header h2 {
        font-size: 1.2rem;
    }
    
    .calendar-header p {
        font-size: 0.8rem;
    }
}

/* Animation for calendar days */
@keyframes flyInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-10deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-20px) rotate(-5deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes flyInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-10deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-20px) rotate(-5deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes flyInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(10deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px) rotate(5deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes flyInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(10deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) rotate(5deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Staggered animations for calendar days */
.calendar-day:nth-child(1) { animation-delay: 0.1s; animation-name: flyInFromTop; }
.calendar-day:nth-child(2) { animation-delay: 0.2s; animation-name: flyInFromRight; }
.calendar-day:nth-child(3) { animation-delay: 0.3s; animation-name: flyInFromBottom; }
.calendar-day:nth-child(4) { animation-delay: 0.4s; animation-name: flyInFromLeft; }
.calendar-day:nth-child(5) { animation-delay: 0.5s; animation-name: flyInFromTop; }
.calendar-day:nth-child(6) { animation-delay: 0.6s; animation-name: flyInFromRight; }
.calendar-day:nth-child(7) { animation-delay: 0.7s; animation-name: flyInFromBottom; }
.calendar-day:nth-child(8) { animation-delay: 0.8s; animation-name: flyInFromLeft; }
.calendar-day:nth-child(9) { animation-delay: 0.9s; animation-name: flyInFromTop; }
.calendar-day:nth-child(10) { animation-delay: 1.0s; animation-name: flyInFromRight; }
.calendar-day:nth-child(11) { animation-delay: 1.1s; animation-name: flyInFromBottom; }
.calendar-day:nth-child(12) { animation-delay: 1.2s; animation-name: flyInFromLeft; }
.calendar-day:nth-child(13) { animation-delay: 1.3s; animation-name: flyInFromTop; }
.calendar-day:nth-child(14) { animation-delay: 1.4s; animation-name: flyInFromRight; }
.calendar-day:nth-child(15) { animation-delay: 1.5s; animation-name: flyInFromBottom; }
.calendar-day:nth-child(16) { animation-delay: 1.6s; animation-name: flyInFromLeft; }

/* Welcome Message Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.welcome-overlay.fade-out {
    opacity: 0;
}

.welcome-message {
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: welcomePulse 2s ease-in-out;
}

.welcome-message h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.welcome-message p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

@keyframes welcomePulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive welcome message */
@media (max-width: 768px) {
    .welcome-message {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .welcome-message h2 {
        font-size: 1.8rem;
    }
    
    .welcome-message p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
}

/* Persistent Admin Panel Styles */
.admin-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255,255,255,0.97);
    border: 2px solid #8b5cf6;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(139,92,246,0.15);
    padding: 22px 24px 18px 24px;
    z-index: 2000;
    min-width: 260px;
    max-width: 320px;
    font-size: 1rem;
    color: #1e293b;
}
.admin-panel h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #8b5cf6;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.admin-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 0;
    background: linear-gradient(90deg, #8b5cf6 60%, #a855f7 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(139,92,246,0.08);
}
.admin-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #a855f7 60%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}
.admin-btn:disabled {
    background: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
}
#adminStatus {
    min-height: 18px;
    color: #1e40af;
    font-weight: 500;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .admin-panel {
        right: 10px;
        left: 10px;
        bottom: 10px;
        min-width: unset;
        max-width: unset;
        padding: 14px 8px 10px 8px;
    }
} 