/* ================================
   AVIOLA CONSOLE - Premium Styles
   ================================ */

.console-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--dark-bg);
}

/* ================================
   Sidebar
   ================================ */

.console-sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 26, 0.95));
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.sidebar-brand {
    text-decoration: none;
}

.sidebar-brand .brand-text {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 0.25rem 0.75rem;
    border-radius: 12px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item svg {
    flex-shrink: 0;
}

.badge {
    margin-left: auto;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.logout-btn {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* ================================
   Main Content
   ================================ */

.console-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-header {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 26, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--gradient-gold);
    border-color: var(--gold-primary);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.step.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 215, 0, 0.2);
}

/* ================================
   Content Area
   ================================ */

.console-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.console-content::-webkit-scrollbar {
    width: 8px;
}

.console-content::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.05);
}

.console-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 4px;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* Page Sections */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

/* Step Sections */
.step-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Cards */
.section-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.card-header {
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-body {
    padding: 2rem;
}

/* ================================
   Form Elements
   ================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(10, 14, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ================================
   Upload Area
   ================================ */

.upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.02);
}

.upload-icon {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.upload-area h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.file-types {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ================================
   Divider
   ================================ */

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   Manual Add Section
   ================================ */

.manual-add-section {
    margin-bottom: 2rem;
}

.manual-add-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.add-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
}

.btn-add {
    width: 54px;
    height: 54px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* ================================
   Contacts Section
   ================================ */

.contacts-section {
    margin-top: 2rem;
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contacts-header h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Contacts Table */
.contacts-table-wrapper {
    background: rgba(10, 14, 26, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
}

.contacts-table thead {
    background: rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.contacts-table th {
    padding: 1rem;
    text-align: left;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contacts-table tbody tr {
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    transition: background 0.2s ease;
}

.contacts-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.contacts-table td {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contacts-table td:first-child {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.contacts-table td:nth-child(2) {
    color: var(--text-primary);
    font-weight: 600;
}

.contacts-table td:nth-child(3) {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold-primary);
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ================================
   Templates Section
   ================================ */

.templates-section {
    margin-bottom: 2rem;
}

.templates-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.template-card {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.template-card.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold-primary);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.template-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================
   Script Editor
   ================================ */

.script-editor {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.editor-header {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.editor-header label {
    margin: 0;
    font-size: 1rem;
}

.char-counter {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.script-textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 200px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.script-textarea:focus {
    outline: none;
}

.editor-footer {
    background: rgba(10, 14, 26, 0.8);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-preview {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* ================================
   Launch Options
   ================================ */

.launch-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.launch-option input[type="radio"] {
    display: none;
}

.launch-card {
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.launch-card:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-3px);
}

.launch-option input[type="radio"]:checked + .launch-card {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.launch-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.launch-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.launch-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Scheduled Settings */
.scheduled-settings {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ================================
   Campaign Summary
   ================================ */

.campaign-summary {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.campaign-summary h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.summary-item {
    text-align: center;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   Buttons
   ================================ */

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-prev, .btn-next, .btn-launch {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-prev {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

.btn-prev:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

.btn-next {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.btn-launch {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    margin-left: auto;
}

.btn-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-launch:disabled,
.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ================================
   Notifications
   ================================ */

#notificationContainer {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.4s ease;
}

.notification.success {
    border-color: #10b981;
}

.notification.error {
    border-color: #ef4444;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification.info .notification-icon {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .console-sidebar {
        width: 80px;
    }

    .console-main {
        margin-left: 80px;
    }

    .sidebar-brand .brand-text {
        font-size: 1.25rem;
    }

    .nav-item span:not(.badge) {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .user-details {
        display: none;
    }

    .console-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .add-contact-form {
        grid-template-columns: 1fr;
    }

    .launch-options {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .console-content {
        padding: 1rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }
}

/* ================================
   Dashboard Page
   ================================ */

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.welcome-content {
    max-width: 800px;
}

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

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

/* ================================
   History Page
   ================================ */

.empty-history {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-history svg {
    color: var(--gold-primary);
    margin-bottom: 2rem;
}

.empty-history h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-history p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(10, 14, 26, 0.8);
    transform: translateX(4px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.history-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.history-status {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.history-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.history-status.running {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

.history-status.stopped {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.history-stat {
    text-align: center;
}

.history-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.history-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================================
   Steps Header (for create page)
   ================================ */

.steps-header {
    margin-bottom: 2rem;
}

.progress-steps-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.step-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step-inline.active .step-number {
    background: var(--gradient-gold);
    border-color: var(--gold-primary);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.step-inline.completed .step-number {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.step-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.step-inline.active .step-name {
    color: var(--gold-primary);
}

.step-line-inline {
    width: 60px;
    height: 2px;
    background: rgba(255, 215, 0, 0.2);
}

/* Header Status */
.header-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.header-status span {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

