* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.10), transparent 340px),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    color: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    min-height: 44px;
    background: #202529;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 6px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.18);
}

.brand {
    align-items: center;
    color: #ffffff;
    display: flex;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a,
.nav button {
    align-items: center;
    min-width: 90px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 9px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    font: inherit;
    line-height: 1.1;
    padding: 8px 14px;
    text-align: center;
}

.nav-chip,
.mini-chip,
.card-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.nav a.active {
    border-color: #00d5ff;
    color: #00d5ff;
}

.nav .admin-link {
    border-color: #ffc107;
    color: #ffc107;
}

.nav .logout-button {
    background: #ffc107;
    border-color: #ffc107;
    color: #0f172a;
}

.nav a:hover,
.nav button:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.nav .logout-button:hover {
    background: #e0a800;
}

.page {
    padding: 32px 4px 48px;
}

.messages {
    margin: 0 auto 20px;
    max-width: 1296px;
}

.message {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 12px 14px;
}

.hero,
.section-header,
.page-heading,
.speed-page,
.form-card {
    max-width: 1296px;
    margin: 0 auto;
}

.hero {
    margin-bottom: 26px;
}

.hero h1,
.page-heading h1,
.speed-page h1,
.form-card h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 4px;
}

.hero p,
.section-header p,
.page-heading p,
.speed-page p,
.form-card p {
    color: #344054;
    margin: 0;
}

.section-header,
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 30px;
    margin: 0 0 2px;
}

.heading-actions,
.form-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.folder-grid {
    max-width: 1296px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 24px;
}

.folder-card,
.empty-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    display: block;
    min-height: 94px;
    padding: 18px 16px;
}

.card-chip {
    background: #202529;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    height: 40px;
    margin-bottom: 12px;
    width: 44px;
}

.mini-chip {
    background: #e7f1ff;
    border-color: #b6d4fe;
    color: #084298;
    margin-right: 7px;
    vertical-align: 1px;
}

.warning-chip {
    background: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.success-chip {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.folder-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

.folder-card h3,
.empty-card h3 {
    font-size: 24px;
    margin: 0 0 6px;
}

.folder-card p,
.empty-card p {
    color: #344054;
    margin: 0;
}

.action-panel {
    max-width: 1296px;
    margin: 0 auto 22px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin: 0 auto 18px;
    max-width: 1296px;
    padding: 16px;
}

.filter-card .compact-row {
    max-width: 520px;
}

.monitor-grid {
    max-width: 1296px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.monitor-card,
.log-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.monitor-card h2,
.log-card h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.monitor-card p {
    color: #344054;
    margin: 6px 0;
}

.disk-chart {
    background:
        radial-gradient(circle closest-side, #ffffff 68%, transparent 69%),
        conic-gradient(#198754 var(--used), #dce3ec 0);
}

.health-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.health-list li {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.health-list li:first-child {
    border-top: 0;
}

.monitor-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px auto 0;
    max-width: 1296px;
}

.log-card pre {
    background: #202529;
    border-radius: 8px;
    color: #d1e7dd;
    max-height: 260px;
    overflow: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.action-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
    justify-content: center;
    padding: 16px;
}

.compact-form label {
    font-weight: 700;
    margin: 0 0 8px;
}

.compact-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.compact-row input,
.compact-row select {
    height: 40px;
}

.compact-row input[type="file"] {
    height: auto;
    padding: 7px 10px;
}

.table-card {
    max-width: 1296px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    padding: 16px;
}

.file-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.file-table th {
    background: #202529;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
}

.file-table th,
.file-table td {
    border-bottom: 1px solid #d7dce2;
    padding: 11px 10px;
    vertical-align: middle;
}

.file-table th:first-child {
    border-top-left-radius: 9px;
}

.file-table th:last-child {
    border-top-right-radius: 9px;
}

.table-title {
    color: #0f172a;
    font-weight: 700;
}

.button,
button {
    background: #0d6efd;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    padding: 9px 14px;
}

.button:hover,
button:hover {
    background: #0b5ed7;
    text-decoration: none;
}

.button-muted {
    background: #6c757d;
}

.button-muted:hover {
    background: #5c636a;
}

.button-success {
    background: #198754;
}

.button-success:hover {
    background: #157347;
}

.button-small {
    border-radius: 8px;
    padding: 6px 10px;
}

.demo-icon-button {
    align-items: center;
    border: 0;
    border-radius: 5px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    min-width: 0;
    width: 24px;
}

.icon-actions {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
    white-space: nowrap;
}

.icon-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.icon-button-muted {
    background: #6c757d;
}

.icon-button-muted:hover {
    background: #5c636a;
}

.icon-button-success {
    background: #198754;
}

.icon-button-success:hover {
    background: #157347;
}

.icon-button-danger {
    background: #dc3545;
}

.icon-button-danger:hover {
    background: #bb2d3b;
}

.button-danger {
    background: #dc3545;
}

.button-danger:hover {
    background: #bb2d3b;
}

.status-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    margin-left: 6px;
    padding: 3px 8px;
}

.status-badge.warning {
    background: #fff3cd;
    color: #664d03;
}

.status-badge.ok {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.muted-status {
    background: #e9ecef;
    color: #495057;
}

.status-badge.danger {
    background: #f8d7da;
    color: #842029;
}

.breadcrumbs {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.breadcrumbs a {
    color: #344054;
}

.dashboard-panels {
    display: grid;
    gap: 18px;
    grid-template-columns: 280px repeat(2, minmax(0, 1fr));
    margin: 28px auto 0;
    max-width: 1296px;
}

.storage-chart {
    align-items: center;
    background:
        radial-gradient(circle closest-side, #ffffff 68%, transparent 69%),
        conic-gradient(#0d6efd var(--used), #dce3ec 0);
    border-radius: 50%;
    display: flex;
    height: 128px;
    justify-content: center;
    margin: 8px 0 14px;
    width: 128px;
}

.storage-chart span {
    font-size: 22px;
    font-weight: 800;
}

.metric-card,
.dashboard-list-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.metric-card h2,
.dashboard-list-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.metric-card strong {
    display: block;
    font-size: 30px;
    margin-bottom: 4px;
}

.metric-card p {
    color: #667085;
    margin: 0;
}

.mini-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mini-heading span {
    background: #eef2f7;
    border-radius: 999px;
    color: #667085;
    font-size: 13px;
    padding: 3px 9px;
}

.mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-list li {
    align-items: flex-start;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    padding: 10px 0;
}

.mini-list li:first-child {
    border-top: 0;
}

.mini-list strong {
    display: block;
    overflow-wrap: anywhere;
}

.mini-list small {
    color: #667085;
    display: block;
}

.quiet-empty {
    color: #667085;
    margin: 0;
}

input,
select,
textarea {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

label {
    display: block;
    margin: 18px 0 8px;
}

.form-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-width: 740px;
    padding: 22px 26px 26px;
}

.login-page {
    min-height: calc(100vh - 108px);
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 420px;
    gap: 28px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.demo-access-page {
    max-width: 900px;
}

.demo-access-page .card-chip {
    margin-bottom: 14px;
}

.demo-expiry {
    background: rgba(255, 243, 205, 0.9);
    border: 1px solid #ffecb5;
    border-radius: 8px;
    color: #664d03;
    margin-top: 14px;
    max-width: 420px;
    padding: 10px 12px;
}

.login-intro h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.login-intro p {
    color: #344054;
    font-size: 18px;
    margin: 0;
}

.login-card,
.compact-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 22px 26px 26px;
}

.login-card h2,
.compact-panel h2 {
    font-size: 28px;
    margin: 0 0 18px;
}

.login-secondary {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    margin: 0 0 8px;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.field-errors p,
.form-errors {
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 0;
}

.form-errors {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.error-message {
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
    margin-bottom: 16px;
}

.admin-layout {
    max-width: 1296px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.compact-panel {
    position: sticky;
    top: 64px;
}

.admin-table {
    margin: 0;
    max-width: none;
}

.form-actions {
    margin-top: 16px;
}

.progress-wrap {
    margin-top: 16px;
}

.upload-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    color: #842029;
    font-weight: 700;
    margin-top: 12px;
    padding: 10px 12px;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.progress-bar span {
    background: #0d6efd;
    display: block;
    height: 100%;
    width: 0;
}

.speed-page label,
.speed-page select,
.speed-page button {
    margin-top: 18px;
    max-width: 220px;
}

.speed-progress {
    max-width: 808px;
    margin-top: 20px;
}

.speed-progress label {
    margin-top: 12px;
    max-width: none;
}

.speed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
    max-width: 808px;
}

.speed-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    min-height: 130px;
    padding: 16px;
    text-align: center;
}

.speed-card h2 {
    font-size: 20px;
    margin: 0 0 16px;
}

.speed-card strong {
    display: block;
    font-size: 24px;
}

.status-box {
    background: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 5px;
    max-width: 808px;
    padding: 16px;
}

.extension-list {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.request-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 18px;
}

.request-title-row {
    align-items: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.request-title-row h2 {
    font-size: 22px;
    margin: 0;
}

.path-line {
    background: #f1f4f8;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    color: #344054;
    font-family: Consolas, Monaco, monospace;
    margin: 10px 0 14px;
    overflow-wrap: anywhere;
    padding: 10px 12px;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.request-details dt {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.request-details dd {
    margin: 2px 0 0;
}

.reason-box {
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
}

.reason-box p {
    margin: 4px 0 0;
}

.request-actions {
    align-content: start;
    display: grid;
    gap: 10px;
    min-width: 150px;
}

.extension-empty {
    max-width: none;
}

@media (max-width: 900px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px;
    }

    .nav {
        justify-content: flex-start;
    }

    .folder-grid,
    .speed-grid,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .section-header,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-form {
        flex-direction: column;
    }

    .action-card {
        grid-template-columns: 1fr;
    }

    .compact-row {
        align-items: stretch;
        flex-direction: column;
    }

    .login-page,
    .admin-layout,
    .request-card,
    .request-details,
    .monitor-grid,
    .monitor-log-grid {
        grid-template-columns: 1fr;
    }

    .compact-panel {
        position: static;
    }
}
.logo-mark {
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #00d5ff);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    letter-spacing: 0;
    width: 34px;
}
