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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    color: #343a40;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    margin: 0 auto 20px;
    display: block;
    background-color: white;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.accuracy-rate {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 30px;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #6c757d;
    line-height: 1.8;
}

/* Input Section */
.input-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 50px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background: #f8f9fa;
    color: #343a40;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.generate-btn, .view-details-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.generate-btn:hover, .view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* Video Container */
.video-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

video {
    width: 100%;
    height: auto;
    display: block;
}

/* Performance Section */
.performance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.performance-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.performance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.performance-symbol {
    font-size: 2rem;
    margin-bottom: 10px;
}

.performance-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.performance-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 5px;
}

.performance-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* Stock List */
.stock-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.stock-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stock-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.stock-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stock-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stock-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 5px;
}

.stock-change {
    font-size: 1rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.positive {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.negative {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.moderate {
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.1);
}

.mixed {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

/* Disclaimer Section */
.disclaimer-section {
    background: rgba(255, 235, 59, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 50px 0;
}

.disclaimer-section h3 {
    color: #f39c12;
    margin-bottom: 15px;
    font-weight: 600;
}

.disclaimer-section p {
    color: #6c757d;
    line-height: 1.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 50vh auto;
    transform: translateY(-50%);
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: #6c757d;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
}

.close:hover {
    color: #343a40;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 10px;
}

/* Charts Section */
.charts-section {
    margin: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.candlestick {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 80px;
    margin: 20px 0;
}

.daily-candle {
    text-align: center;
    flex: 1;
}

.candle {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candle-wick {
    width: 1px;
    background: #6c757d;
    margin: 0 auto;
}

.candle-body {
    width: 8px;
    border-radius: 1px;
}

.green {
    background: #28a745;
}

.red {
    background: #dc3545;
}

.daily-candle small {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.metric-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.metric-item h4 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Disclaimer Modal */
.disclaimer-modal {
    background: rgba(255, 235, 59, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.disclaimer-modal p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #343a40;
    padding: 40px 0;
    margin-top: 80px;
    color: #adb5bd;
}

.footer .disclaimer {
    max-width: 1000px;
    margin: 0 auto 30px;
    text-align: center;
    color: #adb5bd;
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0 20px;
}

.footer-links {
    text-align: center;
    margin-top: 20px;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .accuracy-rate {
        font-size: 1.2rem;
    }
    
    .input-section {
        padding: 25px;
        margin: 30px 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 50vh auto;
        transform: translateY(-50%);
        padding: 20px;
    }
    
    .charts-section {
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .performance-section,
    .stock-list,
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .performance-item,
    .stock-item,
    .metric-item {
        padding: 15px;
    }
    
    .candlestick {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .performance-section,
    .stock-list,
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .generate-btn, .view-details-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .footer .disclaimer {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        display: block;
        margin: 8px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.performance-item, .stock-item, .metric-item {
    animation: fadeIn 0.5s ease-out;
}

.generate-btn, .view-details-btn {
    animation: fadeIn 0.7s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .modal, .footer, .video-container {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}

        /* Cookie Consent Popup Styles */
        .cookie-popup {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #1a365d;
            color: white;
            padding: 20px;
            z-index: 9999;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            display: none;
        }
        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .cookie-text {
            margin-bottom: 15px;
            font-size: 16px;
        }
        .cookie-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .cookie-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }
        .cookie-accept {
            background-color: #4299e1;
            color: white;
        }
        .cookie-accept:hover {
            background-color: #3182ce;
        }
        .cookie-decline {
            background-color: #e2e8f0;
            color: #2d3748;
        }
        .cookie-decline:hover {
            background-color: #cbd5e0;
        }
        .cookie-link {
            color: #4299e1;
            text-decoration: underline;
        }
        .cookie-link:hover {
            color: #3182ce;
        }
        
        /* Responsive adjustments for cookie popup */
        @media (max-width: 768px) {
            .cookie-text {
                font-size: 14px;
            }
            .cookie-btn {
                padding: 8px 16px;
                font-size: 14px;
            }
        }