/* Custom styles for Citation Generator Pro */
.citation-app {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--font-text);
}

.hero-section {
    text-align: center;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.version-badge {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-family: var(--font-mono);
    color: #86868b;
}

/* Nav */
.app-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.nav-link {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #86868b;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link.active {
    color: var(--color-brand-teal);
    border-bottom-color: var(--color-brand-teal);
}

.view-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.glass-panel {
    background: var(--color-section-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.input-field:focus {
    border-color: var(--color-brand-teal);
}

.input-field.mono {
    font-family: var(--font-mono);
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Generator Layout */
.generator-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
}

.col-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 700px;
}

.panel-header {
    background: var(--color-section-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.mode-tab {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    background: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.mode-tab.active {
    color: var(--color-brand-teal);
    border-bottom-color: var(--color-brand-teal);
}

.form-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Dynamic JS Form Elements */
.dynamic-field-wrap {
    margin-bottom: 16px;
}

.dynamic-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    margin-bottom: 6px;
}

.dynamic-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 14px;
}

.dynamic-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 14px;
}

.dynamic-radio-wrap {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.dynamic-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    background: var(--color-section-bg);
    padding: 8px;
    border-radius: 6px;
}

.dynamic-btn {
    padding: 8px 16px;
    background: var(--color-section-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.output-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.output-textarea {
    flex: 1;
    background: transparent;
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 20px;
    border: none;
    resize: none;
    outline: none;
}

.visual-preview {
    flex: 1;
    background: var(--color-bg);
    padding: 24px;
    overflow-y: auto;
}

.panel-footer {
    background: var(--color-section-bg);
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* List Items */
.list-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.drag-handle {
    color: #86868b;
    cursor: grab;
    padding: 0 8px;
}

.manual-order-input {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
}

/* Toasts */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: rgba(255, 59, 48, 0.9);
}

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

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