/* === GLOBAL STYLES === */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --dark: #1f2937;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --light: #f9fafb;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

.performance-page {
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-apply {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    align-self: flex-end;
}

.btn-download {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-download:hover {
    background-color: var(--primary);
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-light);
    color: white;
    margin-bottom: 1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* === NAVIGATION === */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--dark);
}

.navbar.scrolled {
    background-color: rgba(31, 41, 55, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo {
    height: 40px;
}

.navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.performance-hero {
    height: 500px;
    background:url('../resources/images/bg-05.png') center/cover no-repeat;
   color: #000;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #000;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.filter-controls {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* === METRICS SECTION === */
.metrics-section {
    padding: 80px 0;
    background-color: var(--white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metric-card {
    background-color: var(--light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
}

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

.metric-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-content h3 {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.metric-change {
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

.metric-change.neutral {
    color: var(--gray);
}

.progress {
    height: 6px;
    background-color: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary);
    height: 100%;
}

/* === CHARTS SECTION === */
.charts-section {
    padding: 80px 0;
    background-color: var(--light);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* === DESTINATION PERFORMANCE === */
.destination-performance {
    padding: 80px 0;
    background-color: var(--white);
}

.performance-table {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--primary);
    color: white;
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.destination-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.destination-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-indicator.positive {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.trend-indicator.negative {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.trend-indicator.neutral {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--gray);
}

/* === FEEDBACK SECTION === */
.feedback-section {
    padding: 80px 0;
    background-color: var(--light);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feedback-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rating {
    color: var(--secondary);
}

.date {
    font-size: 0.75rem;
    color: var(--gray);
}

.feedback-text {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 20px;
    position: relative;
}

.feedback-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--gray-light);
    font-family: serif;
    line-height: 1;
    position: absolute;
    top: -15px;
    left: -10px;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.trip {
    font-size: 0.75rem;
    color: var(--gray);
}

/* === DOWNLOAD SECTION === */
.download-section {
    padding: 80px 0;
    background-color: var(--white);
}

.download-card {
    background-color: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
}

.download-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-content h2 {
    margin-bottom: 15px;
}

.download-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
}

.download-image {
    height: 100%;
}

.download-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === FOOTER === */
.performance-footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
    font-size: 1.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--secondary);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .download-card {
        grid-template-columns: 1fr;
    }
    
    .download-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .btn-apply {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        margin-top: 15px;
        justify-content: center;
    }
}