/* ===== VARIABLES & THEME COLORS (MATCHING DASHBOARD) ===== */
:root {
    /* Primary Color Palette - Modern Purple/Blue Gradient */
    --primary-dark: #2D1B4E;
    --primary: #6B4EFF;
    --primary-light: #9B87FF;
    --primary-soft: #E9E5FF;
    
    /* Secondary/Accent Colors - Vibrant Teal/Coral */
    --secondary: #FF6B6B;
    --secondary-light: #FFB347;
    --accent-teal: #00D1B2;
    --accent-purple: #9D65FF;
    
    /* Neutral Colors / Backgrounds */
    --bg-gradient: linear-gradient(135deg, #F8F7FF 0%, #FFFFFF 50%, #F0EEFF 100%);
    --card-bg: #FFFFFF;
    --card-bg-hover: #F8F7FF;
    
    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    
    /* Status Colors */
    --success: #48BB78;
    --warning: #F6AD55;
    --info: #4299E1;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(107, 78, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(107, 78, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 30px 50px rgba(107, 78, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6B4EFF 0%, #9D65FF 50%, #FF6B6B 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF, #F8F7FF);
}

/* ===== BASE THEME ===== */
body {
    background: var(--bg-gradient);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    
    /* Consolidated Layout Vars */
    --text-main: var(--text-primary);
    --text-muted: var(--text-secondary);
    --heading-color: var(--primary-dark);
    --border-color: rgba(107, 78, 255, 0.1);
    --input-bg: #FFFFFF;
    --shadow-custom: var(--shadow-md);
}

/* ===== HEADING STYLES ===== */
.custom-card h3 {
    color: var(--heading-color) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem !important;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 15px;
}

.custom-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== MAIN TITLE ===== */
.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(107, 78, 255, 0.1);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.main-title::after {
    content: '🎬';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    -webkit-text-fill-color: initial;
    color: var(--secondary);
}

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

/* ===== CARDS ===== */
.custom-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--card-bg-hover);
    border-color: var(--primary-light);
}

.custom-card:hover::before {
    opacity: 1;
}

.result-card {
    background: var(--gradient-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.result-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.result-card:hover::after {
    opacity: 0.3;
}

/* ===== FORM INPUTS ===== */
.custom-input {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.custom-input:focus {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 78, 255, 0.15);
    outline: none;
    color: var(--text-main);
}

.custom-input::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn-predict {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-predict::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-predict:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

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

.btn-predict:active {
    transform: translateY(0);
}

.btn-dashboard {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dashboard:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== PREDICTION RESULT SECTION ===== */
.revenue-label {
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.revenue-value {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: var(--shadow-sm);
}

.status {
    display: inline-block;
    padding: 8px 24px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid rgba(107, 78, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.placeholder {
    color: var(--text-light);
    font-size: 1.2rem;
    font-style: italic;
    padding: 30px;
    border: 2px dashed rgba(107, 78, 255, 0.3);
    border-radius: 20px;
    background: var(--primary-soft);
}

/* ===== GRAPH SECTION ===== */
.graph {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.graph:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.graph img {
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
        white-space: normal;
    }
    
    .main-title::after {
        display: none;
    }
    
    .revenue-value {
        font-size: 3rem;
    }
    
    .custom-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem !important;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .revenue-value {
        font-size: 2.5rem;
    }
}

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

.row > div {
    animation: slideIn 0.5s ease forwards;
}

.col-md-5 {
    animation-delay: 0.1s;
}

.col-md-7 {
    animation-delay: 0.2s;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-soft);
}

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

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

/* ===== BACK BUTTON ===== */
.btn-back {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 10px 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.btn-back i {
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .btn-back {
        top: 20px;
        left: 20px;
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}