/* Modern Landing Page Styles for SPMB PAUD */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.08);
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Clean Header */
#header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0 !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.header-branding img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-title {
    border-left: 1px solid #e2e8f0;
    padding-left: 0.75rem;
    margin-left: 0.25rem;
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.header-title span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Desktop Navigation */
.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.25rem;
}

.navbar a {
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover, .navbar .active {
    color: var(--primary);
}

.navbar .btn-primary {
    padding: 8px 18px !important;
    font-size: 13px;
    border-radius: 6px;
    margin-left: 10px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    color: var(--dark);
    font-size: 28px;
    cursor: pointer;
    display: none;
}

@media (max-width: 991px) {
    .mobile-nav-toggle { display: block; }
    .navbar ul { display: none; }
    
    .navbar-mobile {
        position: fixed;
        top: 0; right: 0; left: 0; bottom: 0;
        background: rgba(15, 23, 42, 0.95);
        z-index: 999;
        transition: 0.3s;
    }
    
    .navbar-mobile ul {
        display: block;
        position: absolute;
        top: 60px; right: 15px; bottom: 15px; left: 15px;
        padding: 10px 0;
        background: #fff;
        border-radius: 10px;
        overflow-y: auto;
    }
    
    .navbar-mobile a {
        padding: 10px 20px;
        color: var(--dark);
    }
}

/* Hero Banner */
/* School Directory Table Styles */
.locations .card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px;
}

#schoolDirectoryTable thead th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    border: none;
}

#schoolDirectoryTable tbody tr {
    transition: all 0.3s ease;
}

#schoolDirectoryTable tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.05);
    transform: translateY(-2px);
}

.directory-filter-container {
    background: #f0fdfa;
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 30px;
    border: 1px solid rgba(13, 148, 136, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.directory-filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f766e;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.directory-filter-label i {
    font-size: 1rem;
    margin-right: 8px;
}

.locations .form-select, 
.locations .form-control {
    height: 50px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(99, 102, 241, 0.15) !important;
    font-weight: 500;
    color: #134e4a;
    transition: all 0.3s ease;
}

.locations .form-select:focus, 
.locations .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12) !important;
    background-color: white !important;
}

.badge-wilayah {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #25d366;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.05);
}

/* Selection Results Section */
#selection-search .search-card,
.results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.nav-pills-modern {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    display: inline-flex;
    margin-bottom: 25px;
}

.nav-pills-modern .nav-link {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.nav-pills-modern .nav-link.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* DataTable Customization for Results */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 8px 15px !important;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1) !important;
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: none !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    margin-left: 5px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
}

.results-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #f1f5f9;
}

.results-table tbody td {
    font-size: 0.9rem;
    padding: 15px !important;
    color: #1e293b;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
    margin-top: 0 !important;
    padding: 0 !important;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin: 0;
}

.btn-hero {
    padding: 18px 45px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.35);
    transition: all 0.3s;
    background: var(--primary);
    border: none;
    color: #fff;
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.45);
    background: var(--primary-dark);
}

@media (max-width: 991px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-branding img { height: 70px; gap: 1.5rem; }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h5, .section-title h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h5::after, .section-title h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary);
    bottom: 0;
    left: 25%;
    border-radius: 2px;
}

/* Modern Forms */
.search-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Tabs & Tables */
.nav-tabs {
    border: none;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.nav-link {
    border: none !important;
    border-radius: 0.5rem !important;
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

.nav-link.active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Icon Boxes */
.icon-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.icon-box .icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 2rem;
}

/* Location Section */
.location-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.location-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.location-item img {
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.location-item img:hover {
    transform: scale(1.02);
}

/* Utilities */
.text-success { color: var(--secondary) !important; }
.text-danger { color: #ef4444 !important; }

@media (max-width: 768px) {
    .search-card {
        padding: 1.5rem;
        margin-top: 0;
    }
}
