:root {
    --primary: #003366;
    --secondary: #f0f8ff;
    --text: #333;
    --accent: #0056b3;
    --white: #ffffff;
    --border: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

header h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

header h1 span {
    color: var(--accent);
}

header p {
    color: #666;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.step.active {
    background: var(--primary);
    color: white;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--accent);
}

.btn-prev {
    background: #eee;
    color: #666;
}

.btn-prev:hover {
    background: #ddd;
}

.btn-add {
    background: transparent;
    border: 1px dashed var(--primary);
    color: var(--primary);
    width: 100%;
    margin-top: 0.5rem;
}

.btn-add:hover {
    background: rgba(0, 51, 102, 0.05);
}

/* Dynamic Items */
.dynamic-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.dynamic-item input,
.dynamic-item textarea {
    margin-bottom: 0.5rem;
    background: white;
}

/* Results */
#loader {
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    margin-top: 1rem;
}

#result {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-download {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Header Adjustments */
    header {
        text-align: center;
    }

    header h1 {
        font-size: 1.8rem;
    }

    /* Admin Table Responsive */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Ensure table doesn't squish too much */

    /* Button Stacking */
    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .buttons button {
        width: 100%;
    }
}