/* Omoclean Cleaning App - Shared Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Light mode (default) */
:root, [data-theme="light"] {
    --primary: #4d92a6;
    --primary-dark: #3a6f80;
    --primary-soft: #e4f1f4;
    --bg: #f3f6f7;
    --card: #ffffff;
    --text: #1f2b2f;
    --text-muted: #667479;
    --border: #dfe6e8;
    --success: #1d9e75;
    --success-bg: #e1f5ee;
    --warning: #b5750f;
    --warning-bg: #fbf0dd;
    --danger: #c0392b;
    --danger-bg: #fbeae8;
    --radius: 10px;
}

/* Dark mode */
[data-theme="dark"] {
    --primary: #6bb7cc;
    --primary-dark: #8fcadb;
    --primary-soft: #16333b;
    --bg: #10181a;
    --card: #1a2528;
    --text: #e7edee;
    --text-muted: #93a3a7;
    --border: #2c3a3e;
    --success: #3ecf9a;
    --success-bg: #123528;
    --warning: #e0a94a;
    --warning-bg: #3a2c14;
    --danger: #e0685a;
    --danger-bg: #3a1e1a;
    --radius: 10px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
    transition: background 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 640px; margin: 0 auto; padding: 16px; }

/* Top bar */
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; }
.topbar .brand img { height: 30px; width: auto; display: block; }
.topbar .brand .page-name { font-size: 13px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 8px; margin-left: 2px; }
.topbar .user-badge { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.theme-toggle {
    background: var(--primary-soft);
    border: none;
    border-radius: 20px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 15px;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn:active { background: var(--primary-dark); }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--card);
    color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }

/* Login page centering */
.center-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box { width: 100%; max-width: 360px; }
.login-box .logo { text-align: center; margin-bottom: 24px; }
.login-box .logo img { height: 56px; width: auto; }

/* List items */
.list-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-item .main { flex: 1; min-width: 0; }
.list-item .name { font-weight: 600; font-size: 15px; }
.list-item .sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.list-item .right { text-align: right; font-size: 13px; white-space: nowrap; margin-left: 10px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-progress { background: var(--warning-bg); color: var(--warning); }
.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-lunas { background: var(--success-bg); color: var(--success); }
.badge-belum { background: var(--danger-bg); color: var(--danger); }

/* Bottom nav (mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 20;
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 4px 8px;
    font-size: 11px;
    color: var(--text-muted);
}
.bottom-nav a.active { color: var(--primary); font-weight: 600; }
.bottom-nav i { display: block; font-size: 20px; margin-bottom: 2px; }

.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
