:root {
    font-family: "Segoe UI", sans-serif;
    background-color: #f7f9fc;
    color: #1f2933;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
}

.app-header, .app-footer {
    background-color: #1b263b;
    color: #fff;
    padding: 1rem 0;
}

.app-header a, .app-footer a {
    color: #fff;
    text-decoration: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-links a {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    opacity: 1;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.app-header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.logo a {
    font-weight: bold;
    font-size: 1.2rem;
}

.app-main {
    flex: 1;
    padding: 2rem 0;
}

.panel {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.landing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.hero {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table tr:hover {
    background-color: #f1f5f9;
}

button, .button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

button:hover, .button:hover {
    background-color: #1d4ed8;
}

button:disabled,
.button[aria-disabled="true"],
.button.is-disabled {
    background-color: #cbd5f5;
    color: #6b7280;
    cursor: not-allowed;
    pointer-events: none;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.link-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

.static-page {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.static-page h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.static-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.static-page p,
.static-page ul,
.static-page ol {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.static-page ul,
.static-page ol {
    padding-left: 1.25rem;
}

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

.list li {
    margin-bottom: 0.75rem;
}

.list .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.actions {
    gap: 0.5rem;
}

.actions form {
    display: inline;
    margin: 0;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status form {
    margin: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    border: none;
    background-color: #2563eb;
    color: #fff;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.icon-button:hover {
    background-color: #1d4ed8;
}

.icon-button:disabled,
.icon-button[aria-disabled="true"],
.icon-button.is-disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.icon-button--danger {
    background-color: #dc2626;
}

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

.icon-button--danger:disabled,
.icon-button--danger[aria-disabled="true"],
.icon-button--danger.is-disabled {
    background-color: #fee2e2;
    color: #f87171;
}

.text-muted {
    color: #6b7280;
}

.text-success {
    color: #4d9542;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

dl.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress {
    position: relative;
    height: 1.25rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    transition: width 0.3s ease;
}

.progress__bar--in-progress {
    background: linear-gradient(90deg, #ca8a04, #facc15);
}

.progress__bar--complete {
    background: linear-gradient(90deg, #15803d, #22c55e);
}

.progress__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2933;
}
