* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}

.bg {
    background: #f3f4f6;
}

.layout {
    min-height: 100vh;
    display: flex;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: 240px;
    background: #1D3362;
    color: #fff;
    padding: 24px 18px;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    display: block;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255,255,255,0.1);
}

.content {
    flex: 1;
    padding: 28px;
}

.page-header h1,
.card h1,
.card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.muted {
    color: #6b7280;
}

/* ===== CARD ===== */

.stat-card,
.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
    margin-top: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
}

/* ===== MENU ===== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}

.menu-card {
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-card:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
}

/* ===== AUTH ===== */

.auth-card,
.public-card {
    width: 100%;
    max-width: 700px;
    margin: 50px auto;
}

/* ===== FORM ===== */

label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 600;
    line-height: 1.5em;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
}

textarea {
    resize: vertical;
}

/* ===== BUTTON ===== */

button,
.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

button {
    background: #EC4A0A;
    color: #fff;
}

/* spacing tombol di form */

form button {
    margin-top: 18px;
}

button:hover {
    opacity: 0.9;
}

.secondary {
    background: #e5e7eb;
    color: #111827;
}

/* ===== ALERT ===== */

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.helper {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
}

/* ===== COPY ROW ===== */

.copy-row {
    display: flex;
    gap: 10px;
}

.copy-row input {
    flex: 1;
}

/* ===== TABLE ===== */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

table th {
    background: #f9fafb;
    font-size: 14px;
}

.center {
    text-align: center;
}

/* ===== PROJECT BOX ===== */

.project-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

/* ===== NPS RATING ===== */

.rating-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.rating-pill {
    position: relative;
    cursor: pointer;
}

.rating-pill input {
    position: absolute;
    opacity: 0;
}

.rating-pill span {
    display: block;
    text-align: center;
    padding: 14px 10px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    transition: all 0.15s ease;
}

.rating-pill:hover span {
    border-color: #EC4A0A;
}

.rating-pill input:checked + span {
    background: #EC4A0A;
    color: #fff;
    border-color: #EC4A0A;
}

/* ===== FILTER DATE ===== */

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.date-group {
    display: flex;
    flex-direction: column;
    width: 220px;
}

.date-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #6b7280;
}

.date-group input[type="date"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    font-size: 14px;
}

/* ===== FILTER BUTTONS ===== */

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-buttons button,
.filter-buttons .secondary {
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
}

.brand {
    margin-bottom: 24px;
}

.brand img {
    width: 140px;
    height: auto;
    display: block;
}

/* ===== FORM HEADER LOGO ===== */

.form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.form-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .stats,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 18px;
    }

    .copy-row {
        flex-direction: column;
    }
}

@media (max-width: 640px) {

    .rating-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .date-group {
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-buttons button,
    .filter-buttons .secondary {
        flex: 1;
    }
}