 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b1120;
    --bg-secondary: #111827;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-solid: #161f33;
    --primary: #7c3aed;
    --primary-2: #06b6d4;
    --accent: #ec4899;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.08);

    --radius: 24px;

    --shadow-lg:
        0 10px 30px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.03);

    --glass:
        backdrop-filter: blur(18px);
    --gradient:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124,58,237,0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6,182,212,0.2), transparent 30%),
        var(--bg);

    color: var(--text);
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 100px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15,23,42,0.7);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(20px);
    z-index: 1000;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;

    background: linear-gradient(
        to right,
        #ffffff,
        #a5b4fc
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header a {
    position: absolute;
    right: 28px;

    color: var(--muted);
    text-decoration: none;
    font-weight: 500;

    transition: 0.25s ease;
}

header a:hover {
    color: white;
}

/* LAYOUT */
.app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    height: 100vh;
    padding-top: 72px;
}

/* SIDEBAR */
.sidebar {
    padding: 28px;
    overflow-y: auto;

    background: var(--panel);
    border-right: 1px solid var(--border);

    backdrop-filter: blur(20px);
}

.sidebar h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

section {
    background: rgba(255,255,255,0.03);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 1.4rem;
    margin-bottom: 1.5rem;

    box-shadow: var(--shadow-lg);
}

h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #c4b5fd;
    margin-bottom: 1.2rem;
}

/* FORMS */
.field {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.55rem;

    font-size: 0.88rem;
    font-weight: 500;
    color: #dbeafe;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.95rem 1rem;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.04);

    color: white;
    font-size: 0.92rem;

    outline: none;

    transition: all 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124,58,237,0.8);

    box-shadow:
        0 0 0 4px rgba(124,58,237,0.15),
        0 10px 25px rgba(124,58,237,0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="color"] {
    padding: 0.4rem;
    height: 54px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

/* BUTTONS */
button {
    border: none;
    outline: none;
    cursor: pointer;

    border-radius: 16px;

    padding: 0.95rem 1.2rem;

    font-weight: 600;
    font-size: 0.92rem;

    background: var(--gradient);
    color: white;

    transition: 0.25s ease;

    box-shadow:
        0 10px 25px rgba(124,58,237,0.35);
}

button:hover {
    transform: translateY(-2px) scale(1.02);

    box-shadow:
        0 14px 30px rgba(124,58,237,0.45);
}

button.secondary {
    background: rgba(255,255,255,0.08);
    box-shadow: none;
}

button.secondary:hover {
    background: rgba(255,255,255,0.12);
}

button.danger {
    background: linear-gradient(
        135deg,
        #ef4444,
        #f43f5e
    );

    padding: 0.7rem 1rem;
    font-size: 0.8rem;
}

/* MAIN */
.main-content {
    padding: 2.5rem;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* PREVIEW */
#preview-container {
    position: relative;

    width: 100%;
    max-width: 980px;

    border-radius: 32px;
    overflow: hidden;

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    backdrop-filter: blur(20px);
}

.slider-track {
    display: grid;
    grid-template-columns: repeat(100, 100%);
    height: 100%;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-size: cover;
    background-position: center;
}

/* TESTIMONIAL */
.testimonial-card {
    max-width: 720px;
    text-align: center;

    padding: 3rem;

    border-radius: 32px;

    background:
        rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.testimonial-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-card small {
    color: var(--muted);
}

.thumb {
    width: 96px;
    height: 96px;

    border-radius: 50%;
    object-fit: cover;

    margin-bottom: 1.5rem;

    border: 4px solid rgba(255,255,255,0.15);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35);
}

/* NAVIGATION */
.nav-btn {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 54px;
    height: 54px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.08);

    color: white;

    backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.nav-btn:hover {
    background: var(--gradient);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* DOTS */
.dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    gap: 0.7rem;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 999px;

    background: rgba(255,255,255,0.25);

    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 34px;

    background: linear-gradient(
        to right,
        var(--primary),
        var(--primary-2)
    );
}

/* ITEMS */
.items-list,
#export-section {
    width: 100%;
    max-width: 980px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 1.2rem;

    border-radius: 20px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    margin-bottom: 0.8rem;

    backdrop-filter: blur(12px);
}

/* CODE BLOCK */
pre {
    position: relative;

    padding: 2rem;

    border-radius: 24px;

    overflow-x: auto;

    background:
        linear-gradient(
            135deg,
            #111827,
            #0f172a
        );

    border: 1px solid rgba(255,255,255,0.06);

    color: #e2e8f0;

    font-size: 0.9rem;
    line-height: 1.7;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.4);
}

.copy-btn {
    position: absolute;
    top: 18px;
    right: 18px;

    padding: 0.55rem 0.9rem;

    border-radius: 12px;

    font-size: 0.78rem;
}

/* ACTIONS */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

    margin-top: 1.2rem;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media (max-width: 960px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }
}