body {
	min-height: 100vh;
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #e5e7eb;

    background: radial-gradient(circle at 20% 30%, #1d4ed8 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, #9333ea 0%, transparent 40%),
                linear-gradient(135deg, #020617, #0f172a 60%, #020617);
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}

.logo {
    font-weight: bold;
    font-size: 20px;

    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-decoration: none; /* убирает подчеркивание */
}

.logo:hover {
    opacity: 0.8;
}

.nav a {
    color: #9ca3af;
    margin-left: 20px;
    text-decoration: none;
}

.nav a:hover {
    color: white;
}

/* CENTER BLOCK */
.center {
	
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.card {
    background: #111827;
    padding: 40px;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card h2 {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    background: #1f2937;
    color: white;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
/* DASHBOARD */
.dashboard {
	min-height: 95vh;
    display: flex;
}

.sidebar {
    width: 220px;

    padding: 20px;

    background: linear-gradient(
        180deg,
        #0f172a 0%,
        #111827 40%,
        #020617 100%
    );

    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar a {
    display: block;
    margin-bottom: 15px;
    color: #9ca3af;
    text-decoration: none;
}

.sidebar a:hover {
    color: white;
}

.content {
    flex: 1;
    padding: 30px;
}

.box {
    background: #111827;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.glow {
	pointer-events: none;
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.glow.purple {
    background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%);
}

.box {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
}

.chart {
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(
        to top,
        rgba(59,130,246,0.8),
        rgba(59,130,246,0.2)
    );
    clip-path: polygon(
        0% 80%, 10% 60%, 20% 65%, 30% 40%, 
        40% 50%, 50% 30%, 60% 35%, 70% 20%, 
        80% 25%, 90% 10%, 100% 15%, 100% 100%, 0% 100%
    );
}

.hero-visual {
    width: 300px;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}


.sidebar a {
    display: block;
    margin-bottom: 15px;
    color: #9ca3af;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
}

.sidebar a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.sidebar a.active {
    color: white;
    background: linear-gradient(
        90deg,
        rgba(59,130,246,0.3),
        rgba(59,130,246,0.05)
    );
}

.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    color: white;
    border-radius: 10px;

    background: linear-gradient(135deg, #2563eb, #7c3aed);

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

/* hover эффект */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    filter: brightness(1.1);
}

/* при нажатии */
.cta-button:active {
    transform: scale(0.97);
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );

    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

.box ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.box li {
	width: 75%;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}


/* 📱 АДАПТИВ ПОД МОБИЛЬНЫЕ */
@media (max-width: 768px) {

    /* HEADER */
    .header {
        padding: 15px 20px;
    }

    .nav a {
        margin-left: 10px;
        font-size: 14px;
    }

    /* CENTER (главная страница) */
    .center {
        height: auto;
        padding: 40px 20px;
        text-align: center;
    }

    /* DASHBOARD */
    .dashboard {
        flex-direction: column;
    }

    /* SIDEBAR → становится верхним меню */
    .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .sidebar h3 {
        display: none; /* убираем заголовок */
    }

    .sidebar a {
        margin: 0 10px 0 0;
        white-space: nowrap;
        font-size: 14px;
    }

    /* CONTENT */
    .content {
        padding: 20px;
    }

    /* BOX */
    .box {
        padding: 15px;
    }

    /* КАРТОЧКА LOGIN */
    .card {
        width: 100%;
        padding: 25px;
    }

    /* КНОПКИ */
    button {
        font-size: 14px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    /* СПИСКИ */
    .box li {
        width: 100%;
    }
}
