/* G2B Tools Custom Styles */

:root {
    --primary-color: #00c896;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Override Bootstrap's bg-primary color */
.bg-primary {
    background-color: #00c896;
}

.btn-primary {
    background-color: #00c896;
    border-color: #00c896;
}

.btn-primary:hover {
    background-color: #00b085;
    border-color: #00b085;
}

.btn-primary:focus, .btn-primary.focus {
    background-color: #00b085;
    border-color: #00b085;
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 150, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Custom wide container for main page */
.container-wide {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1400px;
}

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

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
}

.rounded-circle {
    object-fit: cover;
}

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

.alert {
    border-radius: 10px;
    border: none;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease-in-out;
}

.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

footer {
    margin-top: auto;
}

footer a {
    transition: opacity 0.2s ease-in-out;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Animation for cards */
.card-body i {
    transition: transform 0.2s ease-in-out;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

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

/* Pagination Styles */
.pagination {
    margin: 0;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 200, 150, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 200, 150, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--secondary-color);
    background-color: white;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: white;
    border-color: #dee2e6;
    color: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

/* Items per page selector */
.form-select-sm {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        margin: 1px;
        font-size: 0.875rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .d-flex.align-items-center {
        justify-content: center;
    }
}

/* Pagination info styling */
.pagination-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Smooth transitions for pagination state changes */
.pagination .page-item {
    transition: all 0.2s ease-in-out;
}

/* ===== MOBILE OPTIMIZATION - ONLY APPLIES TO MOBILE ===== */

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Mobile Dashboard Table Optimization */
@media (max-width: 768px) {
    /* Remove horizontal scroll, show only essential columns */
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 1rem;
        overflow-x: visible; /* Remove horizontal scroll */
    }
    
    .table-responsive table {
        margin-bottom: 0;
        font-size: 0.9rem;
        table-layout: fixed; /* Fixed layout for uniform column widths */
        width: 100%;
    }
    
    /* Hide unnecessary columns on mobile - keep only 공고명 and 업무구분 */
    .table-responsive th:nth-child(1), /* 순번 - 숨김 */
    .table-responsive td:nth-child(1) {
        display: none;
    }
    
    .table-responsive th:nth-child(4), /* 수요기관 - 숨김 */
    .table-responsive td:nth-child(4) {
        display: none;
    }
    
    .table-responsive th:nth-child(5), /* 투찰가능업종 - 숨김 */
    .table-responsive td:nth-child(5) {
        display: none;
    }
    
    .table-responsive th:nth-child(6), /* 계약체결방법 - 숨김 */
    .table-responsive td:nth-child(6) {
        display: none;
    }
    
    .table-responsive th:nth-child(7), /* 추정가격 - 숨김 */
    .table-responsive td:nth-child(7) {
        display: none;
    }
    
    .table-responsive th:nth-child(8), /* 공고일자 - 숨김 */
    .table-responsive td:nth-child(8) {
        display: none;
    }
    
    .table-responsive th:nth-child(9), /* 마감일시 - 숨김 */
    .table-responsive td:nth-child(9) {
        display: none;
    }
    
    .table-responsive th:nth-child(10), /* 상태 - 숨김 */
    .table-responsive td:nth-child(10) {
        display: none;
    }
    
    .table-responsive th:nth-child(11), /* 액션 - 숨김 */
    .table-responsive td:nth-child(11) {
        display: none;
    }
    
    /* Style visible columns */
    
    /* 공고명 (2nd column) */
    .table-responsive th:nth-child(2),
    .table-responsive td:nth-child(2) {
        width: 70%; /* 공고명 - 더 넓게 */
        padding: 1rem 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
        vertical-align: top;
        min-height: 80px; /* Uniform minimum height */
    }
    
    .table-responsive td:nth-child(2) {
        height: 80px; /* Fixed height for uniformity */
        position: relative;
    }
    
    .table-responsive td:nth-child(2) .text-wrap {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit to 3 lines */
        line-clamp: 3; /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        word-break: break-word;
        height: 100%;
        padding-top: 0.25rem;
    }
    
    .table-responsive td:nth-child(2) .text-primary {
        color: #00c896;
        font-weight: 600;
        text-decoration: none;
    }
    
    .table-responsive td:nth-child(2) .text-primary:hover {
        color: #00b085;
        text-decoration: underline;
    }
    
    /* 업무구분 (3rd column) */
    .table-responsive th:nth-child(3),
    .table-responsive td:nth-child(3) {
        width: 30%; /* 업무구분 - 좁게 */
        padding: 1rem 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
        vertical-align: middle;
        text-align: center;
        min-height: 80px; /* Uniform minimum height */
    }
    
    .table-responsive td:nth-child(3) {
        height: 80px; /* Fixed height for uniformity */
        position: relative;
    }
    
    .table-responsive td:nth-child(3) .badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        border-radius: 15px;
        font-weight: 600;
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Mobile Table Headers */
    .table-responsive th {
        background-color: #f8f9fa;
        font-weight: 700;
        font-size: 0.9rem;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
        padding: 1rem 0.75rem;
        text-align: center;
        vertical-align: middle;
    }
    
    /* Mobile Table Rows */
    .table-responsive tbody tr {
        border-bottom: 1px solid #e9ecef;
    }
    
    .table-responsive tbody tr:last-child {
        border-bottom: none;
    }
    
    /* Mobile Table Row Hover */
    .table-responsive tbody tr:hover {
        background-color: #f8f9fa;
        transform: none; /* Disable transform on mobile for performance */
    }
    
    /* Mobile Table Borders */
    .table-responsive .table {
        border-collapse: separate;
        border-spacing: 0;
        margin-bottom: 0;
    }
    
    .table-responsive td {
        border-top: none;
        border-bottom: 1px solid #e9ecef;
        border-left: none;
        border-right: none;
    }
    
    /* Ensure text wrapping works properly */
    .table-responsive td:nth-child(2) a {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    
    .table-responsive td:nth-child(2) a:hover {
        text-decoration: underline;
    }
}

/* Mobile Filter Section */
@media (max-width: 768px) {
    .filter-card .card-body .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 1rem;
    }
    
    .filter-card .form-label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .filter-card .form-control,
    .filter-card .form-select {
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .filter-card .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Stack filter buttons vertically on small screens */
    .filter-card .col-md-2.d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-card .col-md-2.d-flex .btn {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Mobile Industry Dropdown Optimization */
@media (max-width: 768px) {
    .industry-dropdown-container {
        position: relative;
        z-index: 1060;
    }
    
    .industry-dropdown-menu {
        position: absolute;
        z-index: 9999;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border: 2px solid #00c896;
        border-radius: 8px;
        box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
        max-height: 200px; /* Reduced for mobile */
        overflow-y: auto;
        margin-top: 0.25rem;
    }
    
    .industry-dropdown-menu .dropdown-item {
        padding: 0.75rem 1rem;
        border: none;
        background: none;
        font-size: 0.95rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .industry-dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }
    
    .industry-dropdown-menu .dropdown-item:active {
        background-color: #00c896;
        color: white;
    }
}

/* Mobile Landing Page Hero Section */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh; /* Reduced height for mobile */
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
    }
}

/* Mobile Performance Stats Cards */
@media (max-width: 768px) {
    [name="perf_stat"] {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    [name="perf_stat"] .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    [name="perf_stat"] div[style*="width: 280px"] {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    [name="perf_stat"] .card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    [name="perf_stat"] .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    [name="perf_stat"] .fa-3x {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    [name="perf_stat"] h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    [name="perf_stat"] p {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    [name="perf_stat"] small {
        font-size: 0.9rem;
        text-align: center;
        margin-top: auto;
    }
}

/* Mobile Card Improvements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .card-header h5 {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Mobile Button Improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* iOS touch target size */
        font-weight: 600;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 1rem;
    }
    
    .btn-group-sm > .btn,
    .btn-sm {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        min-height: 44px; /* iOS touch target size */
        font-size: 1rem; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
    
    .input-group .form-control {
        font-size: 1rem;
    }
}

/* Mobile Badge and Status Improvements */
@media (max-width: 768px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
    }
    
    .badge-success,
    .bg-success {
        background-color: #28a745;
    }
    
    .badge-warning,
    .bg-warning {
        background-color: #ffc107;
        color: #212529;
    }
    
    .badge-danger,
    .bg-danger {
        background-color: #dc3545;
    }
}

/* Mobile Spacing Improvements */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .my-4 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem;
    }
    
    .pb-3 {
        padding-bottom: 1rem;
    }
}

/* Mobile Text Improvements */
@media (max-width: 768px) {
    .text-wrap {
        word-break: break-word;
        line-height: 1.4;
    }
    
    .small {
        font-size: 0.8rem;
    }
    
    .text-muted {
        color: #6c757d;
    }
}

/* Mobile Table Action Buttons */
@media (max-width: 768px) {
    .btn-outline-primary {
        border-color: #00c896;
        color: #00c896;
        font-weight: 600;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-outline-primary:hover {
        background-color: #00c896;
        border-color: #00c896;
        color: white;
    }
}

/* Mobile Navbar Brand & Hamburger Menu Fix */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .navbar-brand i {
        margin-right: 0.5rem;
    }
    
    /* Ensure hamburger menu works properly */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1.1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: transparent;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Mobile Main Page Optimizations */
@media (max-width: 768px) {
    /* Hero Section - Safari mobile fix */
    .container-fluid[style*="width: 60%"] {
        width: 95%;
        max-width: none;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -webkit-align-items: center;
    }
    
    /* Performance Stats Container - Force center alignment */
    .container-fluid.pb-3[style*="width: 60%"] {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
        position: relative;
        box-sizing: border-box;
    }
    
    /* Fix the row container for stats */
    .container-fluid.pb-3[style*="width: 60%"] .row {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
        justify-content: center;
        display: flex;
    }
    
    /* Fix the col-12 container */
    .container-fluid.pb-3[style*="width: 60%"] .col-12 {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: flex;
        justify-content: center;
    }
    
    /* Main heading */
    .display-2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
}

/* Showcase Container */
.showcase-container {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

/* Masonry Grid Layout - Responsive */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    grid-auto-rows: max-content;
    grid-auto-flow: row;
    width: 100%;
    clear: both;
    overflow: hidden;
}

/* Mobile - Single column */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Showcase Case Styles */
.showcase-case {
    margin-bottom: 0; /* Grid gap handles spacing */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.showcase-case .card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.showcase-case .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.showcase-card {
    cursor: pointer;
}

.accuracy-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.prediction-vs-actual {
    background: linear-gradient(45deg, #e3f2fd 50%, #f3e5f5 50%);
    border-radius: 8px;
    padding: 0.75rem;
}

.amount-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.predicted-amount {
    color: #1976d2;
    font-weight: 600;
}

.actual-amount {
    color: #388e3c;
    font-weight: 600;
}

.difference-indicator {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
}

.difference-excellent {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.difference-good {
    background-color: #bbdefb;
    color: #1565c0;
}

.difference-fair {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Dashboard Table Styles */
.dashboard-table .industry-dropdown-menu {
    display: none;
}

.dashboard-table th.col-bid-no {
    width: 100px;
}

.dashboard-table th.col-bid-name {
    width: 400px;
}

.dashboard-table th.col-business-div {
    width: 80px;
}

.dashboard-table th.col-agency {
    width: 250px;
}

.dashboard-table th.col-industry {
    width: 200px;
}

.dashboard-table th.col-contract-method {
    width: 90px;
}

.dashboard-table th.col-notice-date {
    width: 90px;
}

.dashboard-table th.col-bid-close {
    width: 90px;
}

.dashboard-table th.col-price {
    width: 100px;
}

.dashboard-table th.col-status {
    width: 60px;
}

.dashboard-table .bid-name-cell {
    max-width: 400px;
    word-break: break-word;
}

.dashboard-table .agency-cell {
    max-width: 250px;
}

.dashboard-table .industry-cell {
    max-width: 200px;
    word-break: break-word;
    font-size: 0.9em;
}

.dashboard-table .contract-method-cell {
    max-width: 80px;
}

/* Dashboard Table Mobile Optimization */
@media (max-width: 768px) {
    .dashboard-table {
        font-size: 0.8rem;
    }
    
    .dashboard-table th,
    .dashboard-table td {
        padding: 0.3rem 0.2rem;
        vertical-align: middle;
    }
    
    /* Hide unnecessary columns on mobile - Show only 공고명 and 업무구분 */
    .dashboard-table th.col-bid-no,
    .dashboard-table th.col-agency,
    .dashboard-table th.col-industry,
    .dashboard-table th.col-contract-method,
    .dashboard-table th.col-notice-date,
    .dashboard-table th.col-bid-close,
    .dashboard-table th.col-price,
    .dashboard-table th.col-status {
        display: none;
    }
    
    .dashboard-table tbody td:nth-child(1),
    .dashboard-table tbody td:nth-child(4),
    .dashboard-table tbody td:nth-child(5),
    .dashboard-table tbody td:nth-child(6),
    .dashboard-table tbody td:nth-child(7),
    .dashboard-table tbody td:nth-child(8),
    .dashboard-table tbody td:nth-child(9),
    .dashboard-table tbody td:nth-child(10) {
        display: none;
    }
    
    /* Adjust remaining column widths - Only 공고명 and 업무구분 */
    .dashboard-table th.col-bid-name {
        width: 85%;
    }
    
    .dashboard-table th.col-business-div {
        width: 25%;
    }
    
    .dashboard-table th,
    .dashboard-table td {
        padding: 0.3rem 0.1rem;
    }
    
    .dashboard-table .bid-name-cell {
        max-width: none;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .dashboard-table .agency-cell {
        max-width: 120px;
        font-size: 0.75rem;
    }
    
    .dashboard-table .industry-cell {
        max-width: 120px;
        font-size: 0.75rem;
        line-height: 1.1;
    }
}

/* Stat Card Container - Responsive */
.stat-card-container {
    width: 280px;
    flex-shrink: 0;
}

/* Performance Stats Cards - Universal Centering */
[name="perf_stat"] .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mobile responsive for stat cards */
@media (max-width: 768px) {
    .stat-card-container {
        width: 100%;
        max-width: 280px;
        flex: 1 1 auto;
        margin-bottom: 1rem;
    }
}

/* Main Header Section */
.main-header-section {
    padding-top: 3rem;
}

.ai-highlight {
    color: #00c896;
}

/* Mobile adjustments for main header */
@media (max-width: 768px) {
    .main-header-section {
        padding-top: 2rem;
    }
}

/* Navbar Toggle Fix */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Z-index and Collapse Fix */
.navbar {
    z-index: 1030;
    position: relative;
}

/* Navbar Collapse Styles - Just styling, JS handles display */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: inherit;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        padding: 0 1rem;
        width: 100%;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    }
    
    .navbar-collapse.opening {
        max-height: 400px;
        opacity: 1;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: white;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 0.375rem;
    }
}

    
    .showcase-case .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .showcase-case .card-header {
        padding: 1rem 1.25rem 0.75rem;
        border-bottom: none;
        background: transparent;
    }
    
    .showcase-case .card-header h6 {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
    }
    
    .showcase-case .card-body {
        padding: 0.75rem 1.25rem 1.25rem;
    }
    
    .showcase-case .prediction-vs-actual {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .showcase-case .amount-comparison {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .showcase-case .amount-comparison > div {
        flex: 1;
    }
    
    .showcase-case .mx-2 {
        margin: 0;
        transform: rotate(90deg);
    }
    
    .showcase-case .predicted-amount,
    .showcase-case .actual-amount {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .showcase-case .difference-indicator {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
        font-weight: 600;
    }

/* Mobile Section Spacing */
@media (max-width: 768px) {
    .container-wide {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .my-5 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}


