
/* 1. Station Card Grid */
.station-card-grid {
    display: grid;
    /* 2 columns, gaps */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 400px; /* Set max height for the whole card area */
    overflow-y: auto; /* Enable scrolling for the cards */
    padding: 10px;
    margin-bottom: 20px;
}

/* 2. Individual Card Styling */
.station-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f9f9f9;
}

/* Hover and Selected State */
.station-card:hover {
    border-color: #10B981; /* Green hover */
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.station-card.selected {
    border-color: #10B981;
    background-color: #E6FFF6; /* Light green background */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

/* Ensure text is readable */
.station-name {
    font-size: 1em;
    font-weight: 600;
}

.station-desc {
    font-size: 0.8em;
    color: #444;
}

/* 3. Paging Controls */
.paging-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.paging-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 4. SweetAlert2 Button Order (Necessary for 3 buttons) */
/* This positions the Deny button (Create Station) logically */
.swal2-actions {
    display: flex !important;
    justify-content: space-between !important;
    width: 90%;
    margin: 0 auto !important;
}

.swal2-actions > button {
    margin: 0 5px !important;
}

/* ------------------------------------------- */
/* --- SWEETALERT OVERRIDES FOR FORM LAYOUT ---*/
/* ------------------------------------------- */

/* Set a maximum width for the popup content and center it */
.swal2-html-container {
    width: 90% !important;
    margin: 0 auto !important;
}

/* Style the text areas and inputs to match */
.swal2-input, .swal2-textarea, .swal2-select {
    /* --- FIX: Width must be set to 100% of its immediate parent grid column --- */
    width: 100% !important;
    /* Remove default horizontal margin applied by SweetAlert2 */
    margin: 0 !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: none !important;
    transition: border-color 0.2s;
    box-sizing: border-box; /* Crucial: ensures padding and border don't increase the total width */
}

.swal2-input:focus, .swal2-textarea:focus {
    border-color: #3B82F6; /* Blue focus ring */
}

/* Style the labels */
.swal2-label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
    font-size: 0.95em;
    color: #333;
}

/* ------------------------------------------- */
/* --- EVENT LIST STYLING (Kept for continuity) ---*/
/* ------------------------------------------- */

#events-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 0 10px;
    border-radius: 8px;
    background-color: #fcfcfc;
}

#events-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#events-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s, border-left 0.2s;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    padding-left: 10px;
    margin-bottom: 2px;
}

#events-list li:hover {
    background-color: #f0f0f0;
}

#events-list li.editing {
    background-color: #e6f7ff;
    border-left: 4px solid #3B82F6;
    font-weight: 500;
}

#events-list li button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.1s;
}

#events-list li button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.button-group-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}




/**********************Profile Popup***************************/
/*
 * Styles for the main container that covers the whole screen
 * and centers the modal. This is the container created by JS.
 */
.profile-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use flexbox to center the content */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Semi-transparent black overlay */
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000; /* Ensure it is on top of other content */
    /* Optional: Hide by default if you prefer to manage visibility via CSS classes */
    /* display: none; */
}

/* * Styles for the actual profile card (the content box)
 */
.profile-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%; /* Responsive width */
    max-width: 1200px; /* Maximum size for desktop */
    position: relative; /* For absolute positioning of the close button */
    text-align: center;
    animation: fadeIn 0.3s ease-out; /* Simple entry animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button Styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
    display: block;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #28a745; /* Green for online */
    border-radius: 50%;
    border: 3px solid #fff;
}

/* Upload Button Styles */
.upload-button-container {
    margin-bottom: 20px;
}

.upload-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.upload-button:hover {
    background-color: #0056b3;
}

#profile-image-upload {
    display: none; /* Hide the file input */
}

/* Text and Divider Styles */
.alias {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: #333;
}

.full-name {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 15px;
}

.divider {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 20px 0;
}

/* Details Grid Styles */
.details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for better mobile view */
    gap: 15px;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #495057;
}

.detail-item svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    stroke: #007bff;
    min-width: 20px; /* Prevent shrinking */
}

.detail-label {
    font-weight: bold;
    margin-right: 5px;
}

.detail-value {
    word-break: break-all; /* Handles long emails/dates */
}
/*********************Profile Popup ends**************************/


/*********************About Us Poup***************************/
/* --- Base Modal Container for About Us --- */
.about-us-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 220, 230, 0.7); /* Soft, cute overlay color */
    z-index: 1001; /* Higher than other modals if you have them */
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- The Cute About Us Card --- */
.about-us-card {
    background: linear-gradient(135deg, #FFFBFA, #FFF0F5); /* Soft gradient background */
    padding: 30px;
    border-radius: 25px; /* Super rounded corners for cuteness */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Softer shadow */
    width: 90%;
    max-width: 500px; /* Slightly wider for more content */
    position: relative;
    text-align: center;
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif; /* Playful font */
    color: #333;
    animation: popUpCard 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy animation */
    border: 3px solid #FFC0CB; /* Pink border for extra charm */
}

@keyframes popUpCard {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Close Button --- */
.about-us-card .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px; /* Larger close button */
    cursor: pointer;
    color: #FF6B6B; /* Cute pink/red color */
    line-height: 1;
    transition: transform 0.2s ease-in-out;
}

.about-us-card .close-btn:hover {
    transform: rotate(90deg); /* Playful spin on hover */
    color: #FF3B3B;
}

/* --- Header Section --- */
.header-section {
    margin-bottom: 25px;
}

.header-icon {
    width: 60px; /* Larger icon */
    height: 60px;
    margin-bottom: 10px;
    vertical-align: middle; /* Align with text if not inline-block */
}

.about-us-title {
    font-size: 2.2em;
    color: #FF6B6B; /* A warm, inviting red */
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Soft text shadow */
}

.about-us-subtitle {
    font-size: 1.1em;
    color: #6C757D;
    margin-top: 0;
}

/* --- Team Section --- */
.team-section {
    display: flex;
    justify-content: center;
    gap: 25px; /* Spacing between team members */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 30px;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFC0CB; /* Cute pink border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.member-photo:hover {
    transform: scale(1.1) rotate(5deg); /* Little bounce/tilt on hover */
}

.member-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    margin: 10px 0 3px;
}

.member-role {
    font-size: 0.85em;
    color: #888;
    margin-top: 0;
}

/* --- Mission Section --- */
.mission-section {
    background-color: #ffe6ee; /* Lighter pink background for text */
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px dashed #FFC0CB; /* Dashed border for a friendly look */
}

.mission-text {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

/* --- Footer Section --- */
.footer-section p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0;
}

/*********************About Us Poup ends***************************/

/*********************Broadcast Control************************/
/* Custom styles for better slider aesthetics */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    outline: none;
    transition: opacity .15s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffcc00;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

/* Custom toggle switch for checkboxes */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3rem; /* w-12 */
    height: 1.5rem; /* h-6 */
    border-radius: 9999px; /* rounded-full */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.toggle-switch input {
    display: none;
}
.toggle-switch-label {
    display: block;
    width: 3rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: #334155; /* bg-border-dark */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* shadow-inner */
    transition: all 0.4s ease;
}
.toggle-switch-label::after {
    content: '';
    position: absolute;
    left: 0.25rem; /* left-1 */
    top: 0.25rem; /* top-1 */
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    border-radius: 9999px;
    background-color: #9ca3af; /* bg-gray-400 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* shadow-md */
    transition: all 0.4s ease;
}
.toggle-switch input:checked + .toggle-switch-label {
    background-color: #ffcc00; /* bg-accent-gold */
}
.toggle-switch input:checked + .toggle-switch-label::after {
    transform: translateX(1.5rem); /* translateX(24px) */
    background-color: #fff;
}

/* -------------------------------------------------- */
/* NEW SCROLLBAR STYLING FOR 'SHOW ON SCROLL' EFFECT */
/* -------------------------------------------------- */

/* For Chrome, Safari, and Opera (Webkit) */
/* Targets the modal content area by its ID, which was used for scrolling */
#modalContent::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#modalContent::-webkit-scrollbar-track {
    /* Makes the background/track transparent (hides it mostly) */
    background: transparent;
}
#modalContent::-webkit-scrollbar-thumb {
    /* Sets the scrollbar handle to a subtle gold */
    background-color: rgba(255, 204, 0, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
}
/* Makes the thumb brighter on hover for better visibility */
#modalContent:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 204, 0, 0.6);
}

/* For Firefox */
/* This makes the scrollbar minimal and non-obtrusive */
#modalContent {
    scrollbar-width: thin;
     scrollbar-color: rgba(110, 110, 78, 0.4) transparent;
}
/************************Broadcast controls end************************************/       