* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #e3f2fd 0%, #e8f5e9 50%, #fffde7 100%);
    color: #264653;
}

header, nav, main, footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: center;
    background: radial-gradient(circle at top, #4fc3f7, #29b6f6);
    color: #ffffff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

header h1 {
    margin-bottom: 0.4rem;
}

header p {
    margin-top: 0;
    font-size: 0.95rem;
}

nav {
    margin-top: 0.3rem;
    background-color: #0d47a1;
    border-radius: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #e3f2fd;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
}

nav a:hover {
    text-decoration: underline;
}

main {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    margin-top: 1.2rem;
    margin-bottom: 2rem;
}

.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-panel {
    flex: 3 1 280px;
    padding: 1.2rem 1.4rem 1.6rem 1.4rem;
}

aside {
    flex: 1 1 220px;
    padding: 1.2rem 1rem;
    background: linear-gradient(180deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 0 24px 24px 0;
    border-left: 4px solid #ffb300;
}

aside h3 {
    margin-top: 0;
    color: #e76f51;
}

section {
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #cfd8dc;
}

section:last-of-type {
    border-bottom: none;
}

h1, h2, h3 {
    font-family: "Segoe UI", system-ui, sans-serif;
}

h2 {
    color: #1e88e5;
}

h3 {
    color: #26a69a;
}

p {
    line-height: 1.5;
    margin: 0.4rem 0 0.6rem 0;
}

.note {
    font-size: 0.9rem;
    color: #546e7a;
}

.highlight {
    background-color: #fff9c4;
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
}

.field {
    margin-bottom: 0.8rem;
}

label {
    font-weight: 600;
    color: #37474f;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    max-width: 460px;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #b0bec5;
    font-family: inherit;
    margin-top: 0.2rem;
}

textarea {
    border-radius: 16px;
    resize: vertical;
}

button {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ffb74d, #ffca28);
    color: #4e342e;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 183, 77, 0.6);
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    background-color: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
}

th, td {
    padding: 0.6rem 0.7rem;
    border: 1px solid #cfd8dc;
    font-size: 0.95rem;
    text-align: left;
}

th {
    background-color: #e0f7fa;
}

.actions button,
.actions a {
    font-size: 0.8rem;
    margin-right: 0.4rem;
}

.actions a {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}

.actions a:hover {
    text-decoration: underline;
}

.state-list {
    padding-left: 1.2rem;
}

.state-list li {
    margin: 0.15rem 0;
}

audio,
video {
    display: block;
    margin: 0.6rem 0 1rem 0;
}

img {
    border-radius: 20px;
    margin-top: 0.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

footer {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #263238;
}

footer address {
    font-style: normal;
    margin-top: 0.4rem;
}

footer a {
    color: #1e88e5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .layout {
        flex-direction: column;
    }

    aside {
        border-radius: 0 0 24px 24px;
        border-left: none;
        border-top: 4px solid #ffb300;
    }
}
