/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;

    /* Status Colors */
    --success: #10b981;
    --danger: #b614a8ff;
    --warning: #f59e0b;
    --secondary: #64748b;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --bg-card: #c5dff0ff;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Border & Effects */
    --border-color: #b0c8e7ff;
    --border-hover: #cbd5e1;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 1rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

main {
    margin: 50px;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar-brand i {
    color: var(--danger);
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-accent);
}

.btn-get-started {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-get-started:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    align-items: center;
    gap: 0.375rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-warning {
    border-color: var(--warning);
    color: var(--warning);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border-color: var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: white;
}

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

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== FORMS ===== */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-control:hover {
    border-color: var(--border-hover);
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===== CARDS ===== */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
    background: var(--bg-card);
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--primary);
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 1rem;
    padding: 0.375rem 0.75rem;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-secondary {
    background: var(--secondary) !important;
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-body {
    background: var(--bg-primary);
    padding: 1.5rem;
}

.modal-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: var(--bg-primary);
}

.dropdown-item {
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--danger);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary);
}

/* ===== WELCOME PAGE SPECIFIC ===== */
.hero-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin: 3rem 0;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-badge {
    background: var(--bg-accent);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.hero-badge i {
    color: var(--primary);
    margin-right: 0.375rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-section,
.how-it-works,
.use-cases,
.stats-section,
.cta-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin: 3rem 0;
    padding: 3rem 2rem;
}

.feature-card,
.step-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--primary);
}

.feature-title,
.step-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-description,
.step-description {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.use-case-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--success);
}

.use-case-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.use-case-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.stats-section,
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-title,
.cta-title {
    color: white;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    color: white;
}

.cta-button {
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

/* ===== DASHBOARD SPECIFIC ===== */
.dashboard-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 2rem 0;
}

.dashboard-header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.dashboard-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    color: white;
}

.create-btn {
    background: white;
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.feedback-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 4px solid var(--border-color);
    transition: all 0.2s ease;
    height: 100%;
    overflow: hidden;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.status-badge {
    font-size: 0.875rem;
    border-radius: 1rem;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
}

.url-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.copy-btn {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.comments-count {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.comments-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.empty-state {
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

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

.empty-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-cta {
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    background: var(--primary-dark);
}

.pro-tip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 2rem;
}

.privacy-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.text-gradient {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section,
    .feature-section,
    .how-it-works,
    .use-cases,
    .stats-section,
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .dashboard-container {
        padding: 1rem;
        margin: 1rem 0;
    }

    .dashboard-header {
        padding: 1.5rem;
        text-align: center;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .btn-get-started {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .create-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-title {
        font-size: 1.75rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.card,
.feature-card,
.step-card,
.use-case-item,
.feedback-card {
    will-change: transform;
}

/* Remove laggy animations */
* {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}
