/**
 * Kakasih Project - Master Style (v2.3)
 * Update: Full Width Mobile, Radius 5, & Clean Inputs
 */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-display: swap;
}

:root {
    --kakasih-primary: #007aff; 
    --kakasih-gradient: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    --bg-light: #f4f7fe; 
    --white: #ffffff;
    --radius-sharp: 5px; /* Radius 5 sesuai request */
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    padding-top: 0 !important;
}

/* --- FORM & FEED COMPONENTS --- */

/* Textarea Putih Polos & Justify */
textarea#konten_teks {
    background-color: var(--white) !important;
    border-radius: var(--radius-sharp) !important;
    border: 1px solid #f0f0f0 !important;
    text-align: justify; /* Rata Kiri Kanan */
    font-size: 12px;
    padding: 12px;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
}

/* Hilangkan garis item/biru pas diklik */
textarea#konten_teks:focus {
    outline: none !important;
    border-color: #d1e7ff !important;
    ring: 0 !important;
    box-shadow: none !important;
}

/* Tombol Posting Gradasi Solid */
.btn-posting-solid {
    background: linear-gradient(to right, #007aff 0%, #ffffff 180%) !important;
    border-radius: var(--radius-sharp) !important;
    color: white !important;
    font-weight: 900;
    border: none !important;
}

/* --- MOBILE OPTIMIZATION (FULL WIDTH) --- */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 0 !important; /* Buang padding biar gak ada sisa putih di pinggir */
    }

    .container-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Card Feed & Form nempel ke tepi layar */
    #feed-container > div, 
    .wallet-card-main,
    section.mb-6,
    section.mb-8 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: var(--radius-sharp) !important; /* Tetap Radius 5 meski nempel */
    }

    /* Pastikan teks di dalam feed tetap justify */
    .feed-text-content, 
    .px-4 p, 
    .px-5 p {
        text-align: justify !important;
        font-size: 12px !important;
    }
}

/* Bottom Nav tetap nempel bawah */
.mobile-nav {
    border-radius: 0 !important;
    width: 100%;
    left: 0;
    right: 0;
}

/* Mencegah seleksi teks di seluruh aplikasi */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard syntax */
}

/* Jika ada bagian yang TETAP ingin bisa diselect (misal: input form atau kode referral) */
input, textarea, .allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Sembunyikan popup secara default */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Latar belakang gelap transparan */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    font-family: sans-serif;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
}

.modal-content input {
    width: 90%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-nanti { 
    background: #f1f1f1; color: #333; 
    border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: bold;
}

.btn-simpan { 
    background: #007bff; color: white; 
    border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: bold;
}

.btn-simpan:disabled {
    background: #a0c4ff; cursor: not-allowed;
}