/*
Theme Name: Rumah Rino App Theme
Theme URI: https://rumahrino.com
Author: Rumah Rino
Description: Tema Eksklusif SPA (Single Page Application) bergaya Aplikasi Android Mewah. Header dan Footer statis, pergerakan tanpa reload halaman. Kompatibel dengan WP 7.0 & PHP 8.3.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --corporate-green: #0B4A2D; /* Hijau Mewah / Emerald */
    --corporate-light-green: #157347;
    --corporate-white: #FFFFFF;
    --bg-color: #F8F9FA;
    --text-dark: #2C3E50;
    --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden; /* Mengunci body agar mirip aplikasi */
    display: flex;
    flex-direction: column;
}

/* =========================================
   PRELOADER (GREEN BACKGROUND + TAWAF PLANET)
   ========================================= */
#app-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--corporate-green);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.preloader-logo {
    width: 140px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    margin-bottom: 50px;
    z-index: 2;
}

.tawaf-container {
    position: absolute;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tawaf-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spinTawaf 3s linear infinite; /* Putaran ke kiri */
}

.tawaf-planet {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--corporate-white);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

@keyframes spinTawaf {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); } /* Minus = berputar ke kiri (berlawanan jarum jam) */
}

/* =========================================
   HEADER EKSKLUSIF
   ========================================= */
.app-header {
    height: 70px;
    background: var(--corporate-green);
    color: var(--corporate-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(11, 74, 45, 0.3);
    z-index: 100;
}

.app-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header-logo {
    width: 35px;
    border-radius: 8px;
}

/* =========================================
   MAIN CONTENT AREA (SCROLLABLE)
   ========================================= */
#app-main-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 20px 100px 20px; /* Padding bawah untuk space menu */
    scroll-behavior: smooth;
    transition: opacity 0.3s ease;
}

/* Formating konten agar rapi */
.page-content-wrapper {
    background: var(--corporate-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-elegant);
    min-height: 80vh;
}

/* =========================================
   BOTTOM NAVIGATION (GLASSMORPHISM)
   ========================================= */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px); /* Efek Kaca / Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom); /* Support untuk iPhone/Android modern */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #95a5a6;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 25%;
}

.nav-item .dashicons {
    font-size: 24px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item.active, .nav-item:hover {
    color: var(--corporate-green);
}

.nav-item.active .dashicons {
    transform: translateY(-3px);
}