*,
body {
    margin: 0
}

body,
ul {
    padding: 0
}

.btn,
.logo a {
    font-weight: 700
}

.add-field-btn:hover,
.footer-section ul li a:hover,
.logo a,
.nav-links a:hover {
    color: var(--primary-color)
}

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #1e293b;
    --accent-color: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', sans-serif
}

* {
    box-sizing: border-box;
    color: #fff
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000
}

.add-field-btn:hover,
.card:hover,
.form-group input:focus {
    border-color: var(--primary-color)
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem
}

.logo a {
    font-size: 1.5rem
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center
}

.nav-links a {
    color: #94a3b8;
    transition: color .3s
}

.field-inputs input {
    height: 2.5em;
    border-radius: 8px;
    border-width: 0;
    padding: 1em;
    font-size: 100%;
    color: #222
}

.add-field-btn {
    font-size: 100%;
    cursor: pointer;
    padding: 1em
}

.btn {
    padding: .5rem 1rem;
    border-radius: .5rem;
    transition: .3s;
    cursor: pointer;
    border-width: 0
}

.section {
    line-height: 2;
    max-width: 700px;
    margin: 0 auto
}

.btn-primary {
    background: var(--primary-color);
    color: #fff !important;
    font-size: 110%
}

.btn-primary:hover {
    background: var(--primary-hover)
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1
}

.hero {
    text-align: center;
    padding: 5rem 1rem
}

.card,
.form-container,
.tool-area {
    background: var(--secondary-color);
    padding: 2rem
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

.card {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: transform .3s
}

.card:hover {
    transform: translateY(-5px)
}

.form-container {
    max-width: 400px;
    margin: 3rem auto;
    border-radius: 1rem;
    border: 1px solid var(--glass-border)
}

.form-group {
    margin-bottom: 1.5rem
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    color: #94a3b8
}

.form-group input {
    width: 100%;
    padding: .75rem;
    border-radius: .5rem;
    border: 1px solid var(--glass-border);
    background: #0f172a;
    color: #fff;
    outline: 0
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem
}

.tool-area {
    border-radius: 1rem;
    border: 1px solid var(--glass-border)
}

.field-item {
    background: #0f172a;
    padding: 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start
}

.alert,
.footer-section ul li {
    margin-bottom: .5rem
}

.field-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.add-field-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--secondary-color);
    border: 1px dashed var(--glass-border);
    color: #94a3b8
}

.footer,
.footer-bottom {
    border-top: 1px solid var(--glass-border)
}

.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000
}

.alert {
    padding: 1rem;
    border-radius: .5rem;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1)
}

.footer {
    background: var(--secondary-color);
    padding: 3rem 2rem 1rem;
    margin-top: auto
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem
}

.footer-section p,
.footer-section ul li a {
    color: #94a3b8;
    font-size: .9rem
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    text-align: center;
    color: #64748b;
    font-size: .8rem
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    background: 0 0;
    border: none;
    cursor: pointer
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #e5e7eb;
    transition: transform .3s, opacity .3s
}

.nav-toggle.open span:first-child {
    transform: translateY(6px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg)
}

@media (max-width:768px) {
    .navbar .container {
        padding: .75rem 1rem
    }

    .container {
        padding: 1rem;
        max-width: 100%
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 1rem;
        background: var(--secondary-color);
        border: 1px solid var(--glass-border);
        border-radius: .75rem;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
        min-width: 180px
    }

    .nav-links.nav-open,
    .nav-toggle {
        display: flex
    }

    .dashboard-grid {
        max-width: 100%;
        grid-template-columns: 1fr
    }
}

@media (min-width:768px) {
    .home .dashboard-grid {
        margin-top: 4rem;
        grid-template-columns: 1fr 1fr 1fr
    }
}