
/* =====================================================
   MASJID DIGITAL - ADMIN DESIGN SYSTEM
===================================================== */

:root {
    --green: #086b38;
    --green-dark: #07572f;
    --green-soft: #eaf4ed;
    --bg: #f4f6f5;
    --white: #ffffff;
    --text: #20352b;
    --muted: #89958e;
    --border: #e8ede9;
    --danger: #c0392b;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

/* LOGIN */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, #eaf2ec, #f8faf9);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--green);
    color: white;
    display: grid;
    place-items: center;
    font-size: 27px;
}

.login-brand h1 {
    font-size: 19px;
    letter-spacing: 1px;
    margin: 0;
    color: var(--green-dark);
}

.login-brand p {
    color: var(--muted);
    font-size: 11px;
    margin: 5px 0 0;
}

.login-card {
    background: white;
    padding: 35px;
    border-radius: 17px;
    box-shadow: 0 12px 40px rgba(20, 60, 35, .07);
}

.login-card h2 {
    margin: 0 0 7px;
    font-size: 23px;
}

.login-desc {
    color: var(--muted);
    margin: 0 0 28px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 13px;
    outline: none;
    background: #fff;
    color: var(--text);
}

.form-group input:focus {
    border-color: var(--green);
}

.btn-primary {
    background: var(--green);
    color: white;
    border: 0;
    padding: 13px 18px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-block {
    width: 100%;
}

.btn-primary span {
    float: right;
}

.login-footer {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 25px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
}

.alert-success {
    background: #e8f6ec;
    color: #217344;
}

.alert-danger {
    background: #fff0ee;
    color: #b9382c;
}

/* ADMIN LAYOUT */

.admin-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 23px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green);
    color: white;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.sidebar-brand strong {
    display: block;
    color: var(--green-dark);
    font-size: 15px;
}

.sidebar-brand small {
    color: var(--muted);
    font-size: 10px;
}

.sidebar-menu {
    padding: 22px 13px;
    flex: 1;
    overflow-y: auto;
}

.menu-label {
    font-size: 10px;
    font-weight: 700;
    color: #a0aaa3;
    padding: 0 12px;
    margin: 10px 0 12px;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 9px;
    margin-bottom: 5px;
    color: #68776e;
    font-size: 13px;
    font-weight: 500;
    transition: .2s;
}

.menu-item .menu-icon {
    width: 21px;
    text-align: center;
    font-size: 17px;
}

.menu-item:hover,
.menu-item.active {
    background: var(--green-soft);
    color: var(--green);
}

.menu-item.active {
    font-weight: 700;
}

.sidebar-bottom {
    padding: 15px 13px;
    border-top: 1px solid var(--border);
}

.main-area {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: 82px;
    padding: 0 32px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 17px;
    font-weight: 700;
}

.topbar-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 39px;
    height: 39px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.user-info strong {
    display: block;
    font-size: 12px;
}

.user-info small {
    color: var(--muted);
    font-size: 11px;
}

.content {
    padding: 30px 32px;
    max-width: 1500px;
    margin: auto;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading h1 {
    font-size: 23px;
    margin: 0 0 7px;
}

.page-heading p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

/* STATISTIC CARDS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 21px;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 19px;
}

.stat-card small {
    color: var(--muted);
    font-size: 12px;
}

.stat-card h2 {
    font-size: 25px;
    margin: 0;
    color: var(--text);
}

.stat-card p {
    margin: 7px 0 0;
    font-size: 11px;
    color: var(--muted);
}

/* CONTENT CARDS */

.panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 23px;
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-size: 15px;
    margin: 0;
}

.panel-header span {
    color: var(--muted);
    font-size: 11px;
}

.prayer-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.prayer-item {
    text-align: center;
    padding: 15px 5px;
    background: #f7f9f7;
    border-radius: 9px;
}

.prayer-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 9px;
}

.prayer-item strong {
    font-size: 16px;
    color: var(--green-dark);
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 25px 10px;
    font-size: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--muted);
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e8f6ec;
    color: #267747;
    font-size: 10px;
    font-weight: 700;
}

.status.offline {
    background: #f1f2f1;
    color: #7c8580;
}

/* QUICK ACTION */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: .2s;
}

.quick-action:hover {
    border-color: var(--green);
    background: #f8fbf9;
}

.quick-action-icon {
    font-size: 20px;
    color: var(--green);
}

.quick-action strong {
    display: block;
    font-size: 12px;
}

.quick-action small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

/* MOBILE */

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 23px;
    color: var(--green);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

@media(max-width:1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:700px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 90;
    }

    .main-area {
        margin-left: 0;
    }

    .topbar {
        height: 68px;
        padding: 0 17px;
        gap: 12px;
    }

    .mobile-toggle {
        display: block;
    }

    .topbar-title {
        font-size: 14px;
    }

    .user-info {
        display: none;
    }

    .content {
        padding: 23px 16px;
    }

    .page-heading h1 {
        font-size: 20px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h2 {
        font-size: 21px;
    }

    .prayer-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 25px 21px;
    }
}
