/* File: assets/css/style.css - Dark Luxury Red & Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
    /* DARK LUXURY PALETTE */
    --bg-color: #d2d2d4;
    /* Very Dark Navy */
    --app-bg: #0f172a;
    /* Deep Navy App Frame */
    --text-primary: #f8fafc;
    /* Ice White Text */
    --text-secondary: #94a3b8;
    /* Slate Text */
    --accent-color: #f1c40f;
    /* Gold */
    --accent-hover: #d4af37;
    /* Metallic Gold */
    --border-color: rgba(241, 196, 15, 0.2);
    /* Soft Gold Border */
    --crimson: #7f1d1d;
    /* Dark Red */
    --nav-height: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    background-color: var(--bg-color);
    min-height: 100vh;
}

body {
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 600px;
    height: 100dvh;
    background-color: var(--app-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* ULTRA TIGHT MAIN AREA */
#app-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3px;
    padding-bottom: 60px;
}

#app-content::-webkit-scrollbar {
    display: none;
}

.content-card {
    background: transparent;
    /* Let the app-bg show through */
    padding: 1px;
    margin-bottom: 0px;
    color: var(--text-primary);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.content-card p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-card a:not(.hub-card) {
    color: var(--accent-color);
    text-decoration: underline;
}

/* GLOBAL FORM ELEMENTS FOR MODULES (Dropdowns & Inputs) */
.paitowarna-form { 
    display: flex; gap: 8px; padding: 10px; 
    background: transparent; 
}
.paitowarna-form select, .paitowarna-form input { 
    flex: 1; 
    min-width: 30%; 
    background: var(--card-bg) !important; 
    color: var(--accent-color) !important; 
    border: 1px solid var(--border-color) !important; 
    border-radius: 8px; 
    padding: 10px 30px 10px 12px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    outline: none; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom SVG Arrow with high contrast */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.paitowarna-form select:focus, .paitowarna-form input:focus {
    border-color: var(--accent-hover) !important;
    box-shadow: var(--accent-glow);
}
.paitowarna-form option {
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 700;
}

/* NAVIGATION (DARK LUXURY) */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--app-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    transition: 0.2s;
    width: 20%;
}

.nav-item span {
    font-size: 0.55rem;
    font-weight: 700;
}

.nav-item i {
    font-size: 1rem;
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-item.active i {
    color: var(--accent-color);
    filter: drop-shadow(var(--accent-glow));
}

@media (min-width: 601px) {
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
    }

    .app-container {
        border: 1px solid var(--border-color);
    }
}

.footer-text {
    text-align: center;
    padding: 20px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.5;
}