/* Custom CSS for Multilingual Sentiment Analysis Flask App */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Footer Styling */
footer {
    margin-top: auto;
    position: relative;
}

footer .border-top {
    border-color: #495057 !important;
}

footer .copyright-section {
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

footer .copyright-section p {
    font-size: 1rem !important;
    margin: 0;
}

/* Social Links in Footer */
footer .btn-outline-light {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
}

footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

footer .btn-outline-light .bi-github:before {
    font-size: 1.1em;
}

footer .btn-outline-light .bi-linkedin:before {
    font-size: 1.1em;
    color: #0077b5;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

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

/* Analysis Forms */
.analysis-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

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

/* Results Display */
.results-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.sentiment-badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.sentiment-positive {
    background-color: var(--success-color);
    color: white;
}

.sentiment-negative {
    background-color: var(--danger-color);
    color: white;
}

.sentiment-neutral {
    background-color: var(--secondary-color);
    color: white;
}

/* Aspect Classification Display */
.aspect-display {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.aspect-primary {
    background: linear-gradient(45deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid var(--primary-color);
}

.aspect-secondary {
    background: linear-gradient(45deg, #fff3e0, #f1f8e9);
    border-left: 4px solid var(--warning-color);
}

/* Priority Level Badges */
.priority-high {
    background-color: var(--danger-color);
    color: white;
}

.priority-medium {
    background-color: var(--warning-color);
    color: var(--dark-bg);
}

.priority-low {
    background-color: var(--success-color);
    color: white;
}

/* Business Intelligence Cards */
.bi-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.bi-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bi-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

/* Progress Bars */
.progress {
    border-radius: 20px;
    height: 8px;
}

.progress-bar {
    border-radius: 20px;
}

/* Dashboard Charts */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Recommendation Lists */
.recommendation-item {
    background: white;
    border-left: 4px solid var(--info-color);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recommendation-critical {
    border-left-color: var(--danger-color);
}

.recommendation-high {
    border-left-color: var(--warning-color);
}

.recommendation-medium {
    border-left-color: var(--info-color);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-loaded {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-loaded:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.status-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-error:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.status-loading {
    background: linear-gradient(135deg, #ffc107, #f39c12);
    color: #1a1d29;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-loading:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Language Badges */
.language-badge {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(102, 16, 242, 0.15));
    color: #4dabf7;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.2rem;
    display: inline-block;
    border: 1px solid rgba(77, 171, 247, 0.3);
    transition: all 0.3s ease;
}

.language-badge:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.25), rgba(102, 16, 242, 0.25));
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(77, 171, 247, 0.3);
}

/* Classification Type Badges */
.classification-single {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.classification-dual {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.classification-mixed {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Processing Time Display */
.processing-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Model Info Display */
.model-info {
    background: linear-gradient(135deg, #1a1d29, #2d3748);  /* Enhanced dark gradient */
    color: #f8f9fa;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 
                0 4px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.model-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #0dcaf0);
    border-radius: 15px 15px 0 0;
}

.model-info h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.model-info .status-indicator.status-loaded {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(25, 135, 84, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.model-info .d-flex.justify-content-between {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.3rem;
}

.model-info .d-flex.justify-content-between:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.model-info .fw-bold.text-primary {
    color: #4dabf7 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.model-info .fw-bold.text-info {
    color: #74c0fc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.model-info .fw-bold.text-success {
    color: #51cf66 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.model-info .small.text-muted {
    color: #ced4da !important;
}

.model-info .small div {
    padding: 0.2rem 0;
    color: #51cf66;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Batch Results Table */
.batch-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.batch-table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.batch-table td {
    vertical-align: middle;
}

/* Loading Spinner */
.spinner-container {
    text-align: center;
    padding: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .analysis-form {
        padding: 1.5rem;
    }
    
    .bi-metric {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Modern Pill Badge Style for Nav Status */
.nav-status-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-left: 1rem;
}

.nav-status-pill.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.nav-status-pill.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

/* Enhanced Model Info Animations */
@keyframes checkmarkGlow {
    0% { 
        color: #51cf66;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    50% { 
        color: #69db7c;
        text-shadow: 0 1px 8px rgba(81, 207, 102, 0.6);
    }
    100% { 
        color: #51cf66;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

@keyframes statusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.model-info .small div {
    animation: checkmarkGlow 3s ease-in-out infinite;
}

.model-info .status-indicator.status-loaded {
    animation: statusPulse 2s ease-in-out infinite;
}

.model-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 
                0 6px 15px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Improved gradient overlay for better text contrast */
.model-info .fw-bold {
    background: linear-gradient(135deg, currentColor, rgba(255, 255, 255, 0.9));
    background-clip: text;
    -webkit-background-clip: text;
}

