/* ==========================================================================
   SKY ACADEMY SURAT - TAILWIND LAYERED CUSTOM VISUALS & ALIGNMENT RESETS
   Author: Antigravity AI
   Colors: Coaching Red (#bb0014), Success Yellow (#fabd00), Black, White
   ========================================================================== */

/* preloader Indicator Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* frosted glass light */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.dark #preloader {
    background-color: rgba(26, 28, 28, 0.65); /* frosted glass dark */
}

.preloader-hidden #preloader {
    display: none !important;
}

.preloader-box {
    text-align: center;
}

/* ==========================================================================
   SPACING & ALIGNMENT RESETS (TO PREVENT PARAGRAPHS FROM TOUCHING SCREEN EDGES)
   ========================================================================== */
.container-safe {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .container-safe {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Horizontal Continuous Marquee */
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Carousel Slider Transitions */
.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide.active-slide {
    opacity: 1;
    z-index: 10;
}

/* Fullscreen Hero Slider */
.hero-slider-fullscreen {
    height: calc(100vh - 80px) !important;
}

@media (max-width: 767px) {
    .hero-slider-fullscreen {
        height: calc(100vh - 64px) !important;
    }
}

.admin-mode .hero-slider-fullscreen {
    height: calc(100vh - 130px) !important;
}

/* Parallax Image Styling */
.hero-slide img {
    height: 120% !important;
    top: -10% !important;
}

.hero-slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.hero-slide.active-slide .hero-slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Scaling and Card Elevations */
.hover-elevation {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-elevation:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Topper Portrait Frame Styling */
.portrait-frame {
    height: 110px;
    background: radial-gradient(circle, rgba(187,0,20,0.1) 0%, rgba(0,0,0,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: rgba(187, 0, 20, 0.15);
    font-size: 2.5rem;
    border-radius: 0.125rem;
    border: 1px dashed rgba(187, 0, 20, 0.3);
    position: relative;
    overflow: hidden;
}

/* Vertical Notice Board Scrolling List */
.notice-scroll-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.notice-scroll-list {
    position: absolute;
    width: 100%;
    top: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-link-item {
    background: #ffffff;
    border-left: 4px solid #bb0014;
    padding: 10px;
    border-radius: 0.125rem;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.notice-link-item:hover {
    transform: translateX(4px);
}

/* Green Grass Acrylic Wall Graphics Representation */
.green-grass-acrylic {
    background: linear-gradient(135deg, #1d4022 0%, #306635 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 45px 20px;
    color: #ffffff;
}

.green-grass-acrylic h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fabd00; /* success gold */
    border: 3px solid #fabd00;
    padding: 4px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Sticky Bouncing WhatsApp Support widget */
.floating-bounce-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    animation: bounceEffect 2s infinite;
}

@keyframes bounceEffect {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px);
    }
    60% {
        transform: translateY(-6px);
    }
}

/* CRM Administration dialog forms modal overlays */
.admin-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-dialog-content {
    background: #ffffff;
    border: 1px solid #dadada;
    border-radius: 0.25rem;
    width: 100%;
    overflow: hidden;
}

.admin-dialog-close {
    cursor: pointer;
    font-size: 1.5rem;
}

/* ScrollStack Layout Styles (React Bits adaptation) */
#gallery-cards-stack-viewport {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.scroll-stack-card {
  transform-origin: top center;
  will-change: transform, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 400px; /* premium fixed card height */
  width: 100%;
  border-radius: 16px;
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  position: relative;
}

.scroll-stack-end {
  width: 100%;
  height: 1px;
}

@media (min-width: 1024px) {
  #gallery-cards-stack-viewport {
    height: 680px;
    position: relative;
  }
  .scroll-stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 620px; /* premium larger card height at full width */
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1023px) {
  .scroll-stack-card {
    position: relative !important;
    transform: none !important;
    margin-bottom: 20px !important;
    height: auto !important;
  }
}

/* ==========================================================================
   LIVE VISUAL WYSIWYG PAGE EDITOR INTERACTION STYLES
   ========================================================================== */
.admin-mode [data-db-field] {
    transition: outline 0.15s ease, background-color 0.15s ease;
}

.admin-mode [data-db-field]:hover {
    outline: 2px dashed #bb0014 !important;
    outline-offset: 4px;
    cursor: pointer;
    background-color: rgba(187, 0, 20, 0.03);
}

.admin-mode [data-db-field]:focus {
    outline: 2px solid #fabd00 !important;
    outline-offset: 4px;
    background-color: rgba(250, 189, 0, 0.08) !important;
    cursor: text;
}

/* Image wrapper editing structures */
.image-editable-wrapper {
    position: relative;
    display: block;
}

.image-edit-overlay-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #bb0014;
    color: #ffffff;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: auto;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: opacity 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.image-editable-wrapper:hover .image-edit-overlay-btn {
    opacity: 1;
}

.image-edit-overlay-btn:hover {
    background-color: #fabd00;
    color: #1a1c1c;
}

/* Inline card/notice adder widget */
.inline-item-adder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(187, 0, 20, 0.05);
    border: 2px dashed rgba(187, 0, 20, 0.25);
    color: #bb0014;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.inline-item-adder-btn:hover {
    background-color: #bb0014;
    color: #ffffff;
    border-color: #bb0014;
    box-shadow: 0 4px 12px rgba(187, 0, 20, 0.15);
}

/* Floating customizer controls input alignments */
#image-editor-modal input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

#image-editor-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bb0014;
    cursor: pointer;
    border: 2px solid #ffffff;
}

/* Dynamic notice delete button */
.notice-delete-pin, .topper-delete-pin, .gallery-delete-pin {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.1);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.2s ease, bg-color 0.2s ease;
}

.notice-link-item:hover .notice-delete-pin,
.topper-portrait-card:hover .topper-delete-pin,
.scroll-stack-card:hover .gallery-delete-pin {
    opacity: 1;
}

.notice-delete-pin:hover, .topper-delete-pin:hover, .gallery-delete-pin:hover {
    background-color: rgb(239, 68, 68);
    color: #ffffff;
    border-color: rgb(239, 68, 68);
}

