.apd-at-root {
    font-family: "Titillium Web", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
}

.apd-at-header,
.apd-at-layout,
.apd-at-search,
.apd-at-footer {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.apd-at-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #d9dadb;
    padding-bottom: 1rem;
}

.apd-at-brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

.apd-at-tagline {
    margin: 0.25rem 0 0;
    color: #5c6f82;
}

.apd-at-quick-links a {
    margin-left: 1rem;
}

.apd-at-search {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apd-at-search input[type="search"] {
    flex: 1 1 320px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #c5c7c9;
    border-radius: 4px;
}

.apd-at-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.apd-at-sidebar {
    background: #fff8e6;
    border: 1px solid #f0e0b2;
    border-radius: 6px;
    padding: 1rem;
}

.apd-at-sidebar h2 {
    margin-top: 0;
    font-size: 1rem;
}

.apd-at-menu-list,
.apd-at-submenu-list,
.apd-at-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apd-at-menu-item,
.apd-at-submenu-list li,
.apd-at-file-item {
    margin-bottom: 0.75rem;
}

.apd-at-menu-item.is-active a {
    font-weight: 700;
}

.apd-at-badge {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #0066cc;
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

.apd-at-main {
    background: #fff;
    border: 1px solid #d9e5f2;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.apd-at-main-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.apd-at-btn,
.apd-at-link-btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    text-decoration: none;
    background: #f5f5f5;
    color: #1a1a1a;
}

.apd-at-btn-primary,
.apd-at-link-btn {
    background: #0066cc;
    color: #fff;
}

.apd-at-btn-secondary {
    background: #fff;
    border-color: #0066cc;
    color: #0066cc;
}

.apd-at-file-grid {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 1rem;
    align-items: start;
}

.apd-at-file-item {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 1rem;
}

.apd-at-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.apd-at-table th,
.apd-at-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    vertical-align: top;
}

.apd-at-pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.apd-at-page.is-active {
    background: #0066cc;
    color: #fff;
}

.apd-at-meta {
    color: #5c6f82;
}

.apd-at-error {
    padding: 1rem;
    border: 1px solid #d63638;
    background: #fcf0f1;
    color: #8a1f1f;
}

.apd-at-dialog {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    max-width: 640px;
    width: calc(100% - 2rem);
}

.apd-at-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.apd-at-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .apd-at-layout {
        grid-template-columns: 1fr;
    }

    .apd-at-file-grid {
        grid-template-columns: 1fr;
    }

    .apd-at-main-header {
        flex-direction: column;
    }
}
