﻿/* site.css – Rhythm & Salvation Theme */

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f7f9fb;
}

.bg-emerald {
    background-color: #006d5b;
}

.sidebar {
    /*min-width: 240px;
    max-width: 240px;*/
    height: 100%;
    position: fixed;
    overflow-y: auto;
}

#page-content-wrapper {
    margin-left: 220px;
}

.sidebar .nav-link {
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 30px;
    transition: background-color 0.2s ease;
}

    .sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sidebar .nav-link.active {
        background-color: #a86c1e;
        color: white !important;
    }

    .sidebar .nav-link i {
        width: 20px;
    }

.sidebar-header h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

main h1, main h2 {
    font-weight: bold;
    color: #006d5b;
}

.card {
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

    .card:hover {
        transform: scale(1.01);
    }

/* Dark Theme Toggle */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

    body.dark-theme .navbar,
    body.dark-theme footer {
        background-color: #1f1f1f !important;
        color: #e0e0e0;
    }

    body.dark-theme .card {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }

/* Fade-in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.chat-line {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    animation: fadeInUp 0.3s ease;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 20px;
    position: relative;
    font-size: 15px;
    animation: bubbleSlideIn 0.4s ease;
}

    .chat-bubble.sent {
        background-color: #007bff;
        color: white;
        margin-left: auto;
        border-bottom-right-radius: 0;
    }

    .chat-bubble.received {
        background-color: #f1f0f0;
        color: #333;
        margin-right: auto;
        border-bottom-left-radius: 0;
    }

.chat-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubbleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.chat-input {
    flex: 1;
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.send-btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .send-btn:active {
        transform: scale(0.9);
    }

.send-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.send-btn.sending .send-icon {
    transform: rotate(360deg);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 2px solid #e0e0e0;
    background-color: #fefefe;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

.send-btn {
    background-color: #006d5b; /* Emerald green */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

    .send-btn:hover {
        background-color: #004c3f;
    }

    .send-btn:active {
        transform: scale(0.9);
    }

.send-icon {
    font-size: 20px;
}

.chat-input:focus {
    border-color: #a86c1e; /* Golden brown */
    box-shadow: 0 0 5px #a86c1e33;
}

.floating-notes-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 24px;
    color: #f7c15f;
    animation: floatNote 10s infinite;
    opacity: 0.7;
}

    .note:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .note:nth-child(2) {
        left: 30%;
        animation-delay: 2s;
        color: #ffffff;
    }

    .note:nth-child(3) {
        left: 60%;
        animation-delay: 4s;
        color: #a86c1e;
    }

    .note:nth-child(4) {
        left: 80%;
        animation-delay: 6s;
        color: #00c29f;
    }

@keyframes floatNote {
    0% {
        bottom: 0;
        opacity: 0.3;
        transform: translateX(0) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-10px) scale(1.2);
    }

    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(10px) scale(0.8);
    }
}

.background-decor .shape {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    opacity: 0.1;
    animation: floatDecor 20s infinite linear;
}

/*.note {
    left: 20%;
    font-size: 30px;
    color: #f5f5f5;
}*/

.circle {
    width: 20px;
    height: 20px;
    background: #ffffff33;
    border-radius: 50%;
    left: 50%;
}

.cross {
    left: 80%;
    color: #ffc107;
    font-size: 24px;
}

@keyframes floatDecor {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-preview {
    background: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.chat-preview-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 80%;
    animation: fadeInChat 0.6s ease-in;
}

.chat-bubble-left {
    background-color: #e7f7f4;
    color: #115d4c;
    border-bottom-left-radius: 5px;
}

.chat-user {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #00876c;
}

.chat-time {
    font-size: 11px;
    color: #777;
    margin-left: 10px;
}

.chat-message {
    font-size: 14px;
    color: #222;
}

@keyframes fadeInChat {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-logo {
    animation: floatLogo 4s ease-in-out infinite;
    width: 100px;
    margin: 10px auto;
    display: block;
}

.animated-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00695c; /* matches the sidebar green */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
}

    .animated-logo:hover {
        transform: scale(1.05);
    }

@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

.carousel-item {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease;
}

    .carousel-item.active {
        opacity: 1;
        transform: translateX(0);
    }

.animated-logo {
    animation: floatLogo 4s ease-in-out infinite, glowPulse 6s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(0, 128, 128, 0.3));
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(0, 128, 128, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(0, 128, 128, 0.6));
    }
}

#calendar {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
}

.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00695c;
}

.fc-button {
    background-color: #00695c;
    border: none;
}

    .fc-button:hover {
        background-color: #004d40;
    }

.fc-event {
    /*background-color: #26a69a !important;*/
    border: none;
    color: white;
    font-weight: bold;
}

@media (max-width: 576px) {
    .fc-daygrid-event {
        font-size: 0.55rem !important;
        padding: 1px 2px !important;
        white-space: normal !important;
        line-height: 1.1rem;
    }

    .fc-event-title {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .fc-event {
        max-height: none !important;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.55rem;
    }

    .fc-toolbar-title {
        font-size: 0.7rem;
    }

    .fc-button {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}


.emoji-float {
    animation: floatEmoji 6s infinite;
    position: absolute;
    /*top: 20px;
    right: 30px;*/
    font-size: 1.5rem;
}

@keyframes floatEmoji {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


body {
    background: linear-gradient(to bottom, #f4fdfc 0%, #fefefe 100%);
}

.animated-logo {
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0px rgba(0, 105, 92, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 105, 92, 0.6);
    }

    100% {
        box-shadow: 0 0 0px rgba(0, 105, 92, 0.4);
    }
}


/*Media Gallery*/
.media-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .media-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

.add-media-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background-color: #107b5b;
    border: none;
    transition: transform 0.2s ease;
}

    .add-media-btn:hover {
        transform: scale(1.1);
    }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.background-logo {
    background-image: url('/images/logo 2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.03;
    position: fixed;
    width: 500px; /* Increased size */
    height: 500px;
    border-radius: 50%;
    top: 50%;
    left: calc(50% + 125px); /* Adjust based on sidebar width */
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
}




.main-content {
    position: relative;
    z-index: 1;
}

@keyframes fadeLogo {
    0%, 100% {
        opacity: 0.02;
    }

    50% {
        opacity: 0.04;
    }
}

.background-logo {
    /* previous styles here... */
    animation: fadeLogo 12s ease-in-out infinite;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: var(--theme-green);
}

.users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.user-card {
    background: #eaeaea;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
    position: relative;
}

    .user-card:hover {
        transform: translateY(-5px) scale(1.02);
        background-color: #e0e0e0;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }


.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--theme-gold);
    margin-bottom: 15px;
}

.user-details {
    text-align: center;
}

.user-role {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.user-email {
    font-size: 0.85rem;
    color: gray;
    margin-bottom: 12px;
}

.user-actions .btn {
    margin: 3px;
}
@media (max-width: 576px) {
    .user-card {
        width: 100%; /* Full width for phones */
    }

    .users-grid {
        justify-content: center;
    }
}
/* Role badge colors */
.badge.Bass {
    background: #7fd7d7;
    color: #003;
}

.badge.Drummer {
    background: #ffd86c;
    color: #222;
}

.badge.Soprano {
    background: #ff8fa3;
    color: #fff;
}
.badge.Alto {
    background: #28a745;
    color: #fff;
}
.badge.Tenor {
    background: #81af17;
    color: #fff;
}
.badge.BusinessManager {
    background: #2317af;
    color: #fff;
}
.badge.Keyboardist {
    background: #c19fff;
    color: #222;
}

.badge.Admin {
    background: #28a745;
    color: #fff;
}

.user-details-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-details-card {
    background: #f2f2f2;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.user-avatar-lg {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--theme-gold);
}

/* Reuse badge colors from before */

.edit-user-page {
    max-width: 600px;
    margin: auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .edit-user-page h2 {
        margin-bottom: 20px;
        text-align: center;
    }

.edit-user-form .form-group {
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .edit-user-page {
        padding: 20px 15px;
    }

    .edit-user-form .form-control {
        font-size: 1rem;
    }

    .edit-user-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .edit-user-page h2 {
        font-size: 1.5rem;
    }
}


.delete-user-container {
    max-width: 500px;
    margin: auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.create-user-form {
    background: #fefefe;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.rounded-circle {
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.calendar-legend-wrapper {
    border-left: 5px solid #2e6046;
    font-size: 0.95rem;
}

.legend-item {
    gap: 8px;
    font-weight: 500;
    color: #444;
}

.legend-color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 6px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
    #legendContent {
        display: none;
        flex-direction: column;
        padding-top: 10px;
        animation: fadeIn 0.3s ease-in-out;
    }

        #legendContent.show {
            display: flex !important;
        }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disabled-link {
    pointer-events: none;
    color: #ccc !important;
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 0.5rem;
    opacity: 0.6;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .disabled-link:hover {
        opacity: 0.8;
    }

.construction-icon {
    width: 18px;
    height: 18px;
    filter: grayscale(100%);
    opacity: 0.7;
    animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes floatNotes {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.bg-white {
    background-color: #fff;
}

.shadow-sm {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-section {
    background: linear-gradient(to right, #f5fff9, #fef9ec);
    padding: 40px 20px;
    border-radius: 20px;
}

.floating-note {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatNote 10s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}

.note1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.note2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.note3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.note4 {
    bottom: 10%;
    right: 5%;
    animation-delay: 6s;
}

/*@keyframes floatNote {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.15;
    }

    100% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.3;
    }
}*/

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 1.8rem;
    padding: 15px 17px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 99;
    transition: transform 0.2s ease-in-out;
}

    .whatsapp-button:hover {
        transform: scale(1.1);
        text-decoration: none;
    }

#youtube-section {
    background: linear-gradient(to right, #fdfbff, #f1fff8);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.dashboard-card {
    background: var(--card-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    perspective: 1000px;
}

    .dashboard-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    }

    .dashboard-card .card-body {
        text-align: center;
    }


/* === Default Desktop Sidebar === */
#sidebar {
    width: 220px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #065f46; /* emerald dark */
    transition: width 0.3s ease;
}

#page-content-wrapper {
    margin-left: 220px;
    transition: margin-left 0.3s ease;
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
    #sidebar {
        width: 70px;
    }

        #sidebar .nav-link {
            font-size: 0;
            white-space: nowrap;
        }

            #sidebar .nav-link i {
                font-size: 1.2rem;
                margin-right: 0;
            }

        #sidebar h5,
        #sidebar span,
        #sidebar .construction-icon,
        #sidebar .sidebar-header h5 {
            display: none !important;
        }

    #page-content-wrapper {
        margin-left: 70px;
        overflow-x: hidden;
        overflow-y: auto; /* ✅ Allow vertical scroll */
        min-height: 100vh; /* ✅ Ensure it expands */
    }

    .container, .main-content, .hero, .content-wrapper {
        max-width: 100%;
        overflow-x: hidden;
    }

    .guest-hero {
        height: 320px; /* Make it more square-like */
        position: relative;
        overflow: hidden;
        background-color: #006d5b; /* Fallback if there's a background image */
        text-align: center;
        padding: 20px 10px;
    }

        .guest-hero .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 20px 15px;
            background: rgba(0, 0, 0, 0.5); /* Optional dark overlay */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .guest-hero h1 {
            font-size: 1.6rem;
        }

        .guest-hero p {
            font-size: 1rem;
        }

        .guest-hero .btn {
            font-size: 0.9rem;
            padding: 10px 16px;
        }

        .guest-hero .d-flex.gap-3 {
            gap: 0.5rem !important;
        }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    overflow-y: auto;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #2e6046;
    border-radius: 50%;
}

.vision-mission-box {
    border-radius: 20px;
    overflow: hidden;
}

    .vision-mission-box h2 {
        font-size: 1.8rem;
    }

@media (max-width: 767.98px) {
    .vision-mission-box {
        flex-direction: column;
    }

        .vision-mission-box > div {
            text-align: center;
        }
}

.hero-video {
    height: 70vh; /* Adjust height */
    overflow: hidden;
}

    .hero-video video {
        object-fit: cover;
        z-index: 1;
    }

    .hero-video .overlay {
        z-index: 2;
    }

    .hero-video .hero-content {
        z-index: 3;
        color: #fff;
    }

