:root { --primary-color: #557C55; --primary-dark: #3e5c3e; --bg-light: #f8f9fa; --text-dark: #4a3b2a; }
body { background: var(--bg-light); font-family: 'Poppins', sans-serif; min-height: 100vh; margin: 0; overflow-x: hidden; }

/* LOGIN */
#login-page { width: 100%; height: 100vh; display: flex; flex-direction: column; background: #ffffff; overflow: hidden; }
.login-left { flex: none; height: 45vh; width: 100%; background: linear-gradient(to bottom, #eef2f3, #ffffff); position: relative; overflow: hidden; }
.img-tugu { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); height: 90%; width: auto; object-fit: contain; z-index: 1; opacity: 0.9; }
.img-pasangan { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); height: 65%; width: auto; object-fit: contain; z-index: 2; filter: drop-shadow(0 0 10px rgba(0,0,0,0.1)); }
.login-right { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; background: #ffffff; padding: 30px 20px; z-index: 10; position: relative; border-radius: 30px 30px 0 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); top: -20px; }
.login-card { width: 100%; max-width: 360px; margin-bottom: 30px; }
.sugeng-rawuh { font-family: 'Lobster Two', cursive; font-size: 2.8rem; color: var(--text-dark); margin-bottom: 5px; text-align: center; }
.sub-title { text-align: center; color: #888; margin-bottom: 25px; font-size: 0.9rem; }
.form-control-custom { border: 1px solid #e0e0e0; padding: 12px 15px; border-radius: 12px; background: #fbfbfb; font-size: 14px; margin-bottom: 15px; width: 100%; }
.form-control-custom:focus { border-color: var(--primary-color); background: #fff; box-shadow: none; outline: none; }
.btn-custom { background-color: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 12px; font-weight: 600; width: 100%; margin-top: 10px; transition: 0.3s; cursor: pointer; }
.btn-custom:hover { background-color: var(--primary-dark); }
.btn-custom:disabled { background-color: #ccc; cursor: not-allowed; }
.footer-login { position: absolute; bottom: 25px; left: 0; width: 100%; text-align: center; font-size: 11px; color: #bbb; }

/* APP MAIN */
.app-container { max-width: 480px; margin: 0 auto; background: white; min-height: 100vh; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.05); }

/* --- KAMERA EFEK CERMIN (FIXED) --- */
.cam-area { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 3/4; /* Proporsi HP */
    background: #000; 
    overflow: hidden; 
    border-radius: 12px; 
}
video, canvas { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scaleX(-1); /* Membalik tampilan Preview dan Hasil Tangkapan di Layar User */
}

/* PENGUMUMAN MARQUEE */
.marquee-text { display: inline-block; padding-left: 100%; animation: marquee 15s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* UTILITY / LAIN-LAIN */
.footer { margin-top: auto; padding: 20px; text-align: center; color: #6c757d; font-size: 12px; background: #f8f9fa; font-weight: bold; }
.profile-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.history-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.history-time { font-size: 18px; font-weight: 800; color: #212529; }
.seperator { border-bottom: 1px dashed #dee2e6; }
.tweet-reply-container { margin-left: 20px; margin-top: 5px; padding-left: 10px; border-left: 2px solid #ddd; }
.tweet-reply-card { background: #f8f9fa; padding: 8px; border-radius: 8px; margin-bottom: 5px; font-size: 0.9em; }
.user-tag { color: var(--primary-color); font-weight: bold; background: #e8f5e9; padding: 0 4px; border-radius: 4px; text-decoration: none; }
.notif-item { padding: 10px 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.notif-item.unread { background: #e3f2fd; }
.notif-text { font-size: 12px; color: #555; line-height: 1.3; }
.notif-time { font-size: 10px; color: #999; }
.tweet-container { max-height: 300px; overflow-y: auto; padding: 10px; background: #f1f2f6; border-radius: 12px; margin-top: 10px; border: 1px solid #ddd; }
.tweet-card { background: white; padding: 12px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; gap: 10px; animation: fadeIn 0.5s; }
.tweet-admin { background: #e8f5e9; border-left: 4px solid var(--primary-color); }
.tweet-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.tweet-name { font-weight: bold; color: #333; }
.tweet-role-badge { background: var(--primary-color); color: white; padding: 2px 6px; border-radius: 4px; font-size: 9px; margin-left: 5px; }
.tweet-time { color: #999; font-size: 10px; }
.tweet-content { font-size: 13px; color: #555; line-height: 1.4; word-wrap: break-word; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.d-none { display: none !important; }