/* ISecMan Simplified Mockup - Clean & Minimal */

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

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    --success: #10B981;
    --accent: #2563EB;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.logo {
    height: 64px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Landing Page */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* How It Works */
.how-it-works {
    background: white;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 64px;
    border: 1px solid var(--border);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    color: var(--text-light);
    font-size: 15px;
}

/* Testimonial */
.testimonial {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    opacity: 0.95;
}

/* Wizard */
.wizard-container {
    background: white;
    border-radius: 16px;
    padding: 48px;
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}

.progress-bar {
    margin-bottom: 40px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
}

.progress-track {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-card {
    margin-bottom: 40px;
}

.question-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-label {
    font-weight: 500;
    cursor: pointer;
}

.checkbox-description {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 80px 40px;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.loading-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-subtext {
    color: var(--text-light);
}

/* Results Page */
.results-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 600px;
}

.sidebar {
    background: var(--bg-light);
    padding: 32px 24px;
    border-right: 1px solid var(--border);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-item:hover {
    background: white;
    border-color: var(--border);
}

.document-item.active {
    background: white;
    border-color: var(--primary);
}

.document-icon {
    font-size: 20px;
}

.document-name {
    font-weight: 500;
    font-size: 14px;
}

.time-saved {
    margin-top: 32px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 12px;
    text-align: center;
}

.time-saved-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.time-saved-label {
    font-size: 14px;
    opacity: 0.9;
}

.preview-panel {
    padding: 40px;
    overflow-y: auto;
}

.preview-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.preview-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.preview-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.preview-content {
    line-height: 1.8;
}

.preview-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.preview-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.preview-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.preview-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.preview-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.preview-actions {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 16px;
}

/* Success Badge */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Tour/Tooltip System */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.tour-overlay.active {
    display: block;
}

.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px;
}

/* Ensure tooltip stays on top */
.tour-tooltip {
    z-index: 10001 !important;
}

.tour-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tour-tooltip-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.tour-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
}

.tour-close:hover {
    color: var(--text);
}

.tour-tooltip-content {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-progress {
    font-size: 14px;
    color: var(--text-light);
}

.tour-buttons {
    display: flex;
    gap: 8px;
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.tour-btn-primary {
    background: var(--primary);
    color: white;
}

.tour-btn-primary:hover {
    background: var(--primary-dark);
}

.tour-btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.tour-btn-secondary:hover {
    background: var(--border);
}

.tour-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tour-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.tour-trigger.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .how-it-works {
        padding: 32px 24px;
    }

    .wizard-container {
        padding: 32px 24px;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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

    .btn {
        width: 100%;
    }

    .tour-tooltip {
        max-width: calc(100vw - 48px);
        left: 24px !important;
        right: 24px !important;
    }
}
