* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #18212b;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #dfe5ea;
    padding: 24px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
}

.brand-block {
    min-width: 260px;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.page-title {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #697582;
}

.global-search {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #d8e0e7;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.18s ease;
}

.global-search:focus-within {
    background: #ffffff;
    border-color: #7d8b99;
    box-shadow: 0 0 0 3px rgba(70, 86, 101, 0.08);
}

.search-icon {
    padding-left: 16px;
    font-size: 21px;
    color: #6f7b87;
}

.global-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 14px 14px;
    font-size: 14px;
    color: #18212b;
}

.global-search button {
    border: 0;
    border-left: 1px solid #d8e0e7;
    background: #24313d;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 22px;
    cursor: pointer;
}

.global-search button:hover {
    background: #111a22;
}

.dashboard {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto;
    flex: 1;
}

.main-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.main-card {
    min-height: 190px;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 7px 24px rgba(20, 30, 40, 0.055);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.main-card:hover {
    transform: translateY(-3px);
    border-color: #aeb8c1;
    box-shadow: 0 12px 30px rgba(20, 30, 40, 0.09);
}

.card-label {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.card-count {
    margin: 13px 0 7px;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #2f3b46;
}

.card-note {
    font-size: 13px;
    color: #7b8792;
}

.section-divider {
    height: 1px;
    margin: 38px 0;
    background: #dfe5ea;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-card {
    min-height: 116px;
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    box-shadow: 0 5px 18px rgba(20, 30, 40, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: #aeb8c1;
    box-shadow: 0 9px 24px rgba(20, 30, 40, 0.075);
}

.quick-icon {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #33414d;
}

.quick-title {
    align-self: end;
    font-size: 16px;
    font-weight: 800;
}

.quick-note {
    align-self: start;
    margin-top: 5px;
    font-size: 12px;
    color: #7b8792;
}

.footer {
    border-top: 1px solid #dfe5ea;
    background: #ffffff;
    padding: 15px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #7b8792;
}

.settings-link {
    font-weight: 700;
    color: #4e5c68;
}

.settings-link:hover {
    color: #111a22;
}

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

    .brand-block {
        min-width: 0;
    }

    .main-actions,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .main-card {
        min-height: 145px;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding: 20px;
    }

    .dashboard {
        width: min(100% - 24px, 1180px);
        margin: 24px auto;
    }

    .global-search {
        flex-wrap: nowrap;
    }

    .global-search button {
        padding-left: 15px;
        padding-right: 15px;
    }

    .brand-name {
        font-size: 21px;
    }

    .card-label {
        font-size: 18px;
    }

    .footer {
        padding: 14px 20px;
    }
}
