/* Default Theme - SekolahKite */
/* Modern & Attractive Design */

:root {
    /* Primary Colors - Vibrant Blue */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Secondary Colors */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;

    /* Accent Colors */
    --accent-color: #ec4899;
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Status Colors */
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --background: #ffffff;
    --background-light: #f9fafb;
    --background-dark: #111827;

    /* Border & Shadow */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Main Content - Prevent Gepeng */
main {
    flex: 1;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

main > section:first-child {
    flex: 1;
}

/* Navbar Styles - Professional School Website */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar.shadow-sm {
    box-shadow: var(--shadow-md) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* Logo Styling - Proper Size Control */
.navbar-logo {
    max-height: 50px;
    height: auto;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar.shadow-sm .navbar-logo {
    max-height: 40px;
    max-width: 40px;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* School Name & NPSN */
.school-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.school-npsn {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -2px;
    letter-spacing: 0.02em;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.5rem;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(79, 70, 229, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(79, 70, 229, 0.08);
}

.nav-link i {
    margin-right: 0.375rem;
    font-size: 1.1em;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons - Modern & Attractive */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-blue);
    border: none;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(103, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(103, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(103, 126, 234, 0.4);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    color: white;
    border: 2px solid white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.875rem;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Cards - Modern & Stylish */
.card {
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-img-top {
    transition: all 0.4s ease;
    position: relative;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Feature Cards */
.card.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.card.h-100:hover {
    background: var(--gradient-blue);
    color: white;
}

.card.h-100:hover .card-title,
.card.h-100:hover .card-text,
.card.h-100:hover i {
    color: white !important;
}

/* Hero Section - Modern & Eye-Catching */
.hero-section {
    background: var(--gradient-blue);
    color: white;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Animated Background Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--background) 0%, transparent 100%);
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-section p.lead {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sections - Modern Layout */
.section {
    padding: 5rem 0;
    position: relative;
}

.section.bg-light {
    background: linear-gradient(180deg, #fafbfc 0%, #f4f5f7 100%);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-blue);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Section with Background Pattern */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--primary-color) 35px, var(--primary-color) 36px);
    pointer-events: none;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* Footer - Modern & Stylish */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    display: flex;
    align-items: center;
}

footer ul li a i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

footer ul li a:hover i {
    transform: translateX(3px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 2rem 0;
}

/* Footer Logo */
.footer-logo {
    max-height: 100px;
    max-width: 120px;
    height: auto;
    width: auto;
    object-fit: contain;
    /* Filter removed to preserve original logo colors */
    opacity: 0.95;
}

.footer-logo-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-placeholder i {
    color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

/* Images with Fallback */
img {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: 0.5rem;
}

.img-shadow {
    box-shadow: 0 4px 12px var(--shadow);
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, var(--background-light) 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.img-placeholder i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Specific Image Placeholders */
.navbar-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 0.375rem;
}

.navbar-logo-placeholder i {
    font-size: 1.5rem;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
}

.testimonial-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.testimonial-img-placeholder i {
    font-size: 2rem;
}

.footer-logo-placeholder {
    width: 120px;
    height: 60px;
}

.footer-logo-placeholder i {
    font-size: 2rem;
}

/* Forms */
.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: 0.375rem;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 136, 216, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-color: var(--border-color);
}

.table thead th {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light-primary {
    background-color: var(--background-light) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* CTA Section - Eye-Catching */
.section.bg-primary {
    background: var(--gradient-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.section.bg-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.section.bg-primary::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.section.bg-primary h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section.bg-primary p.lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 6rem;
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .section.bg-primary h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Responsive Navbar & Logo */
    .navbar-logo {
        max-height: 40px;
        max-width: 40px;
    }

    .navbar.shadow-sm .navbar-logo {
        max-height: 35px;
        max-width: 35px;
    }

    .school-name {
        font-size: 0.95rem;
    }

    .school-npsn {
        font-size: 0.65rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        padding: 0.25rem 0;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .navbar-logo {
        max-height: 35px;
        max-width: 35px;
    }

    .school-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .school-npsn {
        font-size: 0.6rem;
    }
}

/* Loading States */
.spinner-border {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Alerts */
.alert {
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 2px 8px var(--shadow);
}

.alert-primary {
    background-color: rgba(55, 136, 216, 0.1);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}
