/* ===== EXTEROID Consolidator - Cosmic Theme ===== */

/* Import cosmic variables from main styles */
@import url('../css/styles.css');

/* === Base Layout === */
.cosmic-bg {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: var(--white-silver);
}

/* Subtle cosmic particle background */
.cosmic-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, var(--cyan-glow), transparent),
        radial-gradient(1px 1px at 30% 50%, var(--ice-blue), transparent),
        radial-gradient(1px 1px at 60% 80%, var(--nebula-purple), transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 40%, var(--cyan-glow), transparent),
        radial-gradient(1px 1px at 20% 70%, var(--ice-blue), transparent);
    background-size: 100% 100%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* === Navigation === */
.cosmic-nav {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cosmic-nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cosmic-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white-silver);
}

.cosmic-nav .logo img {
    height: 35px;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan-glow);
    border-radius: 50px;
    color: var(--cyan-glow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* === Main 3-Column Layout === */
.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Ad Columns */
.ad-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Content Panel */
.content-panel {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* === Page Header === */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white-silver);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header h1 i {
    color: var(--cyan-glow);
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: var(--ice-blue);
    opacity: 0.9;
}

/* === Progress Steps === */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-steps .step.active {
    opacity: 1;
}

.progress-steps .step.completed {
    opacity: 0.8;
}

.progress-steps .step.completed .step-number {
    background: var(--gradient-success);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan-glow);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--cyan-glow);
    box-shadow: var(--glow-cyan);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--white-silver);
}

/* === Section Cards === */
.step-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.section-header {
    margin-bottom: 1.5rem;
}

.step-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-silver);
    margin-bottom: 0.5rem;
}

.helper-text {
    color: var(--ice-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.helper-text i {
    color: var(--cyan-glow);
}

/* === Multi-File Upload Area === */
.multi-drop-zone {
    border: 2px dashed rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.multi-drop-zone:hover,
.multi-drop-zone.active {
    border-color: var(--cyan-glow);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: var(--glow-cyan);
}

.multi-drop-zone i {
    font-size: 4rem;
    color: var(--cyan-glow);
    margin-bottom: 1rem;
    display: block;
}

.upload-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white-silver);
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: var(--ice-blue);
    margin-bottom: 1.5rem;
}

.hidden-input {
    display: none;
}

.btn-upload {
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

/* === Uploaded Files List === */
.uploaded-files {
    margin-top: 2rem;
}

.uploaded-files h3 {
    font-size: 1.1rem;
    color: var(--white-silver);
    margin-bottom: 1rem;
}

.file-list {
    display: grid;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: var(--cyan-glow);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.file-details p {
    margin: 0;
    color: var(--white-silver);
}

.file-details .file-size {
    font-size: 0.85rem;
    color: var(--ice-blue);
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--ice-blue);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    color: #ef4444;
}

/* === Column Cards Grid === */
.column-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.column-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.column-card:hover {
    border-color: var(--cyan-glow);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.column-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.column-name {
    font-weight: 600;
    color: var(--white-silver);
    margin: 0.75rem 0 0.5rem;
    font-size: 1.05rem;
}

.column-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.file-count {
    font-size: 0.85rem;
    color: var(--ice-blue);
}

.column-type {
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.2);
    color: var(--nebula-purple);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Preview Table === */
.preview-table-container {
    overflow-x: auto;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.preview-table thead th {
    position: sticky;
    top: 0;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-glow);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    z-index: 10;
}

.preview-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--white-silver);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.preview-table tbody tr:hover {
    background: rgba(6, 182, 212, 0.05);
}

.preview-info {
    text-align: center;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 8px;
    color: var(--ice-blue);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* === Cleaning Options Grid === */
.cleaning-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cleaning-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.cleaning-card:hover {
    border-color: var(--nebula-purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-3px);
}

.cleaning-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cleaning-card h3 {
    font-size: 1.2rem;
    color: var(--white-silver);
    margin-bottom: 0.75rem;
}

.cleaning-description {
    color: var(--ice-blue);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cleaning-card .toggle-switch {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

/* === Toggle Switch === */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 116, 139, 0.3);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(100, 116, 139, 0.5);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--cyan-glow);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* === Statistics Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 2rem;
    color: var(--cyan-glow);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white-silver);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--ice-blue);
    font-size: 0.9rem;
}

/* === Action Buttons === */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-export {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan-glow);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--cyan-glow);
}

.btn-export {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn-excel {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-csv {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-excel:hover,
.btn-csv:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === Export Options === */
.export-options {
    margin-top: 2rem;
}

.export-options h3 {
    text-align: center;
    color: var(--white-silver);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* === Loading Overlay === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 4rem;
    color: var(--cyan-glow);
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--white-silver);
    font-size: 1.2rem;
}

/* === Validation Message === */
.validation-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.validation-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.validation-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* === Footer === */
.cosmic-footer {
    background: rgba(10, 22, 40, 0.9);
    color: var(--white-silver);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo img {
    height: 30px;
}

.footer-tagline {
    color: var(--ice-blue);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--ice-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan-glow);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    color: var(--ice-blue);
    font-size: 0.85rem;
}

/* === Utility Classes === */
.hidden {
    display: none !important;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .ad-column {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-steps .step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .column-cards-grid {
        grid-template-columns: 1fr;
    }

    .cleaning-options-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cosmic-nav .nav-container {
        padding: 0 1rem;
    }

    .page-header {
        padding: 1.5rem;
    }

    .section-card {
        padding: 1.5rem;
    }
}

/* === Custom Scrollbar === */
.preview-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.preview-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.preview-table-container::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

.preview-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-glow);
}