/* Cosmic Loader */
#loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #00acc1; font-family: monospace; }
.spinner { border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid #00acc1; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --accent: #009688;
    --accent-light: #e0f2f1;
    --border: #d7ccc8;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #cfd8dc;
    --accent: #4db6ac;
    --accent-light: #263238;
    --border: #424242;
}

body { font-size: var(--base-font, 16px); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 650px; margin: 40px auto; padding: 20px; background-color: var(--bg-color); color: var(--text-main); transition: background-color 0.3s; }
.card { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.hidden { display: none !important; }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: bold; margin-bottom: 6px; color: var(--text-muted); }

input[type="text"], input[type="date"], input[type="time"], input[type="number"], select {
    width: 100%; padding: 10px; margin-top: 5px; border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box;
    background-color: var(--bg-color); color: var(--text-main); font-family: inherit;
}

details { background: var(--card-bg); border: 1px solid var(--border); color: var(--text-main); padding: 15px; border-radius: 6px; margin-bottom: 15px; }
summary { color: var(--text-main); outline: none; }

.search-container { display: flex; gap: 10px; }
#searchBtn, #searchCurrentBtn { padding: 12px 20px; background: #2c3e50; color: white; border: none; border-radius: 6px; cursor: pointer; }
.row { display: flex; gap: 15px; flex-wrap: wrap; }
.col { flex: 1; min-width: 150px; }
.photo-row { border-left: 4px solid #009688; padding-left: 15px; margin-bottom: 15px; }

.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

.legal-box { color: var(--text-muted); font-size: 0.85em; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--border); }
.legal-box a { color: var(--accent); text-decoration: none; font-weight: bold; }

.submit-btn { background-color: #009688; color: white; padding: 15px 20px; border: none; border-radius: 6px; cursor: pointer; width: 100%; font-size: 18px; font-weight: bold; margin-top: 20px; transition: 0.3s;}
.submit-btn:disabled { background-color: #ccc; cursor: not-allowed; }

.hero-svg { width: 100%; max-width: 150px; margin: 0 auto 20px auto; display: block; opacity: 0.8;}

@media (min-width: 900px) {
    body { max-width: 1400px; padding: 20px 40px; }
    .app-layout { display: flex; gap: 40px; align-items: flex-start; }
    .left-panel { flex: 0 0 420px; position: sticky; top: 20px; max-height: 95vh; overflow-y: auto; padding-right: 15px; }
    .right-panel { flex: 1; min-width: 0; }
    .left-panel::-webkit-scrollbar { width: 6px; }
    .left-panel::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 4px; }
}