/* TideRidge Cleaning App - base styles
   Mobile-first. Designed for cleaner phones, scales up for admin desktop use. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f4f6f8;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: #1f4e5f;
    color: #fff;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.topbar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}
.topnav { display: flex; align-items: center; gap: 16px; }
.user-name { opacity: 0.85; font-size: 0.9em; }
.logout { color: #fff; text-decoration: underline; font-size: 0.9em; }

/* Content area */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.card h1, .card h2 { margin-top: 0; }

/* Forms */
form .field { margin-bottom: 16px; }
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9em;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="url"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form select,
form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #c9d2d9;
    border-radius: 6px;
    background: #fff;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #1f4e5f;
    box-shadow: 0 0 0 3px rgba(31,78,95,0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background: #1f4e5f;
    color: #fff;
}
.btn:hover { background: #163a47; }
.btn-block { display: block; width: 100%; }
.btn-secondary { background: #6c7a89; }
.btn-secondary:hover { background: #5a6775; }
.btn-danger { background: #b53e3e; }
.btn-success { background: #2e8b3e; }

/* Flash messages */
.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid;
}
.flash-success { background: #e6f4ea; border-color: #2e8b3e; color: #1e5e29; }
.flash-error   { background: #fde8e8; border-color: #b53e3e; color: #7a2929; }
.flash-info    { background: #e7f0f5; border-color: #1f4e5f; color: #163a47; }

/* Login screen */
.login-wrap {
    max-width: 380px;
    margin: 60px auto 0;
}
.login-wrap h1 {
    text-align: center;
    margin-bottom: 24px;
    color: #1f4e5f;
}
/* Room/section disclosure groups */
.room-group summary::-webkit-details-marker { display: none; }
.room-group summary { transition: background 0.15s ease; }
.room-group[open] .room-toggle { transform: rotate(180deg); display:inline-block; }
.room-group .room-toggle { transition: transform 0.2s ease; display:inline-block; }