/* Secure Styles for Strict CSP Compliance */
/* Extracted from inline styles in index.php and dashboard.php */

/* =========================================
   Index Page Styles
   ========================================= */

/* Header */
.logo-img {
    height: 65px;
    width: auto;
}

/* Mobile Nav Drawer */
.drawer-logo {
    height: 52px;
}

.drawer-btn-wrapper {
    padding: 24px;
}

.btn-login-mobile {
    width: 100%;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
}

.values-header {
    margin-bottom: 50px;
}

.values-title {
    margin-top: 16px;
    font-size: 2.2rem;
    color: var(--navy-dark);
}

.values-title-highlight {
    color: var(--navy-primary);
}

.values-divider {
    width: 80px;
    height: 4px;
    background: var(--blue-accent);
    margin: 20px auto;
    border-radius: 2px;
}

/* Value Cards */
.value-card-custom {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

/* Specific Borders */
.border-blue-accent {
    border-bottom: 4px solid var(--blue-accent);
}

.border-navy-primary {
    border-bottom: 4px solid var(--navy-primary);
}

.value-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    mix-blend-mode: multiply;
}

.value-card-title {
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.value-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Flex basis for bottom row */
.value-card-flex {
    flex: 0 1 calc(33.33% - 20px);
}

/* Services Section */
.services-section-custom {
    padding: 100px 0;
    background-color: #f8fafc;
}

.services-header {
    margin-bottom: 60px;
}

.services-title {
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.services-subtitle {
    color: #64748b;
}

/* Service Card Content */
.service-content-top {
    padding-bottom: 0;
}

.service-content-bottom {
    padding-top: 12px;
}

.service-desc-center {
    text-align: center;
}

/* Visi Misi Section */
.visi-misi-custom {
    padding: 60px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Decor Elements */
.decor-blob-top {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
}

.decor-blob-bottom {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(30, 58, 138, 0.03);
    border-radius: 50%;
}

.visi-misi-container {
    max-width: 960px;
}

.visi-misi-header {
    margin-bottom: 40px;
}

.visi-misi-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.visi-misi-divider {
    width: 60px;
    height: 4px;
    background: var(--blue-accent);
    margin: 12px auto;
    border-radius: 2px;
}

.visi-misi-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.visi-misi-grid {
    gap: 24px;
}

/* Cards */
.visi-misi-card-custom {
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.visi-misi-flex-header {
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
}

.icon-wrapper-base {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Implicit? wrapper class usually has it? checking orig */
}

/* Re-check: original code just says 'visi-icon-wrapper' and inline styles. */
.icon-visi {
    background: #eff6ff;
    color: var(--navy-primary);
}

.icon-misi {
    background: #f0fdf4;
    color: var(--green-success);
}

.card-header-text {
    font-size: 1.4rem;
    margin: 0;
}

.vision-text-custom {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    text-align: center;
}

.mission-list-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Adding gap here instead of margin/flex tricks if possible? Original used flex align center */
}

.mission-list-item-last {
    margin-bottom: 0px;
}

.mission-icon {
    background: transparent;
}

.icon-check {
    color: var(--green-success);
}

.icon-users {
    color: var(--blue-accent);
    width: 24px;
    justify-content: flex-start;
}

.icon-handshake {
    color: var(--navy-primary);
    width: 24px;
    justify-content: flex-start;
}

.mission-text {
    color: #475569;
    font-size: 0.9rem;
}

/* About Section */
.about-section-custom {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-grid {
    gap: 60px;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-decor-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: #eff6ff;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
}

.about-badge {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
    width: max-content;
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-success);
    font-size: 0.9rem;
}

.badge-text {
    color: var(--navy-dark);
    font-size: 1rem;
    font-weight: 700;
}

.about-img-frame {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 8px solid var(--white);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

/* About Text */
.about-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.about-tag {
    padding: 6px 12px;
    background: #eff6ff;
    color: var(--blue-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
    line-height: 1.25;
    color: var(--navy-dark);
    font-weight: 800;
}

.about-title-highlight {
    background: linear-gradient(120deg, #dbeafe 0%, #eff6ff 100%);
    padding: 0 5px;
    color: var(--navy-primary);
}

.about-intro {
    color: #475569;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    text-align: justify;
}

.about-desc {
    color: #64748b;
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.about-checklist-grid {
    gap: 24px;
    margin-bottom: 40px;
}

.checklist-item {
    gap: 15px;
}

.checklist-icon-wrapper {
    width: 28px;
    height: 28px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-icon {
    color: var(--green-success);
    font-size: 0.85rem;
}

.checklist-text {
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
}

.btn-contact-custom {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease;
}

/* Contact Section */
.contact-section-custom {
    background: var(--grey-light);
    padding: 100px 0;
}

.contact-grid {
    gap: 60px;
    align-items: start;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--navy-dark);
}

.contact-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contact Item Card */
.contact-item-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border-radius: 16px;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: default;
}

.contact-item-card.link {
    cursor: pointer;
}

.contact-item-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Address Icon */
.icon-box-address {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-accent);
    font-size: 1.4rem;
}

/* Email Icon */
.icon-box-email {
    width: 56px;
    height: 56px;
    background: #fdf2f8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #db2777;
    font-size: 1.4rem;
}

/* Whatsapp Icon */
.icon-box-wa {
    width: 56px;
    height: 56px;
    background: #f0fdf4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #16a34a;
    font-size: 1.4rem;
}

.contact-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.contact-item-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Refined Map Section */
.map-section-refined {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    /* Subtle gradient transition */
}

.map-wrapper-polished {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    /* Nice shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: white;
    /* Fallback */
    margin-bottom: 20px;
}

.map-image-polished {
    width: 100%;
    height: auto;
    /* Allow natural height resizing */
    max-height: 600px;
    /* Cap height */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-wrapper-polished:hover .map-image-polished {
    transform: scale(1.02);
    /* Subtle zoom on hover */
}

.map-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.05) 100%);
    /* Vignette */
    pointer-events: none;
}

/* Shape Divider */
.custom-shape-divider-top-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    /* Subtle height */
}

.custom-shape-divider-top-1 .shape-fill {
    fill: #FFFFFF;
}

/* Contact Cards Center */
.contact-card-center {
    background: white;
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-border);
    transition: var(--trans-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-card-center.link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-accent);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 16px;
}

.contact-item-text {
    margin-top: 8px;
    color: #64748b;
    line-height: 1.6;
}

/* Footer Contact Overrides */
.contact-card-transparent {
    background: transparent;
    /* No white box */
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    transition: var(--trans-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-card-transparent:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--blue-accent);
}

.icon-box-footer {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--trans-smooth);
}

.contact-card-transparent:hover .icon-box-footer {
    background: var(--blue-accent);
    color: white;
}

/* Modal Content override */
.modal-title-custom {
    margin-bottom: 20px;
}

/* =========================================
   Dashboard / Login Styles
   ========================================= */

:root {
    --primary: #1e3a8a;
    --primary-dark: #0f172a;
    --accent: #3b82f6;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #172554 100%);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --grey-border: #e2e8f0;
}

/* Global resets for dashboard (if needed, but usually inheriting) */
/* Actually dashboard has its own body style in login section */

/* Login Body */
body.login-body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/hero-bg.png') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Abstract Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 280px;
    padding: 18px 28px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand img {
    height: 50px;
    margin-bottom: 12px;
}

.brand h2 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: 0.3s;
    pointer-events: none;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 16px !important;
    left: auto !important;
    /* Override standard icon positioning */
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer !important;
    font-size: 1rem;
    pointer-events: auto !important;
    /* Allow clicking */
    z-index: 10;
}

.input-wrapper .toggle-password:hover {
    color: var(--primary);
}

.login-input {
    width: 100%;
    padding: 14px 45px 14px 48px;
    /* Added right padding for eye icon */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--primary-dark);
    font-weight: 500;
}

.login-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-input:focus+i {
    color: var(--accent);
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--primary), #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.5);
}

.btn-login-submit:active {
    transform: scale(0.98);
}

.btn-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#login-error {
    min-height: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    color: #ef4444;
    font-weight: 500;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.85rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Dashboard Internal Styles */
.sidebar-header-custom {
    justify-content: center;
    padding: 20px 0;
    text-align: center;
    /* Helper to ensure centering */
}

.sidebar-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.dashboard-header-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
}

.page-title {
    margin: 0;
}

/* Dashboard Controls */
.dashboard-controls {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
}

.filter-label {
    font-weight: 600;
    color: #64748b;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    color: #334155;
    font-family: inherit;
}

.flex-spacer {
    flex: 1;
}

.btn-export-custom {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.icon-export {
    margin-right: 8px;
}

/* Charts Section */
.chart-container-wrapper {
    margin-top: 30px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-border);
}

.chart-box {
    height: 350px;
    width: 100%;
}

/* Pagination */
.pagination-container {
    margin-top: 20px;
}

/* Forms in Modals */
.form-group-manual-date {
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.input-warning {
    background: #fff8e1;
    border-color: #ffc107;
}

.text-muted-small {
    color: #666;
}

.btn-submit-full {
    width: 100%;
    margin-top: 20px;
}

.modal-content-large {
    max-width: 500px;
}

.proof-section {
    display: none;
    margin-top: 15px;
}