/* ================================
   PREMIUM FULL-WIDTH DESIGN
   Matching OG-Evals Brand Colors
   ================================ */

:root {
    /* EXACT Brand Colors from original */
    --primary: #fb5f66;
    --primary-light: #ff7b82;
    --primary-dark: #e64a51;
    --primary-bg: rgba(251, 95, 102, 0.1);

    /* Dark theme */
    --dark: #1a1a1a;
    --darker: #0f0f0f;

    /* Neutrals */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text: #333333;
    --text-light: #666666;
    --border: #d0d0d0;

    /* Status colors */
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;

    /* Gradients - using brand colors */
    --header-gradient: linear-gradient(90deg, #fb5f66 0%, #e64a51 100%);
    --page-bg: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    --card-bg: #ffffff;
    --body-bg: #f5f5f5;

    /* Effects */
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
}

/* ================================
   RESET & BASE
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--page-bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   MODERN HEADER
   ================================ */

.app-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* ================================
   MAIN CONTENT AREA
   ================================ */

.app-main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 3rem;
    min-height: calc(100vh - 200px);
}

/* ================================
   TABS - Brand Styled
   ================================ */

.main-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.main-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    border-radius: calc(var(--radius) - 0.25rem);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.main-tab:hover:not(.disabled) {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.7);
}

.main-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 95, 102, 0.2);
}

.main-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   TAB CONTENT
   ================================ */

.tab-content {
    display: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.step-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ================================
   FORM ELEMENTS
   ================================ */

.form-group {
    margin-bottom: 1.75rem;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.form-group:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(251, 95, 102, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text);
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 95, 102, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================
   BUTTONS - Brand Styled
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 95, 102, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ================================
   WIZARD STEPPER
   ================================ */

.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 3rem;
    padding: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medium-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 3px solid transparent;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    text-align: center;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(251, 95, 102, 0.2);
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step.completed .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--medium-gray);
    margin: 0 0.5rem;
    position: relative;
    top: -12px;
    transition: var(--transition);
}

.step.completed+.step-line {
    background: var(--success);
}

.step.active+.step-line {
    background: linear-gradient(to right, var(--primary) 0%, var(--medium-gray) 100%);
}

/* ================================
   WIZARD STEPS
   ================================ */

.wizard-steps {
    min-height: 400px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ================================
   UTILITIES
   ================================ */

.hidden {
    display: none !important;
}

.required {
    color: var(--primary);
}

small.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ================================
   WIZARD NAVIGATION
   ================================ */

.wizard-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.wizard-nav .btn,
.wizard-nav .btn-secondary {
    flex: 1;
    margin: 0;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1200px) {
    .app-main {
        max-width: 100%;
        padding: 0 1.5rem 2rem;
    }

    .header-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    .main-tabs {
        flex-direction: column;
    }

    .wizard-stepper {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .step-line {
        display: none;
    }

    .tab-content {
        padding: 2rem 1.5rem;
    }

    .app-main {
        padding: 0 1rem 2rem;
    }
}