/* Parish Schedule Styles */

.parish-schedule-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.parish-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.parish-nav a {
    text-decoration: none;
    color: #0073aa;
}

.parish-event-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.parish-event-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.parish-date {
    color: #333;
}

.parish-time {
    color: #666;
}

.parish-church {
    color: #444;
    font-style: italic;
    display: block;
    /* New line on mobile mostly */
}

@media (min-width: 600px) {
    .parish-church {
        display: inline;
        margin-left: 10px;
    }
}

.parish-slot-row {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parish-slot-role {
    font-weight: 500;
    width: 80px;
}

.parish-slot-user {
    flex-grow: 1;
    margin: 0 10px;
}

.parish-slot-user.free {
    color: #28a745;
}

.parish-slot-user.assigned {
    color: #333;
    font-weight: bold;
}

button.parish-btn-signup {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

button.parish-btn-cancel {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

button:hover {
    opacity: 0.9;
}


/* Modal Styles */
.parish-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.parish-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Animation handled by JS fadeIn/Out usually, but we can add slideUp */
    animation: parishFrontendSlideUp 0.3s ease-out;
}

@keyframes parishFrontendSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parish-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    z-index: 10;
}

.parish-modal-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.parish-modal-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.parish-form-group {
    margin-bottom: 15px;
}

.parish-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.parish-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.parish-form-actions {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
}

.parish-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: #0071e3;
    /* Match dashboard blue */
    color: white;
}

.msg-success {
    color: #28a745;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.msg-error {
    color: #dc3545;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}