/*
 * Maritime Theme for Liberty Dreams Job Portal (v8 - Unified Buttons & Responsive Fixes)
 * ------------------------------------------------------------------
 * Updated for consistent button styles, new contrast background, and responsive wave fix.
 */

/* --- DEFINICIÓN DE COLORES --- */
:root {
    --bs-primary-maritime: #003399; /* Azul marino principal */
    --bs-primary-hover: #002266;    /* Azul más oscuro para hover */
    --bs-success-maritime: #28a745; /* Verde para botones y éxito */
    --bs-warning-maritime: #ffc107; /* Amarillo para acentos */
    --bs-bg-content: #f4f7fa;       /* Fondo de secciones y onda hero */
    --bs-bg-contrast: #e6effa;      /* Fondo contraste para recruitment/staffing */
    --bs-text-dark: #333333;        /* Texto oscuro */
    --bs-text-muted: #6c757d;       /* Texto secundario */
}

/* === 1. ESTILOS GLOBALES Y DE CABECERA === */
body {
    background-color: var(--bs-bg-content);
    font-family: 'Roboto', 'Source Sans Pro', sans-serif;
    color: var(--bs-text-dark);
    overflow-x: hidden;
    padding-top: 70px;
}

/* --- Clases de Utilidad --- */
.bg-primary-maritime {
    background-color: var(--bs-primary-maritime) !important;
}
.text-primary-maritime {
    color: var(--bs-primary-maritime) !important;
}
.bg-success-maritime {
    background-color: var(--bs-success-maritime) !important;
}
.text-success-maritime {
    color: var(--bs-success-maritime) !important;
}
.bg-warning-maritime {
    background-color: var(--bs-warning-maritime) !important;
}
.bg-contrast {
    background-color: var(--bs-bg-contrast) !important;
}
.btn-primary-maritime {
    background-color: var(--bs-primary-maritime);
    border-color: var(--bs-primary-maritime);
    color: #fff !important;
}
.btn-primary-maritime:hover {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}
.btn-outline-primary-maritime {
    color: var(--bs-primary-maritime);
    border-color: var(--bs-primary-maritime);
}
.btn-outline-primary-maritime:hover {
    color: #fff;
    background-color: var(--bs-primary-maritime);
    border-color: var(--bs-primary-maritime);
}

/* Unified Button Styles */
.btn {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}
.btn.btn-success-maritime {
    background-color: var(--bs-success-maritime);
    border-color: var(--bs-success-maritime);
    color: #fff !important;
}
.btn.btn-success-maritime:hover {
    background-color: #218838;
    border-color: #218838;
}
.btn.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
}
.btn i {
    margin-right: 8px;
}

/* Header */
.main-header {
    background-color: var(--bs-primary-maritime) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar {
    background-color: var(--bs-primary-maritime) !important;
    padding: 0;
    min-height: 60px;
}
.navbar-brand {
    padding: 5px 15px;
    height: 60px;
    display: flex;
    align-items: center;
}
.navbar-brand .logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}
.navbar-toggler {
    border: 2px solid #fff;
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}
.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#main-navbar {
    background-color: var(--bs-primary-maritime);
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .auth-mobile-visible .btn-auth {
        font-size: 14px;
        padding: 5px 8px;
        margin: 0 2px;
    }
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 16px;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.active .nav-link {
    background-color: var(--bs-primary-hover) !important;
}
.navbar-nav .nav-link i {
    margin-right: 8px;
}
.language-flags .nav-link {
    padding: 0.5rem 0.5rem;
}
.flag-icon-fallback {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    opacity: 0.7;
    border-radius: 3px;
    transition: opacity 0.3s ease;
}
.flag-icon-fallback:hover,
.flag-icon-fallback.active-flag {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff;
}
.btn-auth {
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 10px 5px;
    font-weight: 600;
    color: #fff !important;
    background-color: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-auth:hover {
    background-color: #fff !important;
    color: var(--bs-primary-maritime) !important;
}
.btn-register {
    background-color: var(--bs-success-maritime);
    border-color: var(--bs-success-maritime);
    color: #fff !important;
}
.btn-register:hover {
    background-color: #218838 !important;
    border-color: #218838;
}
.nav-link.btn-auth-mobile {
    padding: 10px 15px;
    font-weight: 600;
    color: #fff !important;
    border-top: 1px solid #0044cc;
}
.nav-link.btn-auth-mobile.btn-register-mobile {
    background-color: var(--bs-success-maritime);
}
.nav-link.btn-auth-mobile.btn-register-mobile:hover {
    background-color: #218838 !important;
}
.close-menu .btn-close-menu {
    color: #fff !important;
    font-size: 16px;
    padding: 10px 15px;
    background-color: var(--bs-primary-hover);
    text-align: right;
    border-bottom: 1px solid #0044cc;
}
.close-menu .btn-close-menu:hover {
    background-color: #001133 !important;
}

/* === 2. HERO SECTION === */
.hero-section {
    background-color: var(--bs-primary-maritime);
    color: #fff;
    padding: 100px 0 120px 0;
    text-align: center;
    position: relative;
    min-height: 400px; /* Prevent wave clipping */
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120"%3E%3Cpath fill="%23f4f7fa" fill-opacity="1" d="M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,69.3C960,64,1056,64,1152,69.3C1248,75,1344,85,1392,90.7L1440,96L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 120px;
}
.hero-content h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 300;
}
.search-form {
    max-width: 600px;
    margin: 0 auto;
}
.search-form .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
}
.search-form .form-control {
    border-radius: 50px 0 0 50px !important;
    height: 45px;
    font-size: 16px;
    border: none;
}
.search-form .btn {
    border-radius: 0 50px 50px 0 !important;
    height: 45px;
    padding: 0 25px;
    font-size: 16px;
}

/* === 3. SECCIONES DE CONTENIDO === */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}
.section-header h2 {
    font-size: 2.5em;
    color: var(--bs-primary-maritime);
    font-weight: 600;
    margin-bottom: 20px;
}
.section-header h2 i {
    margin-right: 10px;
}
.section-header p {
    font-size: 1.2em;
    color: var(--bs-text-muted);
    max-width: 800px;
    margin: 0 auto;
}
.section-header-simple {
    margin-bottom: 20px;
    text-align: center;
}
.section-header-simple h2 {
    font-size: 2.2em;
    color: var(--bs-primary-maritime);
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    display: inline-block;
}
.section-header-simple h2 i {
    margin-right: 10px;
}
.maritime-job-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
}
.maritime-job-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.maritime-job-box .attachment-img {
    width: 100px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-right: 1px solid #eee;
    padding: 10px;
    flex-shrink: 0;
}
.maritime-job-box .attachment-img img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.maritime-job-box .attachment-icon {
    font-size: 40px;
    color: var(--bs-text-muted);
}
.maritime-job-box .card-body {
    padding: 15px;
    flex-grow: 1;
}
.maritime-job-box .attachment-heading a {
    font-size: 1.3em;
    color: var(--bs-primary-maritime);
    font-weight: 600;
    text-decoration: none;
}
.maritime-job-box .attachment-heading a:hover {
    text-decoration: underline;
}
.maritime-job-box .company-name {
    font-weight: 600;
    color: var(--bs-text-dark);
}
.maritime-job-box .salary {
    font-weight: 600;
    color: #fff;
    background-color: var(--bs-success-maritime);
}
.maritime-job-box .text-secondary {
    color: var(--bs-text-muted) !important;
    font-size: 0.95em;
}
.maritime-job-box .vessel-type {
    font-style: italic;
    color: #0056b3;
    font-size: 0.9em;
}
.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--bs-primary-maritime);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-card i {
    font-size: 3em;
    color: var(--bs-primary-maritime);
    margin-bottom: 15px;
}
.feature-card h4 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--bs-primary-hover);
}
.feature-card p {
    font-size: 1.05em;
    color: var(--bs-text-muted);
    line-height: 1.6;
}
.recruitment-section, .staffing-section {
    background: var(--bs-bg-contrast);
    padding: 40px 0 60px 0;
    border-top: 1px solid #dce8fa;
    border-bottom: 1px solid #dce8fa;
}
.small-box {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.small-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.small-box .card-body {
    padding: 20px;
}
.small-box h3 {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.small-box p {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 0;
}
.small-box .icon {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 15px;
    right: 15px;
}
.bg-aqua {
    background-color: #00c0ef !important;
}
.bg-green {
    background-color: var(--bs-success-maritime) !important;
}
.bg-yellow {
    background-color: var(--bs-warning-maritime) !important;
}
.bg-blue {
    background-color: var(--bs-primary-maritime) !important;
}
.about-img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
}
.about-text p.lead {
    font-size: 1.25em;
    color: var(--bs-text-dark);
}
.about-text p.text-muted {
    font-size: 1.1em;
    color: var(--bs-text-muted);
}

/* === 4. FOOTER === */
.wave-bg-footer {
    position: relative;
    width: 100%;
    height: 50px;
    top: 50px;
    margin-bottom: -50px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 50"%3E%3Cpath fill="%23003399" fill-opacity="1" d="M0,32L48,40C96,48,192,64,288,64C384,64,480,48,576,42.7C672,37,768,43,864,53.3C960,64,1056,80,1152,85.3C1248,91,1344,85,1392,82.7L1440,80L1440,100L1392,100C1344,100,1248,100,1152,100C1056,100,960,100,864,100C768,100,672,100,576,100C480,100,384,100,288,100C192,100,96,100,48,100L0,100Z"%3E%3C/path%3E%3C/svg%3E') no-repeat center;
    background-size: cover;
    z-index: 2;
}
.main-footer {
    background-color: var(--bs-primary-maritime);
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
}
.footer-col {
    margin-bottom: 30px;
}
.main-footer .footer-logo {
    width: 200px;
    margin-bottom: 15px;
}
.main-footer h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #0056b3;
    padding-bottom: 10px;
}
.main-footer p, .main-footer a {
    color: #D3E0EA;
    font-size: 14px;
}
.main-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.main-footer .list-unstyled li {
    margin-bottom: 10px;
}
.main-footer .copyright-text {
    margin-top: 15px;
    font-size: 14px;
}
.main-footer .gdpr-text {
    font-size: 12px;
    color: #A3C9E0;
    font-style: italic;
}

/* === 5. RESPONSIVE === */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 15px 100px 15px;
        min-height: 350px;
        background-size: 100% 100px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    .section-header h2, .section-header-simple h2 {
        font-size: 2em;
    }
    .main-footer .footer-col {
        text-align: center;
    }
    .maritime-job-box {
        flex-direction: column;
        min-height: auto;
    }
    .maritime-job-box .attachment-img {
        width: 100%;
        height: 120px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .maritime-job-box .card-body {
        text-align: left;
    }
    .small-box h3 {
        font-size: 2em;
    }
}
@media (min-width: 992px) {
    .navbar-nav .close-menu {
        display: none !important;
    }
}

/* === 6. DASHBOARD & SIDEBAR RESPONSIVE FIXES === */

/* Sidebar responsive fixes */
.sidebar-card {
    min-width: 250px;
}

/* Mobile adjustments for sidebar */
@media (max-width: 992px) {
    .sidebar-card {
        margin-bottom: 20px !important;
    }
    
    .sidebar-card .card-header {
        padding: 20px 15px !important;
    }
    
    .sidebar-card .card-body {
        padding: 15px !important;
    }
    
    .sidebar-card .avatar-placeholder,
    .sidebar-card .card-header img {
        width: 60px !important;
        height: 60px !important;
        font-size: 18px !important;
    }
    
    .sidebar-card .card-header h6 {
        font-size: 16px !important;
    }
    
    .sidebar-card .card-header p {
        font-size: 13px !important;
    }
    
    .sidebar-card .list-group-item {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .sidebar-card .list-group-item i {
        font-size: 16px !important;
        margin-right: 10px !important;
    }
}

@media (max-width: 768px) {
    .sidebar-card {
        margin: 0 auto 20px !important;
        max-width: 100% !important;
    }
    
    .sidebar-card .row.text-center.mb-3 .col-6 {
        padding: 0 5px !important;
    }
    
    .sidebar-card .row.text-center.mb-3 .border.rounded.p-2 {
        padding: 10px 5px !important;
    }
    
    .sidebar-card .row.text-center.mb-3 h5 {
        font-size: 18px !important;
    }
    
    .sidebar-card .row.text-center.mb-3 small {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .sidebar-card {
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .sidebar-card .card-header {
        border-radius: 10px 10px 0 0 !important;
    }
}

/* Dashboard layout responsive fixes */
@media (max-width: 1200px) {
    .dashboard-content .col-lg-9 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 992px) {
    .dashboard-content .content-wrapper {
        padding-top: 20px !important;
    }
    
    .dashboard-content .hero-section {
        padding: 60px 0 80px 0 !important;
    }
    
    .dashboard-content .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .dashboard-content .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    /* Stats adjustments */
    .dashboard-content .row.g-4.mb-4 .col-md-3 {
        margin-bottom: 15px !important;
    }
    
    .dashboard-content .row.g-4.mb-4 .card {
        height: auto !important;
        min-height: 120px !important;
    }
    
    .dashboard-content .row.g-4.mb-4 .card-body {
        padding: 15px !important;
    }
    
    .dashboard-content .row.g-4.mb-4 .fa-2x {
        font-size: 1.5em !important;
    }
    
    .dashboard-content .row.g-4.mb-4 h3 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .dashboard-content .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Hero section */
    .dashboard-content .hero-section {
        padding: 40px 0 60px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .dashboard-content .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .dashboard-content .hero-section .display-5 {
        font-size: 2rem !important;
    }
    
    /* Stats in 2 columns */
    .dashboard-content .row.g-4.mb-4 .col-md-3.col-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 10px !important;
    }
    
    .dashboard-content .row.g-4.mb-4 .card {
        margin: 0 5px !important;
    }
    
    /* Main content full width */
    .dashboard-content .col-lg-9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Content cards */
    .dashboard-content .col-lg-8, 
    .dashboard-content .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Compact tables */
    .dashboard-content .table-responsive {
        margin: 0 !important;
        width: 100% !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 5px !important;
    }
    
    /* Hide less important columns on mobile */
    .dashboard-content .table th:nth-child(3),
    .dashboard-content .table td:nth-child(3),
    .dashboard-content .table th:nth-child(4),
    .dashboard-content .table td:nth-child(4) {
        display: none !important;
    }
    
    .dashboard-content .table th,
    .dashboard-content .table td {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
    
    /* Button adjustments */
    .dashboard-content .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    /* Alerts */
    .dashboard-content .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .dashboard-content .alert .btn {
        margin-top: 8px !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .dashboard-content .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .dashboard-content .hero-section {
        padding: 30px 0 40px 0 !important;
    }
    
    .dashboard-content .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-content .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .dashboard-content .badge.fs-6 {
        font-size: 0.85rem !important;
    }
    
    /* Stats in 1 column */
    .dashboard-content .row.g-4.mb-4 .col-md-3.col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .dashboard-content .row.g-4.mb-4 .card {
        margin: 0 !important;
    }
    
    /* Hide even more columns on very small screens */
    .dashboard-content .table th:nth-child(2),
    .dashboard-content .table td:nth-child(2) {
        display: none !important;
    }
    
    /* Small button adjustments */
    .dashboard-content .btn-sm {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    /* Text size adjustments */
    .dashboard-content .card-header h5 {
        font-size: 16px !important;
    }
    
    .dashboard-content .card-body {
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Improve readability on mobile */
@media (max-width: 768px) {
    .dashboard-content body {
        font-size: 14px !important;
    }
    
    .dashboard-content h1, 
    .dashboard-content .h1 { font-size: 1.8rem !important; }
    
    .dashboard-content h2, 
    .dashboard-content .h2 { font-size: 1.5rem !important; }
    
    .dashboard-content h3, 
    .dashboard-content .h3 { font-size: 1.3rem !important; }
    
    .dashboard-content h4, 
    .dashboard-content .h4 { font-size: 1.1rem !important; }
    
    .dashboard-content h5, 
    .dashboard-content .h5 { font-size: 1rem !important; }
    
    .dashboard-content h6, 
    .dashboard-content .h6 { font-size: 0.9rem !important; }
}

/* Prevent horizontal scroll */
@media (max-width: 576px) {
    .dashboard-content body {
        overflow-x: hidden;
    }
    
    .dashboard-content .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .dashboard-content .table-responsive {
        margin: 0 -10px;
        padding: 0 10px;
    }
}

/* Ensure images don't overflow */
.dashboard-content .img-fluid,
.dashboard-content img {
    max-width: 100% !important;
    height: auto !important;
}
/* === 6. SIDEBAR WIDTH FIXES FOR DESKTOP === */

/* Para pantallas grandes (PC) - Sidebar más ancha */
@media (min-width: 992px) {
    .col-lg-3 .sidebar-card {
        min-width: 280px !important;
        width: 100% !important;
    }
    
    /* Asegurar que las estadísticas en la sidebar se vean bien */
    .sidebar-card .row.text-center.mb-3 .col-6 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .sidebar-card .row.text-center.mb-3 h5 {
        font-size: 1.25rem !important;
    }
    
    .sidebar-card .card-header h6 {
        font-size: 1.1rem !important;
    }
    
    .sidebar-card .list-group-item {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1200px) {
    .col-lg-3 .sidebar-card {
        min-width: 300px !important;
    }
    
    .sidebar-card .card-header {
        padding: 25px 20px !important;
    }
    
    .sidebar-card .avatar-placeholder,
    .sidebar-card .card-header img {
        width: 90px !important;
        height: 90px !important;
        font-size: 28px !important;
    }
}

/* Para el dashboard en general - asegurar buen espaciado */
@media (min-width: 992px) {
    .dashboard-content .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        padding-right: 15px !important;
    }
    
    .dashboard-content .col-lg-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
        padding-left: 15px !important;
    }
    
    /* Asegurar que las cards tengan buen espaciado */
    .dashboard-content .card {
        margin-bottom: 20px !important;
    }
}

/* Si aún se ve estrecha, podemos hacer la sidebar más ancha */
@media (min-width: 992px) and (max-width: 1199px) {
    .col-lg-3 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }
    
    .col-lg-9 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }
}
/* Dashboard Layout Fixes */
.dashboard-wrapper {
    background-color: #f5f7fa !important;
    min-height: calc(100vh - 130px);
}

/* Dashboard Header (Hero Section) */
.dashboard-header {
    background: linear-gradient(135deg, var(--bs-primary-maritime) 0%, #002266 100%) !important;
    color: white;
    padding: 40px 0 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.dashboard-header .welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
}

.dashboard-header .profile-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    background-color: white !important;
    flex-shrink: 0;
}

.dashboard-header .profile-avatar-placeholder {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 32px !important;
    font-weight: bold !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    flex-shrink: 0;
}

.dashboard-header .welcome-text {
    flex: 1;
    min-width: 0; /* Permite que el texto se ajuste */
}

.dashboard-header .welcome-text h1 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-header .welcome-text p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px !important;
}

.stat-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border-left: 4px solid var(--bs-primary-maritime) !important;
    border: 1px solid #e9ecef !important;
    height: 100%;
}

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

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card.applications .stat-icon {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: var(--bs-primary-maritime) !important;
}

.stat-card.pending .stat-icon {
    background-color: rgba(253, 126, 20, 0.1) !important;
    color: var(--bs-warning-maritime) !important;
}

.stat-card.certificates .stat-icon {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: var(--bs-success-maritime) !important;
}

.stat-card.documents .stat-icon {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
}

.stat-card .stat-value {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    line-height: 1;
    color: #333 !important;
}

.stat-card .stat-label {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Sidebar Styles for Dashboard */
.sidebar-card {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid #e9ecef !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 25px !important;
}

.sidebar-card .card-header {
    background-color: var(--bs-primary-maritime) !important;
    color: white !important;
    text-align: center !important;
    padding: 25px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.sidebar-card .card-header img,
.sidebar-card .card-header .avatar-placeholder {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
}

.sidebar-card .card-header .avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 32px !important;
    font-weight: bold !important;
}

.sidebar-card .card-header h6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.sidebar-card .card-header p {
    font-size: 14px !important;
    opacity: 0.9 !important;
    margin-bottom: 10px !important;
}

.sidebar-card .badge {
    font-size: 12px !important;
    padding: 5px 10px !important;
    font-weight: 600 !important;
}

.sidebar-card .card-body {
    padding: 20px !important;
}

.sidebar-card .row.text-center.mb-3 {
    margin-left: -5px;
    margin-right: -5px;
}

.sidebar-card .row.text-center.mb-3 .col-6 {
    padding-left: 5px;
    padding-right: 5px;
}

.sidebar-card .border.rounded.p-2 {
    border: 1px solid #e9ecef !important;
    padding: 12px 8px !important;
    height: 100%;
}

.sidebar-card .border.rounded.p-2 h5 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    color: var(--bs-primary-maritime) !important;
}

.sidebar-card .border.rounded.p-2 small {
    font-size: 12px !important;
    color: #6c757d !important;
}

/* Sidebar Navigation */
.sidebar-card .list-group {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

.sidebar-card .list-group-item {
    border-left: none !important;
    border-right: none !important;
    border-color: #e9ecef !important;
    padding: 14px 20px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar-card .list-group-item:hover {
    background-color: #f8f9fa !important;
    color: var(--bs-primary-maritime) !important;
    padding-left: 25px !important;
}

.sidebar-card .list-group-item.active {
    background-color: var(--bs-primary-maritime) !important;
    border-color: var(--bs-primary-maritime) !important;
    color: white !important;
    font-weight: 600 !important;
}

.sidebar-card .list-group-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px !important;
    font-size: 16px !important;
}

.sidebar-card .list-group-item .badge {
    margin-left: auto !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
}

.sidebar-card .list-group-item.text-danger {
    color: #dc3545 !important;
}

.sidebar-card .list-group-item.text-danger:hover {
    color: #bd2130 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.sidebar-card .card-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 15px 20px !important;
    font-size: 12px !important;
    color: #6c757d !important;
    line-height: 1.4;
}

/* Section Cards (for completion, applications, etc.) */
.section-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    margin-bottom: 25px !important;
    border: 1px solid #e9ecef !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--bs-primary-maritime) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* Completion Progress */
.progress-container {
    margin-bottom: 15px;
}

.progress-bar-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary-maritime), var(--bs-primary-hover)) !important;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Completion Details */
.completion-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.completion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.completion-item:hover {
    background-color: #e9ecef;
}

.completion-item i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.completion-item.complete i {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: var(--bs-success-maritime) !important;
}

.completion-item.incomplete i {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.completion-item-documents {
    grid-column: 1 / -1;
    background-color: #e8f4fd !important;
    border-left: 3px solid var(--bs-primary-maritime) !important;
}

.completion-category {
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-top: 15px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
    grid-column: 1 / -1;
}

/* Alert Cards */
.alert-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    margin-bottom: 20px !important;
    border-left: 4px solid var(--bs-warning-maritime) !important;
    border: 1px solid #e9ecef !important;
}

.alert-card.danger {
    border-left-color: #dc3545 !important;
}

.alert-card.success {
    border-left-color: var(--bs-success-maritime) !important;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.alert-header i {
    font-size: 18px;
}

.alert-card.danger .alert-header i {
    color: #dc3545 !important;
}

.alert-card.warning .alert-header i {
    color: var(--bs-warning-maritime) !important;
}

.alert-card.success .alert-header i {
    color: var(--bs-success-maritime) !important;
}

.alert-card p {
    font-size: 14px;
    margin-bottom: 12px;
}

/* Applications Table */
.applications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.applications-table th {
    text-align: left;
    padding: 10px 12px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.applications-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.applications-table tr:hover {
    background-color: #f8f9fa;
}

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

.status-pending {
    background-color: rgba(253, 126, 20, 0.1) !important;
    color: var(--bs-warning-maritime) !important;
}

.status-review {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: var(--bs-primary-maritime) !important;
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.status-accepted {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: var(--bs-success-maritime) !important;
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--bs-primary-maritime);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.job-card .job-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--bs-primary-maritime);
    line-height: 1.3;
}

.job-card .company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.job-card .company-logo {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    object-fit: cover;
}

.job-card .salary {
    color: var(--bs-success-maritime);
    font-weight: 600;
    font-size: 12px;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.quick-action {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.quick-action:hover {
    border-color: var(--bs-primary-maritime);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.quick-action i {
    font-size: 20px;
    color: var(--bs-primary-maritime);
    margin-bottom: 8px;
}

.quick-action div {
    font-size: 12px;
    font-weight: 500;
}

/* Expiring Items */
.expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.expiring-item:last-child {
    border-bottom: none;
}

.expiring-item span:first-child {
    font-size: 13px;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.days-left {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.days-left.warning {
    background-color: rgba(253, 126, 20, 0.1) !important;
    color: var(--bs-warning-maritime) !important;
}

.days-left.danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

/* Responsive Adjustments for Dashboard */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .completion-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-header .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-header .profile-avatar,
    .dashboard-header .profile-avatar-placeholder {
        width: 70px !important;
        height: 70px !important;
        font-size: 28px !important;
    }
    
    .dashboard-header .welcome-text h1 {
        font-size: 24px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .completion-details {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        margin-bottom: 20px !important;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 30px 0 20px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .dashboard-header .welcome-text h1 {
        font-size: 20px !important;
    }
    
    .dashboard-header .welcome-text p {
        font-size: 14px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card .stat-value {
        font-size: 24px !important;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dashboard-header .profile-avatar,
    .dashboard-header .profile-avatar-placeholder {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .dashboard-header .welcome-text h1 {
        font-size: 18px !important;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 22px !important;
    }
    
    .section-card {
        padding: 15px !important;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-table {
        display: block;
        overflow-x: auto;
    }
}
/* documents.css - Estilos específicos para la página de documentos */

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

.content-wrapper {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
}

.documents-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.documents-header {
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
    color: white;
    padding: 30px;
    border-bottom: 1px solid #eaeaea;
}

.documents-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    color: #003399;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-content {
    padding: 25px;
    background: #fff;
}

.form-label {
    color: #003399;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 10px 12px;
    height: auto;
}

.btn-primary {
    background-color: #003399;
    border-color: #003399;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
}

.document-row, .certificate-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    position: relative;
    transition: all 0.3s ease;
}

.certificate-bundle {
    background: #f0f8ff;
    border-left: 4px solid #003399;
}

.certificate-stcw {
    background: #fff8f0;
    border-left: 4px solid #fd7e14;
}

.certificate-national {
    background: #f8fff0;
    border-left: 4px solid #28a745;
}

.verified-document {
    border-left: 4px solid #28a745;
    background: linear-gradient(to right, #f8fff8, #f8f9fa);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.status-verified {
    background: #28a745;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-expired {
    background: #dc3545;
    color: white;
}

.status-expiring {
    background: #fd7e14;
    color: white;
}

.document-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #003399;
    background: #e8f4fd;
}

.certificate-category {
    font-weight: bold;
    color: #003399;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.verification-stamp {
    position: absolute;
    top: -10px;
    right: -10px;
    transform: rotate(15deg);
    opacity: 0.1;
    z-index: 1;
    font-size: 72px;
    color: #28a745;
}

.verification-details {
    background: #e8f5e8;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

.modules-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
}

.module-item {
    margin-bottom: 10px;
    padding: 10px;
    border-left: 3px solid #007bff;
    background: #f8f9fa;
}

.required:after {
    content: " *";
    color: #dc3545;
}

.info-alert {
    background: #e8f4fd;
    border-left: 4px solid #003399;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.country-flag {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.loading {
    color: #6c757d;
    text-align: center;
    padding: 10px;
}

/* File preview styles */
.file-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview i {
    color: #dc3545;
    font-size: 20px;
}

/* Responsive adjustments for documents page */
@media (max-width: 768px) {
    .documents-header {
        padding: 20px 15px;
    }
    
    .documents-header h1 {
        font-size: 22px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .document-row,
    .certificate-row {
        padding: 12px;
    }

/* === MY APPLICATIONS PAGE STYLES === */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bs-primary-maritime) 0%, #002266 100%);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--bs-primary-maritime);
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
    color: var(--bs-primary-maritime);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-section .filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: var(--bs-primary-maritime);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 153, 0.25);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Applications Table Container */
.applications-table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Styling */
#applicationsTable {
    width: 100%;
    border-collapse: collapse;
}

#applicationsTable th {
    background-color: #f8f9fa;
    color: var(--bs-primary-maritime);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    white-space: nowrap;
}

#applicationsTable td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.9rem;
}

#applicationsTable tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-under-review {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-accepted {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Job Title Column */
.job-title-cell {
    max-width: 250px;
}

.job-title {
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-bottom: 5px;
    line-height: 1.3;
    font-size: 0.95rem;
}

.vessel-type {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    font-style: italic;
}

/* Company Column */
.company-cell {
    max-width: 200px;
}

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

.company-logo {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    padding: 2px;
    background: white;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Salary Column */
.salary {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

/* Date Column */
.date-cell {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Actions Column */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 15px;
}

.pagination {
    margin: 0;
}

.page-item.active .page-link {
    background-color: var(--bs-primary-maritime);
    border-color: var(--bs-primary-maritime);
}

.page-link {
    color: var(--bs-primary-maritime);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: var(--bs-primary-maritime);
}

/* No Applications */
.no-applications {
    text-align: center;
    padding: 50px 20px;
}

.no-applications i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.no-applications h5 {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-applications p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

/* Alert Info */
.alert-info {
    background-color: #e8f4fd;
    border-color: #b6d4fe;
    color: var(--bs-primary-maritime);
    border-radius: 8px;
    padding: 15px;
}

.alert-info i {
    color: var(--bs-primary-maritime);
}

/* Responsive */
@media (max-width: 991.98px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-group {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .btn-icon {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .pagination-info {
        display: none;
    }
    
    #applicationsTable th,
    #applicationsTable td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .status-badge {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.1rem;
    }
    
    .job-title {
        font-size: 0.9rem;
    }
    
    .company-name {
        font-size: 0.85rem;
    }
}

/* === MY APPLICATIONS PAGE STYLES - Bootstrap 5 === */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bs-primary-maritime) 0%, #002266 100%);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--bs-primary-maritime);
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
    color: var(--bs-primary-maritime);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-section .filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: var(--bs-primary-maritime);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 153, 0.25);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Applications Table Container */
.applications-table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Styling */
#applicationsTable {
    width: 100%;
    border-collapse: collapse;
}

#applicationsTable th {
    background-color: #f8f9fa;
    color: var(--bs-primary-maritime);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    white-space: nowrap;
}

#applicationsTable td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.9rem;
}

#applicationsTable tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-under-review {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-accepted {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Job Title Column */
.job-title-cell {
    max-width: 250px;
}

.job-title {
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-bottom: 5px;
    line-height: 1.3;
    font-size: 0.95rem;
}

.vessel-type {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    font-style: italic;
}

/* Company Column */
.company-cell {
    max-width: 200px;
}

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

.company-logo {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    padding: 2px;
    background: white;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Salary Column */
.salary {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

/* Date Column */
.date-cell {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Actions Column */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 15px;
}

.page-item.active .page-link {
    background-color: var(--bs-primary-maritime);
    border-color: var(--bs-primary-maritime);
}

.page-link {
    color: var(--bs-primary-maritime);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: var(--bs-primary-maritime);
}

/* No Applications */
.no-applications {
    text-align: center;
    padding: 50px 20px;
}

.no-applications i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.no-applications h5 {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-applications p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

/* Alert Info */
.alert-info {
    background-color: #e8f4fd;
    border-color: #b6d4fe;
    color: var(--bs-primary-maritime);
    border-radius: 8px;
    padding: 15px;
}

.alert-info i {
    color: var(--bs-primary-maritime);
}

/* Responsive */
@media (max-width: 991.98px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .btn-icon {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-buttons .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .pagination-info {
        display: none;
    }
    
    #applicationsTable th,
    #applicationsTable td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .status-badge {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.1rem;
    }
    
    .job-title {
        font-size: 0.9rem;
    }
    
    .company-name {
        font-size: 0.85rem;
    }
}
/* === AJUSTES PARA PÁGINAS INTERNAS === */

/* Asegurar que el wrapper tenga el mismo fondo */
.wrapper {
    background-color: #f5f7fa !important;
    min-height: calc(100vh - 130px);
}

/* Hero Section para páginas internas */
.dashboard-header .welcome-text h1 {
    font-size: 28px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.dashboard-header .welcome-text p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 16px;
}

/* Stats Grid para páginas internas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px !important;
}

.stat-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border-left: 4px solid var(--bs-primary-maritime) !important;
    border: 1px solid #e9ecef !important;
    height: 100%;
    text-align: center;
}

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

.stat-card .stat-value {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    line-height: 1;
    color: #333 !important;
}

.stat-card .stat-label {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Sidebar responsive para páginas internas */
@media (max-width: 992px) {
    .dashboard-header .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-header .profile-avatar,
    .dashboard-header .profile-avatar-placeholder {
        width: 70px !important;
        height: 70px !important;
        font-size: 28px !important;
    }
    
    .dashboard-header .welcome-text h1 {
        font-size: 24px !important;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}
/* === MY APPLICATIONS - IMPROVED STATS SECTION === */

/* Stats Section Container */
.stats-section {
    margin-bottom: 30px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid;
}

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

.stats-card.total {
    border-left-color: var(--bs-primary-maritime);
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.05) 0%, rgba(0, 51, 153, 0.02) 100%);
}

.stats-card.pending {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.stats-card.review {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(23, 162, 184, 0.02) 100%);
}

.stats-card.accepted {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

/* Stats Icon */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stats-card.total .stats-icon {
    background-color: rgba(0, 51, 153, 0.1);
    color: var(--bs-primary-maritime);
}

.stats-card.pending .stats-icon {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stats-card.review .stats-icon {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stats-card.accepted .stats-icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Stats Content */
.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stats-card.total .stats-number {
    color: var(--bs-primary-maritime);
}

.stats-card.pending .stats-number {
    color: #ffc107;
}

.stats-card.review .stats-number {
    color: #17a2b8;
}

.stats-card.accepted .stats-number {
    color: #28a745;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Stats Progress Chart */
.stats-progress-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stats-progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-primary-maritime);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-chart {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.progress-total {
    background-color: var(--bs-primary-maritime);
}

.progress-pending {
    background-color: #ffc107;
}

.progress-review {
    background-color: #17a2b8;
}

.progress-accepted {
    background-color: #28a745;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
}

/* OPCIÓN 2: Stats con mini gráfico circular */
.stats-with-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.chart-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chart-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-chart circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center .chart-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-primary-maritime);
    line-height: 1;
}

.chart-center .chart-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.chart-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.legend-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.9rem;
    color: #495057;
    flex: 1;
}

.legend-value {
    font-weight: 600;
    color: #343a40;
}

.legend-percentage {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .chart-container {
        flex-direction: column;
        text-align: center;
    }
    
    .chart-wrapper {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .stats-section .col-md-3.col-sm-6 {
        margin-bottom: 15px;
    }
    
    .stats-card {
        padding: 15px;
    }
}
/* === MY APPLICATIONS - IMPROVED STATS SECTION === */

/* Stats Section Container */
.stats-section {
    margin-bottom: 30px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid;
}

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

.stats-card.total {
    border-left-color: var(--bs-primary-maritime);
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.05) 0%, rgba(0, 51, 153, 0.02) 100%);
}

.stats-card.pending {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.stats-card.review {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(23, 162, 184, 0.02) 100%);
}

.stats-card.accepted {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.stats-card.rejected {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

/* Stats Icon */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stats-card.total .stats-icon {
    background-color: rgba(0, 51, 153, 0.1);
    color: var(--bs-primary-maritime);
}

.stats-card.pending .stats-icon {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stats-card.review .stats-icon {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stats-card.accepted .stats-icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stats-card.rejected .stats-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Stats Content */
.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stats-card.total .stats-number {
    color: var(--bs-primary-maritime);
}

.stats-card.pending .stats-number {
    color: #ffc107;
}

.stats-card.review .stats-number {
    color: #17a2b8;
}

.stats-card.accepted .stats-number {
    color: #28a745;
}

.stats-card.rejected .stats-number {
    color: #dc3545;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .stats-section .col-md-3.col-sm-6,
    .stats-section .col-sm-6 {
        margin-bottom: 15px;
    }
    
    .stats-card {
        padding: 15px;
    }
}
