/* WebKit - Premium Dark Theme with Activity Dashboard */

:root {
    --bg-primary: #fbfbfb;
    --bg-secondary: #f3f3f3;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --accent: #c8ff00;
    --accent-dark: #b5e600;
    --accent-dim: rgba(200, 255, 0, 0.2);
    --text-primary: #080808;
    --text-secondary: #6b6b6b;
    --text-muted: #a0a0a0;
    --border: #eaeaea;
    --success: #000000;
    /* Matching reference style */
    --warning: #ffaa00;
    --error: #ff4444;
    --info: #000000;
    --radius: 24px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 20px var(--accent));
}

.logo h1 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.tagline {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 10px;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.wizard-step.active .step-number {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--accent);
}

.wizard-step.completed .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wizard-step.active .step-label {
    color: var(--text-primary);
}

.wizard-line {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.input-prefix {
    padding: 14px;
    padding-right: 0;
    color: var(--text-muted);
    font-size: 14px;
    user-select: none;
}

.input-wrapper input {
    flex: 1;
    padding: 14px;
    padding-left: 4px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary::after {
    content: '→';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    line-height: 24px;
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-primary:hover::after {
    transform: translateX(4px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 40px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.stat-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Activity Panel */
.activity-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.activity-header h3 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-header h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.activity-badge {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 12px;
    font-weight: 500;
}

.activity-log {
    max-height: 350px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.activity-log::-webkit-scrollbar {
    width: 6px;
}

.activity-log::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.activity-log::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.activity-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    animation: slideIn 0.2s ease-out;
}

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

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

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    min-width: 70px;
}

.activity-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
}

.activity-type.navigate {
    background: rgba(0, 170, 255, 0.15);
    color: var(--info);
}

.activity-type.analyze {
    background: rgba(200, 255, 0, 0.15);
    color: var(--accent);
}

.activity-type.download {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
}

.activity-type.save {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.activity-type.discover {
    background: rgba(138, 43, 226, 0.15);
    color: #a855f7;
}

.activity-type.error {
    background: rgba(255, 68, 68, 0.15);
    color: var(--error);
}

.activity-type.info {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-secondary);
}

.activity-type.start {
    background: rgba(0, 170, 255, 0.15);
    color: var(--info);
}

.activity-type.complete {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.activity-type.crawl {
    background: rgba(200, 255, 0, 0.15);
    color: var(--accent);
}

.activity-type.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.activity-message {
    flex: 1;
    color: var(--text-primary);
    word-break: break-word;
}

.activity-details {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

/* Action Cards */
.actions-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--accent);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.action-icon {
    font-size: 16px;
}

.action-title {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Results Section */
.results-section {
    margin-bottom: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.results-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

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

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.result-item:hover {
    background: var(--bg-card-hover);
}

.result-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-size: 14px;
}

.result-url {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.image-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Jobs Section */
.jobs-section {
    margin-bottom: 30px;
}

.jobs-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.job-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.job-domain {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.job-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.job-status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.job-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.job-status.running {
    background: rgba(200, 255, 0, 0.1);
    color: var(--accent);
}

.job-status.pending {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

.job-status.failed {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

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

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

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* Step 2: Design Selection Styles */
.design-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.design-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.design-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.design-card.selected {
    border-color: var(--text-primary);
    border-width: 2px;
}

.design-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
}

.design-preview {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

.design-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.design-card:hover .design-preview img {
    transform: scale(1.05);
}

.design-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-title {
    font-weight: 700;
    font-size: 15px;
}

.btn-select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.design-card:hover .btn-select {
    background: var(--bg-secondary);
}

.design-card.selected .btn-select {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.section-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.header-actions {
    display: flex;
    gap: 12px;
}

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

/* Step 3: Generation Styles */
.generate-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.generate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    box-shadow: var(--shadow);
}

.project-config {
    margin-bottom: 30px;
}

.subdomain-preview {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 16px;
    margin-top: 8px;
}

.subdomain-preview input {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    outline: none;
}

.domain-suffix {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 16px;
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.selection-summary {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.generation-status {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.status-log {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: #000;
    padding: 12px;
    border-radius: 6px;
}

.status-log li {
    margin-bottom: 4px;
    padding-left: 15px;
    position: relative;
}

.status-log li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
}
