/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #1E40AF;
    --secondary-color: #3B82F6;
    --accent-color: #06B6D4;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --info-color: #06B6D4;
    --dark-color: #1F2937;
    --light-bg: #F8FAFC;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(6, 182, 212, 0.1) 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Typography */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.display-4, .display-5 {
    font-weight: 700;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient-soft);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header.bg-gradient {
    background-color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(30, 64, 175, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Checkbox styling */
.form-check {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.form-check:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

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

.form-check-label {
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
}

.niche-selection-container {
    padding: 1rem;
    background-color: #F8F9FA;
    border-radius: 4px;
    border: 1px solid #D1D5DB;
}

.custom-niche-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-label {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.875rem;
}

.bg-primary-soft {
    background-color: rgba(30, 64, 175, 0.1) !important;
    color: var(--primary-color) !important;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-color) !important;
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning-color) !important;
}

.bg-info-soft {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: var(--info-color) !important;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.feature-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

/* About Section Icons */
.about-icon {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Table Styling */
.styled-table {
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
    min-width: 100%;
    background: white;
}

.styled-table thead tr {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    font-weight: 600;
}

.styled-table th,
.styled-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: top;
}

.styled-table tbody tr {
    transition: background-color 0.3s ease;
}

.styled-table tbody tr:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #F8F9FA;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 4rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .styled-table {
        font-size: 0.8rem;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 0.75rem;
    }
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Print styles */
@media print {
    .navbar,
    .card-header,
    .btn,
    .hero-section,
    #features,
    #about,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .styled-table {
        font-size: 12px;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 8px;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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