* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #eef3fb;
    color: #2f3d4a;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell {
    display: flex;
    flex: 1 0 auto;
    gap: 24px;
    padding: 24px;
    align-items: stretch;
    background: #eef3fb;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 25px 60px rgba(49, 67, 104, 0.08);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    border-radius: 32px;
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-logo {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #396cff, #6c86ff);
    border-radius: 18px;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.sidebar h2 {
    margin: 0;
    font-size: 1rem;
}

.sidebar span {
    color: #7f8ca4;
    font-size: 0.9rem;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.sidebar-link {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    color: #4f5d72;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.sidebar-group {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(47, 61, 74, 0.08);
}

.sidebar-group-title {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-group .sidebar-link {
    padding: 12px 16px;
    background: rgba(60, 108, 255, 0.05);
    border-radius: 14px;
    color: #3c6cff;
}

.sidebar-group .sidebar-link.active {
    background: linear-gradient(135deg, #3c6cff, #5b8cff);
    color: #fff;
}

.sidebar-link:hover {
    background: rgba(60, 108, 255, 0.08);
    color: #396cff;
    transform: translateX(3px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #3c6cff, #5b8cff);
    color: #fff;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(47, 61, 74, 0.08);
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(49, 67, 104, 0.08);
}

.topbar-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.topbar-title p {
    margin: 6px 0 0;
    color: #7f8ca4;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7f8ca4;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(60, 108, 255, 0.18);
    background: #fff;
    color: #3c6cff;
    cursor: pointer;
    font-weight: 700;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.user-menu-button:hover,
.user-menu-button:focus {
    box-shadow: 0 12px 24px rgba(60, 108, 255, 0.18);
    transform: translateY(-1px);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9f0ff;
    color: #3c6cff;
    font-size: 0.95rem;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 240px;
    background: #fff;
    border: 1px solid rgba(47, 61, 74, 0.12);
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(49, 67, 104, 0.14);
    padding: 16px;
    z-index: 20;
}

.user-dropdown.hidden {
    display: none;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(47, 61, 74, 0.08);
    margin-bottom: 12px;
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f0ff;
    color: #3c6cff;
    font-weight: 700;
    font-size: 1rem;
}

.user-card-name {
    font-weight: 700;
    color: #2f3d4a;
}

.user-card-email {
    font-size: 0.95rem;
    color: #7f8ca4;
}

.user-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-dropdown-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #2f3d4a;
    background: #f8fbff;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.user-dropdown-link:hover {
    background: #eef4ff;
    border-color: rgba(60, 108, 255, 0.16);
}

.user-dropdown-link.user-dropdown-link-danger {
    color: #d23f44;
    background: #fff5f6;
}

.user-dropdown-link.user-dropdown-link-danger:hover {
    background: #ffecec;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
}

.btn-primary {
    background: #3c6cff;
    color: #fff;
}

.btn-ghost {
    background: rgba(60, 108, 255, 0.07);
    color: #3c6cff;
}

.btn-secondary {
    background: #f8fbff;
    color: #2f3d4a;
    border: 1px solid rgba(47, 61, 74, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #3c6cff, #5b8cff);
    color: #fff;
}

.btn:hover {
    opacity: 0.95;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 60, 0.48);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1000;
}

.modal-box {
    width: min(100%, 860px);
    max-height: calc(100vh - 80px);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 48px 120px rgba(20, 32, 60, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 30px 18px;
    border-bottom: 1px solid rgba(47, 61, 74, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.55rem;
}

.modal-subtitle {
    margin: 10px 0 0;
    color: #7f8ca4;
    line-height: 1.6;
}

.modal-form {
    flex: 1;
    overflow: auto;
    padding: 0 30px 0;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    min-height: 0;
}

.loan-number-card {
    padding: 24px;
    border-radius: 28px;
    background: #eef5ff;
    border: 1px solid rgba(60, 108, 255, 0.18);
    display: grid;
    gap: 12px;
}

.loan-number-card span {
    color: #3c6cff;
    font-weight: 700;
}

.loan-number-card strong {
    display: block;
    background: #fff;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    color: #2f3d4a;
    font-size: 0.98rem;
}

.loan-number-card {
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #2f3d4a;
    font-weight: 700;
}

.modal-fields {
    padding: 0 0 24px;
}

.loan-form-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.loan-column {
    display: grid;
    gap: 24px;
}

@media (max-width: 1024px) {
    .loan-form-columns {
        grid-template-columns: 1fr;
    }
}

.upload-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .upload-card-title {
        font-weight: 700;
        color: #2f3d4a;
        font-size: 0.95rem;
    }

    .upload-card-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 20px;
    }

    .upload-card-left,
    .upload-card-right {
        display: grid;
        gap: 12px;
    }

    .upload-box {
        position: relative;
        display: grid;
        gap: 14px;
        padding: 32px 26px;
        border: 2px dashed rgba(60, 108, 255, 0.35);
        border-radius: 28px;
        text-align: center;
        color: #396cff;
        background: rgba(244, 248, 255, 0.95);
        cursor: pointer;
        min-height: 210px;
        justify-content: center;
        align-items: center;
        transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        overflow: hidden;
    }

    .upload-box:hover {
        background: rgba(236, 242, 255, 0.98);
        border-color: rgba(60, 108, 255, 0.6);
        box-shadow: 0 16px 36px rgba(60, 108, 255, 0.08);
    }

    .preview-box {
        min-height: 250px;
        border: 1px solid rgba(60, 108, 255, 0.18);
        border-radius: 28px;
        background: rgba(244, 248, 255, 0.95);
        display: grid;
        place-items: center;
        padding: 24px;
        overflow: hidden;
    }

    .preview-empty {
        color: #7f8ca4;
        font-size: 0.96rem;
        text-align: center;
        max-width: 220px;
    }

    .upload-image-preview {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 20px;
        border: 1px solid rgba(60, 108, 255, 0.15);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
    }

    .upload-field-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        border-radius: 22px;
        background: rgba(60, 108, 255, 0.14);
        font-size: 1.9rem;
    }

    .upload-field strong {
        display: block;
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .upload-field-hint {
        margin: 0 auto;
        color: #4f6aa9;
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 340px;
    }

    .upload-box input[type="file"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .ticket-detail-content {
        display: grid;
        gap: 24px;
        padding: 24px 30px 32px;
    }

    .detail-photo-preview {
        width: min(340px, 100%);
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 28px;
        background: #f8fbff;
        border: 1px solid rgba(47, 61, 74, 0.08);
        display: grid;
        place-items: center;
        margin: 0 auto;
        box-shadow: 0 24px 64px rgba(49, 67, 104, 0.08);
    }

    .detail-columns {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 380px);
        gap: 28px;
        align-items: start;
    }

    .detail-column {
        display: grid;
        gap: 16px;
    }

    .detail-row--wide {
        grid-column: 1 / -1;
    }

    .detail-photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 22px;
        box-shadow: 0 16px 34px rgba(34, 84, 196, 0.08);
    }

    .detail-row {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        padding: 18px 22px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(47, 61, 74, 0.08);
    }

    .detail-row strong {
        color: #2f3d4a;
        font-weight: 700;
    }

    .detail-row span {
        color: #475569;
        line-height: 1.7;
        word-break: break-word;
    }

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row strong {
        color: #2f3d4a;
        font-weight: 700;
    }

    .detail-row span {
        color: #475569;
        line-height: 1.7;
        white-space: pre-wrap;
    }

    .ticket-card-link {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        color: #3c6cff;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .ticket-card-link:hover {
        text-decoration: underline;
    }

.modal-fields .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.modal-fields .form-group {
    display: grid;
    gap: 10px;
}

.modal-fields .form-group label {
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 30px 22px;
    border-top: 1px solid rgba(47, 61, 74, 0.08);
    background: #fbfcff;
}

.modal-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.hidden {
    display: none !important;
}

.content-wrapper {
    flex: 1;
    padding: 0 32px 32px;
    min-height: calc(100vh - 140px);
    overflow: hidden;
}

.page-content {
    margin-top: 0;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 12px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
}

.page-header p {
    margin: 8px 0 0;
    color: #7f8ca4;
    max-width: 560px;
}

.card-grid,
.dashboard-grid {
    display: grid;
    gap: 20px;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.ticket-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 24px;
}

.ticket-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 260px;
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.ticket-card-code {
    display: inline-block;
    font-size: 0.82rem;
    color: #7f8ca4;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 700;
}

.ticket-card-title {
    margin: 0;
    font-size: 1.25rem;
    color: #2f3d4a;
}

.ticket-card-desc {
    margin: 0;
    color: #5b6c86;
    line-height: 1.7;
    min-height: 68px;
}

.ticket-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #7f8ca4;
    font-size: 0.95rem;
}

.ticket-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-card-link {
    color: #3c6cff;
    font-weight: 700;
    text-decoration: none;
}

.ticket-card-link:hover {
    text-decoration: underline;
}

.card {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 24px 60px rgba(49, 67, 104, 0.06);
}

.loan-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.loan-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.loan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.loan-card-code {
    font-size: 0.82rem;
    color: #7f8ca4;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.loan-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f7ff;
    color: #3c6cff;
    font-size: 0.8rem;
    font-weight: 700;
}

.loan-card-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #2f3d4a;
}

.loan-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #f7f9ff;
    color: #2f3d4a;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.loan-card-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(47, 61, 74, 0.08);
    font-size: 1rem;
}

.loan-card-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #fafbff;
    margin-bottom: 18px;
    color: #7f8ca4;
    font-size: 0.95rem;
}

.loan-card-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loan-card-date-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(47, 61, 74, 0.08);
    font-size: 0.95rem;
}

.loan-card-dates strong {
    display: block;
    color: #2f3d4a;
    font-size: 1rem;
}

.loan-card-arrow {
    font-size: 1.2rem;
    color: #3c6cff;
}

.loan-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.loan-card-status {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 700;
    min-width: 120px;
    justify-content: center;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover {
    opacity: 0.94;
}

.loan-card-button-group .btn-secondary {
    border: none;
    background: #fff;
    color: #2f3d4a;
}

.btn-edit {
    position: relative;
    background: linear-gradient(135deg, #f5f7ff, #eef3fb);
    color: #2f3d4a;
    border: 1px solid rgba(60, 108, 255, 0.15);
    box-shadow: 0 14px 30px rgba(60, 108, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(60, 108, 255, 0.14);
    background: linear-gradient(135deg, #eef3ff, #e3ebff);
}

.btn-edit::before {
    content: '✎';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 10px;
    background: rgba(60, 108, 255, 0.12);
    color: #3c6cff;
    font-size: 0.95rem;
}

.loan-card-status.borrowed {
    background: #fff7e9;
    color: #b36e12;
}

.loan-card-status.returned {
    background: #e7f5ed;
    color: #2d7a44;
}

.loan-card-button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-controls {
    display: grid;
    grid-template-columns: 1.5fr minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.search-card {
    min-width: 0;
}

.inventory-filter-form {
    display: contents;
}

.filter-action-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.room-controls {
    margin-bottom: 24px;
}

.search-card,
.filter-card,
.table-card,
.summary-card,
.room-summary-card {
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
}

.search-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-card label {
    font-weight: 600;
    color: #2f3d4a;
}

.table-card {
    padding: 24px;
    margin-bottom: 24px;
}

.table-header-row {
    display: grid;
        grid-template-columns: 48px 1fr 2.2fr 1fr 0.9fr 1fr 1fr 1.4fr;
        gap: 12px;
        align-items: center;
        padding: 18px 20px;
        border-radius: 22px;
        background: #f7f9ff;
        font-weight: 600;
        color: #5b6c86;
        margin-bottom: 14px;
    }

    .table-row {
        display: grid;
        grid-template-columns: 48px 1fr 2.2fr 1fr 0.9fr 1fr 1fr 1.4fr;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(47, 61, 74, 0.06);
}

.table-row:last-child {
    border-bottom: none;
}

.table-column-header,
.table-row span {
    display: inline-block;
    color: #2f3d4a;
}

.table-row button,
.table-row a.btn {
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(47, 61, 74, 0.12);
    background: #f8fbff;
    color: #2f3d4a;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-row .action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
}

.table-column-header {
    display: inline-block;
}

.table-column-name {
    min-width: 220px;
}

.table-empty-row {
    padding: 60px 20px;
    border-radius: 20px;
    background: #fbfcff;
    text-align: center;
    color: #7f8ca4;
    font-weight: 600;
}

.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card,
.room-summary-card {
    padding: 24px;
    text-align: left;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.room-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.room-summary-card strong,
.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2f3d4a;
}

.room-summary-card strong.green,
.summary-value.green { color: #27c499; }
.room-summary-card strong.orange,
.summary-value.orange { color: #ff8b3c; }
.room-summary-card strong.red,
.summary-value.red { color: #ff4d5a; }
.room-summary-card strong.blue,
.summary-value.blue { color: #3c6cff; }

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.room-status.available {
    background: #e8f8f0;
    color: #27c499;
}

.room-status.dipakai,
.room-status.in-use {
    background: #fff4e8;
    color: #ff8b3c;
}

.room-status.maintenance {
    background: #ffe9ec;
    color: #ff4d5a;
}

.form-control,
select.form-control {
    min-height: 46px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1280px) {
    .room-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 24px 60px rgba(49, 67, 104, 0.08);
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    min-height: 420px;
    position: relative;
}

.room-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    width: fit-content;
    white-space: nowrap;
}

.room-card-badge.orange { background: #ff8b3c; }
.room-card-badge.blue { background: #3c6cff; }

.room-card-image {
    min-height: 210px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(244,248,255,1) 0%, rgba(233,241,255,1) 100%);
    display: grid;
    place-items: center;
    color: rgba(60,108,255,0.2);
    font-size: 3rem;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.room-card-body h3 {
    margin: 0;
    font-size: 1.15rem;
    word-break: break-word;
}

.room-code {
    margin: 8px 0 0;
    color: #7f8ca4;
    font-size: 0.95rem;
    word-break: break-word;
}

.room-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2f3d4a;
    background: #f4f8ff;
    width: fit-content;
    white-space: nowrap;
}

.room-meta {
    margin: 0;
    color: #7f8ca4;
    font-size: 0.95rem;
    line-height: 1.45;
}

.room-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.room-card-actions .action-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.1rem;
    min-width: 42px;
}

.room-card-actions .action-btn-secondary {
    background: #eef5ff;
    color: #3c6cff;
    border: 1px solid rgba(60, 108, 255, 0.18);
}

.room-card-actions .action-btn-ghost {
    background: #f8fbff;
    color: #2f3d4a;
    border: 1px solid rgba(47, 61, 74, 0.12);
}

.room-card-actions .action-btn-danger {
    color: #ff4d5a;
    border-color: rgba(255, 77, 90, 0.18);
    background: #fff4f6;
}

.room-card-actions .action-btn:hover {
    opacity: 0.95;
}

.room-default-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(60,108,255,0.2);
    font-size: 3rem;
}

.school-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.08);
    margin-bottom: 24px;
}

.school-card-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, #3c6cff, #6e8cff);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}

.school-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.school-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.school-card-text {
    margin: 0;
    color: #7f8ca4;
    line-height: 1.7;
}

.school-card-meta {
    display: flex;
    gap: 24px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5b6c86;
    font-weight: 500;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
}

.person-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.person-avatar.green {
    background: #27c499;
}

.person-avatar.purple {
    background: #7c55ff;
}

.person-label {
    margin: 8px 0 4px;
    color: #7f8ca4;
}

.person-meta {
    margin: 0;
    color: #7f8ca4;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 18px;
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: white;
}

.card-icon.blue { background: #3c6cff; }
.card-icon.purple { background: #7c55ff; }
.card-icon.orange { background: #ff8b3c; }
.card-icon.red { background: #ff4d5a; }

.card h3 {
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    color: #7f8ca4;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 24px 50px rgba(49, 67, 104, 0.06);
    min-height: 240px;
}

.wide-panel {
    min-height: 240px;
}

.dashboard-panel h3 {
    margin-top: 0;
}

.panel-empty {
    color: #7f8ca4;
    margin-top: 32px;
}

.ticket-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ticket-summary-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-summary-card strong {
    font-size: 2.5rem;
    color: #2f3d4a;
}

.ticket-summary-card span {
    color: #7f8ca4;
}

.ticket-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.ticket-filter-form {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.ticket-table-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
    padding: 24px;
}

.table-header-row,
.table-item-row {
    display: grid;
    grid-template-columns: 0.7fr 2fr 1fr 1fr 1.2fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(47, 61, 74, 0.08);
}

.table-header-row {
    background: #f7f9ff;
    border-radius: 20px;
    padding: 18px 20px;
    font-weight: 600;
    color: #5b6c86;
    margin-bottom: 14px;
}

.table-item-row:last-child {
    border-bottom: none;
}

.status-badge,
.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f3d4a;
}

.status-badge.pending {
    background: #fff7e9;
    color: #ff8b3c;
}

.status-badge.in_progress {
    background: #e8efff;
    color: #3c6cff;
}

.status-badge.done {
    background: #e7f5ed;
    color: #27c499;
}

.priority-badge.high {
    background: #ffe6e6;
    color: #ff4d5a;
}

.priority-badge.medium {
    background: #fff4e6;
    color: #ffb458;
}

.priority-badge.low {
    background: #e8f6ff;
    color: #3c6cff;
}

.table-empty-row {
    padding: 60px 20px;
    border-radius: 20px;
    background: #fbfcff;
    text-align: center;
    color: #7f8ca4;
    font-weight: 600;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.report-summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 26px 24px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-summary-card strong {
    font-size: 2.2rem;
    color: #2f3d4a;
}

.report-summary-card span {
    color: #7f8ca4;
}

.report-summary-card.orange-card { background: #fff7e9; }
.report-summary-card.green-card { background: #e7f5ed; }
.report-summary-card.purple-card { background: #f5eeff; }
.report-summary-card.blue-card { background: #e8f0ff; }

.report-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.tab-button {
    padding: 14px 20px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    border-radius: 18px;
    background: #fff;
    color: #2f3d4a;
    font-weight: 700;
    cursor: pointer;
}

.tab-button.active {
    background: #3c6cff;
    color: #fff;
    border-color: transparent;
}

.report-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
    padding: 26px;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.report-actions {
    display: flex;
    gap: 12px;
}

.report-month-select {
    min-width: 190px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(47, 61, 74, 0.12);
    background: #fff;
    color: #2f3d4a;
}

.table-card {
    padding: 0;
    background: transparent;
    border: none;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.report-table thead th {
    background: #f7f9ff;
    font-weight: 700;
    color: #2f3d4a;
    text-align: left;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(47, 61, 74, 0.08);
    white-space: nowrap;
}

.report-table tbody tr {
    border-bottom: 1px solid rgba(47, 61, 74, 0.08);
}

.report-table tbody tr:last-child {
    border-bottom: none;
}

.report-table tbody td {
    padding: 16px 16px;
    color: #364152;
    vertical-align: middle;
    text-align: left;
}

.report-table tbody td:first-child {
    width: 48px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f3d4a;
    min-width: 90px;
}

.status-badge.baik {
    background: #e8f7ec;
    color: #27c499;
}

.status-badge.rusak_ringan {
    background: #fff4db;
    color: #ffb458;
}

.status-badge.rusak_berat {
    background: #ffe8ea;
    color: #ff4d5a;
}

.table-empty-row td {
    padding: 40px 16px;
    text-align: center;
    color: #7f8ca4;
    font-weight: 600;
}

.tab-button.active + .tab-button,
.tab-button + .tab-button.active {
    margin-left: 0;
}

.search-card {
    padding: 0;
    background: transparent;
    border: none;
}

.filter-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
}

.filter-card label {
    color: #5b6c86;
    font-weight: 600;
}

.form-control {
    min-height: 50px;
    border: 1px solid rgba(47, 61, 74, 0.12);
    border-radius: 16px;
    padding: 0 16px;
    background: #f8fbff;
}

.form-control:focus {
    outline: none;
    border-color: #3c6cff;
}

.monitoring-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.monitoring-main-card,
.monitoring-aside-card,
.monitoring-chart-card,
.monitoring-attention-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
}

.monitoring-main-card {
    padding: 28px;
}

.monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.monitoring-label {
    color: #2f3d4a;
    font-weight: 700;
}

.monitoring-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 16px;
}

.monitoring-score strong {
    font-size: 3rem;
    line-height: 1;
}

.monitoring-score span {
    color: #7f8ca4;
    font-size: 1rem;
}

.monitoring-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#3c6cff 0 90deg, #eef3fb 90deg 360deg);
}

.monitoring-progress-bar {
    width: 100%;
    height: 12px;
    background: #eef3fb;
    border-radius: 999px;
    margin: 24px 0;
}

.monitoring-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #3c6cff, #5b8cff);
}

.monitoring-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.monitoring-status-card {
    padding: 18px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #2f3d4a;
}

.monitoring-status-card strong {
    font-size: 1.8rem;
}

.green-card { background: #e7f5ed; }
.yellow-card { background: #fff7e9; }
.red-card { background: #fff2f4; }

.monitoring-aside-card {
    padding: 28px;
    display: grid;
    gap: 18px;
}

.monitoring-aside-card h3 {
    margin: 0 0 8px;
}

.aside-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9ff;
}

.aside-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.aside-dot.blue { background: #3c6cff; }
.aside-dot.yellow { background: #ffb458; }
.aside-dot.lightblue { background: #57c5ff; }
.aside-dot.orange { background: #ff8b3c; }

.monitoring-chart-card {
    padding: 28px;
    margin-bottom: 24px;
}

.chart-header h3 {
    margin: 0 0 22px;
}

.chart-placeholder {
    min-height: 260px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 740px;
    align-items: end;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.chart-column-fill {
    width: 100%;
    min-height: 32px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #3c6cff 0%, #76a6ff 100%);
    transition: transform 0.35s ease;
    align-self: flex-end;
}

.chart-column-label,
.chart-column-value {
    color: #2f3d4a;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.chart-column-value {
    font-size: 1.15rem;
}

.chart-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: rgba(47, 61, 74, 0.95);
    color: #fff;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: grid;
    gap: 4px;
    line-height: 1.3;
    width: max-content;
}

.chart-tooltip.visible {
    opacity: 1;
}

.monitoring-attention-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: start;
}

.calendar-card,
.calendar-sidebar .sidebar-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.06);
}

.calendar-card {
    padding: 28px;
}

.calendar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-card-header h3 {
    margin: 0;
}

.calendar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(47, 61, 74, 0.12);
    color: #3c6cff;
    font-size: 1.1rem;
    margin-left: 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    color: #7f8ca4;
    font-weight: 700;
}

.calendar-weekdays div {
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-day,
.calendar-day.empty {
    min-height: 82px;
    border-radius: 22px;
    background: #f7f9ff;
    display: grid;
    place-items: center;
    color: #2f3d4a;
}

.calendar-day {
    cursor: pointer;
    position: relative;
}

.calendar-day span {
    display: block;
}

.calendar-day.active {
    background: #3c6cff;
    color: #fff;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8b3c;
    position: absolute;
    bottom: 12px;
}

.calendar-sidebar {
    display: grid;
    gap: 22px;
}

.sidebar-card {
    padding: 28px;
}

.sidebar-card h3 {
    margin-top: 0;
}

.selected-date {
    margin: 20px 0;
    padding: 18px;
    border-radius: 22px;
    background: #f7f9ff;
}

.event-card {
    background: #f7f9ff;
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 16px;
}

.event-title {
    margin: 0 0 8px;
    font-weight: 700;
}

.event-meta {
    margin: 0 0 12px;
    color: #7f8ca4;
}

.event-empty {
    display: grid;
    gap: 16px;
    text-align: center;
    padding: 40px 20px;
    border-radius: 22px;
    background: #fbfcff;
    color: #7f8ca4;
}

.event-icon {
    font-size: 2rem;
}

.attention-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f5ed;
    color: #27c499;
    font-size: 1.8rem;
}

.monitoring-attention-card h3 {
    margin: 0;
}

.monitoring-attention-card p {
    margin: 6px 0 0;
    color: #7f8ca4;
}

.footer {
    text-align: center;
    padding: 18px 0;
    font-size: 0.95rem;
    color: #7f8ca4;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(47, 61, 74, 0.08);
    margin-top: auto;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef3fb 100%);
}

.login-shell {
    width: min(460px, calc(100% - 32px));
}

.login-card {
    background: #fff;
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 30px 70px rgba(28, 46, 86, 0.12);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.form-card,
.school-card {
    padding: 28px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(47, 61, 74, 0.08);
    box-shadow: 0 20px 45px rgba(49, 67, 104, 0.08);
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.form-grid-full {
    grid-column: span 2;
}

.form-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    color: #2f3d4a;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(47, 61, 74, 0.14);
    background: #f8fbff;
    color: #2f3d4a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: #3c6cff;
    box-shadow: 0 0 0 4px rgba(60, 108, 255, 0.08);
}

.form-control::placeholder {
    color: rgba(47, 61, 74, 0.45);
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.upload-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    border: 1px dashed rgba(60, 108, 255, 0.5);
    border-radius: 22px;
    text-align: center;
    color: #396cff;
    background: #f4f8ff;
}

.upload-logo span {
    font-size: 2rem;
}

.upload-logo button {
    border: 1px solid rgba(60, 108, 255, 0.2);
    background: transparent;
    color: #396cff;
    padding: 10px 18px;
    border-radius: 12px;
}

.alert-success {
    background: #e7f5ed;
    color: #227f5c;
    border: 1px solid #b5e0c2;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffe9ed;
    color: #b02a35;
    border: 1px solid #f5c0c6;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3c6cff, #5b8cff);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.6rem;
}

.login-brand p {
    margin: 6px 0 0;
    color: #7f8ca4;
}

.login-intro h2 {
    margin: 0 0 10px;
}

.login-intro p {
    margin: 0 0 24px;
    color: #7f8ca4;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dce4f2;
    border-radius: 14px;
    background: #f8fbff;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.alert-danger {
    background: #ffe9ed;
    color: #b02a35;
}

@media (max-width: 1100px) {
    .card-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .app-shell {
        flex-direction: column;
    }
}
