/* Custom styles for Earnings Analyzer */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Upload Area Styles */
.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-area:hover .upload-icon {
    color: #0d6efd;
}

/* File List Styles */
.file-item {
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #e9ecef !important;
    transform: translateX(5px);
}

/* Feature Box Styles */
.feature-box {
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Metric Card Styles */
.metric-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Sentiment Box Styles */
.sentiment-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

/* Category Card Styles */
.category-card {
    background: #fff;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Question Item Styles */
.question-item {
    background: #fff;
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Concern Item Styles */
.concern-item {
    background: #fff;
    transition: all 0.3s ease;
}

.concern-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Progress Bar Customizations */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Card Customizations */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: none;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border: none;
}

/* Button Customizations */
.btn {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Badge Customizations */
.badge {
    border-radius: 20px;
    padding: 0.5em 1em;
}

/* Alert Customizations */
.alert {
    border-radius: 10px;
    border: none;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #fff;
    }
    
    .upload-area {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .upload-area:hover {
        background-color: #495057;
    }
    
    .card {
        background-color: #343a40;
        color: #fff;
    }
    
    .metric-card,
    .sentiment-box,
    .category-card,
    .question-item,
    .concern-item {
        background-color: #495057 !important;
        color: #fff;
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .nav-tabs {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}