/* =========================
   BASE THEME (COFFEE LIGHT)
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;

    background-color: #f6f1eb; /* молочный фон */
    color: #2b2b2b;

    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   LAYOUT
========================= */

main {
    flex: 1;
    padding: 100px 40px 40px;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 40px;

    background: #f3e9dd; /* кофе с молоком */
    border-bottom: 1px solid #d6c7b8;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* =========================
   LOGO
========================= */

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-shape {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #c49a6c, #8b5e3c);
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 10px;
    position: relative;
    box-shadow: 0 0 6px rgba(139, 94, 60, 0.4);
    transform: rotate(-45deg);
}

.child-1,
.child-2,
.child-3,
.child-4 {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #c49a6c, #8b5e3c);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 6px rgba(139, 94, 60, 0.4);
    transform: rotate(-45deg);
}

.child-1 {
    position: absolute;
    top: -5px;
    left: 35px;
}

.child-2 {
    position: absolute;
    top: -15px;
    left: 21px;
}

.child-3 {
    position: absolute;
    top: -15px;
    left: 4px;
}

.child-4 {
    position: absolute;
    top: -5px;
    left: -10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6f4e37; /* кофейный */
}

/* =========================
   NAVIGATION
========================= */

nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0 40px 0 0;
}

nav a {
    color: #4b3a2f;
    text-decoration: none;

    padding: 8px 14px;
    border-radius: 8px;

    transition: 0.25s;

    background: transparent;
}

nav a:hover {
    background: #c49a6c;
    color: #fff;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
    color: #6f4e37;
}

p {
    color: #3a3a3a;
}

/* =========================
   CARDS (очень важно для dashboard)
========================= */

.card,
div.stats-box,
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e7d9cc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================
   FORMS
========================= */

input:not([type="radio"]):not([type="checkbox"]), select, textarea {
    width: 100%;
    padding: 10px;

    border: 1px solid #d8c6b5;
    border-radius: 8px;

    background: #fff;
    color: #2b2b2b;

    margin-top: 4px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c49a6c;
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
}

/* =========================
   BUTTONS
========================= */

button {
    background: #8b5e3c;
    color: #fff;

    border: none;
    padding: 10px 16px;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #6f4e37;
}

/* =========================
   LINKS (в контенте)
========================= */

a {
    color: #8b5e3c;
}

a:hover {
    color: #6f4e37;
}

/* =========================
   TABLES (важно для списков)
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

th {
    background: #f3e9dd;
    color: #4b3a2f;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 20px;

    background: #f3e9dd;
    border-top: 1px solid #d6c7b8;

    color: #6b5a4e;
    font-size: 0.9rem;
}

/* =========================
   UTILITIES
========================= */

hr {
    border: none;
    border-top: 1px solid #e3d5c7;
    margin: 20px 0;
}

.profile-section {
    margin-top: 30px;
    padding: 20px;

    background: #fff;
    border: 1px solid #e7d9cc;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-buttons {
    margin-top: 15px;
    margin-bottom: 15px;
}

.action-buttons a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 14px;

    background: #8b5e3c;
    color: white;

    border-radius: 8px;
    text-decoration: none;
}

.action-buttons a:hover {
    background: #6f4e37;
}