/* 
 * SahamCerdas.com - Modern Pastel Design
 * Professional AI Stock Analysis Platform
 * Color Scheme: Soft Pastels with Modern Gradients
 */

/* ============================================
   PASTEL COLOR PALETTE
   ============================================ */
:root {
    /* Primary Pastel Colors */
    --pastel-blue: #A8D8EA;
    --pastel-purple: #C5A3E8;
    --pastel-pink: #FFB6C1;
    --pastel-green: #B8E6C8;
    --pastel-yellow: #FFF4A3;
    --pastel-peach: #FFD3B5;
    --pastel-mint: #B2E4DB;
    --pastel-lavender: #E0D4F7;
    
    /* Accent Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --warning-gradient: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Neutral Pastels */
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --border-color: #E2E8F0;
    
    /* Premium Colors */
    --premium-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --premium-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background: #ffffff !important;
    backdrop-filter: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: #2d3748 !important;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    background: var(--pastel-yellow);
    padding: 8px;
    border-radius: 50%;
    color: #764ba2;
    margin-right: 8px;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea !important;
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section, .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before, .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-section h1, .hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-section p.lead, .hero p.lead {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

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

.card-header {
    border-bottom: none;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Feature Cards */
.feature-card {
    position: relative;
    border-radius: 20px;
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card .icon, .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-card:nth-child(1) .icon, .feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    color: white;
}

.feature-card:nth-child(2) .icon, .feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-mint));
    color: white;
}

.feature-card:nth-child(3) .icon, .feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-peach));
    color: white;
}

.feature-card:nth-child(4) .icon, .feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--pastel-yellow), var(--pastel-peach));
    color: #764ba2;
}

/* Stock Cards */
.stock-card {
    border-radius: 16px;
    padding: 1.5rem;
    background: white;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stock-card:hover {
    border-left-color: #667eea;
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.stock-card.positive {
    border-left-color: var(--pastel-green);
    background: linear-gradient(to right, rgba(184, 230, 200, 0.1), transparent);
}

.stock-card.negative {
    border-left-color: var(--pastel-pink);
    background: linear-gradient(to right, rgba(255, 182, 193, 0.1), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    box-shadow: 0 4px 15px rgba(247, 183, 51, 0.4);
    color: white;
}

.btn-info {
    background: var(--info-gradient);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-premium {
    background: var(--premium-gold);
    color: white;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.7);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

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

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

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

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

.premium-badge {
    background: var(--premium-gold);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, rgba(184, 230, 200, 0.2), rgba(178, 228, 219, 0.2));
    color: #2d7a4f;
    border-left: 4px solid var(--pastel-green);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 244, 163, 0.3), rgba(255, 211, 181, 0.3));
    color: #c67700;
    border-left: 4px solid var(--pastel-yellow);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 211, 181, 0.2));
    color: #c82333;
    border-left: 4px solid var(--pastel-pink);
}

.alert-info {
    background: linear-gradient(135deg, rgba(168, 216, 234, 0.2), rgba(178, 228, 219, 0.2));
    color: #0c5460;
    border-left: 4px solid var(--pastel-blue);
}

/* ============================================
   FORMS
   ============================================ */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ============================================
   ANALYSIS RESULT
   ============================================ */
.analysis-result, .analysis-card {
    background: linear-gradient(135deg, rgba(224, 212, 247, 0.3), rgba(197, 163, 232, 0.3));
    border-left: 6px solid var(--pastel-lavender);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.analysis-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.analysis-section h5 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

footer h5 {
    color: var(--pastel-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--pastel-blue);
    transform: translateX(5px);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    padding: 3rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

/* ============================================
   CHARTS
   ============================================ */
.chart-container {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group-item {
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
}

.list-group-item:hover {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.list-group-item.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* ============================================
   STEP NUMBERS
   ============================================ */
.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-success {
    color: #56ab2f !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.text-warning {
    color: #f7b733 !important;
}

.text-info {
    color: #4facfe !important;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up, .fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.pastel-bg-blue {
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
}

.pastel-bg-green {
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-mint));
}

.pastel-bg-pink {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-peach));
}

.pastel-bg-yellow {
    background: linear-gradient(135deg, var(--pastel-yellow), var(--pastel-peach));
}

.shadow-pastel {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1, .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead, .hero p.lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   SCROLL BAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar, footer, .btn, .alert {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
    }
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--pastel-yellow) !important;
    transform: scale(1.2);
}