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

:root {
    --primary: #3b8bd4;
    --primary-dark: #185fa5;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1f2430;
    --text-muted: #6b7280;
    --border: #e2e4e9;
    --success: #1d9e75;
    --warning: #ba7517;
    --danger: #c0392b;
    --radius: 10px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px; /* space for bottom nav on mobile */
}

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: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { font-size: 17px; font-weight: 600; color: var(--primary-dark); }
.topbar .user-badge { font-size: 12px; color: var(--text-muted); }

/* 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: #fff;
    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; font-size: 22px; font-weight: 700; color: var(--primary-dark); }

/* 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: #fdf1e0; color: var(--warning); }
.badge-completed { background: #e1f5ee; color: var(--success); }
.badge-lunas { background: #e1f5ee; color: var(--success); }
.badge-belum { background: #fcebeb; 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; }

.fab {
    position: fixed;
    bottom: 76px; right: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 20;
}

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

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