/* ====== ГЛОБАЛЬНАЯ ТЕМА ====== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

a {
    color: #ffeaff;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ====== ГРАДИЕНТ LOGO-STYLE ====== */
:root {
    --gradient: linear-gradient(135deg, #ffb347, #ff5c8a, #c043e8);

    --bg: #0d0d0e;
    --bg-secondary: #181818;
    --border: #272727;

    --text-main: #ffffff;
    --text-muted: #dcdcdc;
    --text-nav: #e3e3e3;

    --header-bg: #111111;
    --input-bg: #181818;
}

/* ====== HEADER ====== */
.header {
    background: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.logo span {
    font-weight: 900;
}

/* ====== NAV ====== */
.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #e3e3e3;
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    color: #ffffff;
}

/* ====== MAIN CONTENT ====== */
.content h2 {
    font-size: 40px;
    margin-top: 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
}

.content p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ====== BUTTONS ====== */
.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    color: white;
    background: var(--gradient);
    box-shadow: 0 4px 20px rgba(192, 67, 232, 0.4);
    transition: 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ====== INPUTS ====== */
input,
select,
textarea {
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-main);
}

input:focus {
    border-color: #c043e8;
}

/* ====== CARD ====== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

#app {
    transition: 0.25s ease;
}


@media (max-width: 768px) {

    .container {
        padding: 15px;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav a {
        font-size: 16px;
    }

    .content h2 {
        font-size: 28px;
        text-align: center;
    }

    .content p {
        font-size: 16px;
        text-align: center;
    }
}


@media (max-width: 768px) {

    form {
        width: 100%;
    }

    input,
    textarea,
    select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    button,
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .card {
        padding: 15px;
        border-radius: 14px;
    }

    .card p {
        font-size: 15px;
    }
}


@media (max-width: 768px) {

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        font-size: 14px;
        padding: 8px;
    }
}


@media (max-width: 768px) {

    body {
        -webkit-tap-highlight-color: transparent;
    }

    a,
    button {
        touch-action: manipulation;
    }
}


body.light {

    --bg: #f7f7f9;
    --bg-secondary: #ffffff;
    --border: #dddddd;

    --text-main: #111111;
    --text-muted: #555555;
    --text-nav: #333333;

    --header-bg: #ffffff;
    --input-bg: #ffffff;
}

body.light a {
    color: #7a2cff;
}

body.light .nav a:hover {
    color: #000000;
}

body.light .card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}


/* ====== BUTTON SYSTEM ====== */

/* базовый стиль для ВСЕХ кнопок и ссылок-кнопок */
button,
a.btn,
input[type="submit"] {
    appearance: none;
    border: none;
    cursor: pointer;

    padding: 12px 22px;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;

    color: #fff;
    background: var(--gradient);

    box-shadow: 0 6px 20px rgba(192, 67, 232, 0.35);
    transition: 0.25s ease;
}

/* hover */
button:hover,
a.btn:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(192, 67, 232, 0.45);
}

/* active */
button:active,
a.btn:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(192, 67, 232, 0.3);
}

/* secondary (серые кнопки) */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    box-shadow: none;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* danger */
.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #ff0077);
}

/* full width */
.btn-block {
    width: 100%;
}

/* disabled */
button:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}