body {
    font-family: "Inter", "poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.title-bolder {
    font-weight: bolder;
}

.message-blue {
    color: blue;
}

.message-red {
    color: red;
}

.title-green {
    color: green !important;
}

.title-red {
    color: red;
}

.title-blue {
    color: blue;
}

.title-gray {
    color: gray;
}

.title-orange {
    color: #e67e22;
}

.title-purple {
    color: #8e44ad;
}

.item-gray {
    color: gray;
}

.btn-gray {
    background-color: gray;
    color: white;
}

.btn-dark-blue {
    background-color: #194d7c;
    color: white;
}

.btn-dark-blue:hover {
   background-color: #2A6A9E;
   color: white;
   box-shadow: 0 4px 8px rgba(25, 77, 124, 0.3);
}

.btn-outline-dark-blue {
   border: 1px solid #194d7c;
   color: #194d7c;
   background-color: transparent;
}

.btn-outline-dark-blue:hover {
   background-color: #194d7c;
   color: white;
}

.separator {
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/* ========================================
   iOS/SAFARI MOBILE COMPATIBILITY
========================================= */

/* Feedback visual para botões iOS */
.btn-pressed {
    background-color: #2A6A9E !important;
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* iOS Safari - botão mobile com melhor touch target */
#select-gallery-mobile,
#select-camera-mobile {
    min-height: 60px !important;
    min-width: 120px !important;
    -webkit-tap-highlight-color: rgba(25, 77, 124, 0.3) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* iOS - fix para btn-block deprecado */
@media (max-width: 767.98px) {
    .btn-block,
    .mobile-upload .btn {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .mobile-upload .col-6 .btn {
        margin-bottom: 0 !important;
    }
}

/* iOS Safari - drag drop zone refinements */
.drag-drop-zone {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: none !important;
}

/* iOS - área de upload mobile específica */
.mobile-upload {
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 10px !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .modal.bottom .modal-dialog {
        position: fixed;
        bottom: 0;
        margin: 0;
        width: 100%;
        transition: transform 0.3s ease-out;
        transform: translateY(100%);
    }

    .modal.bottom.show .modal-dialog {
        transform: translateY(0);
    }

    .modal.bottom .modal-content {
        border-radius: 10px;
    }
    
    /* iOS/Safari - fix touch responsiveness */
    button, .btn, input[type="button"], input[type="submit"] {
        -webkit-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
    }
    
    /* iOS - melhor espaçamento para touch */
    .btn {
        padding: 12px 20px !important;
        font-size: 16px !important; /* iOS não faz zoom com font-size >= 16px */
    }
    
    /* iOS - file inputs hidden mas acessíveis */
    input[type="file"] {
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.dark-blue{
    color: #194d7c;
}

#enviados-container .title-green { color: #28a745 !important; }

#enviados-container .title-green.title-bolder {
    color: #28a745 !important;
    font-family: "poppins", sans-serif !important;
    letter-spacing: 0.5px;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}


/* ========================================
   AGENDAMENTO UNIFICADO - INTERFACE MODERNA
   ======================================== */

/* Cards de Categoria de Foto */
.photo-category-card {
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.photo-category-card.completed {
    background: #d4edda;
    border-color: #28a745 !important;
}

.photo-category-card.uploading {
    background: #fff3cd;
    border-color: #ffc107 !important;
}

/* Checklist de Validação */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Preview de Fotos */
.photo-previews img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.photo-previews img:hover {
    border-color: #007bff;
}

/* Barra de Progresso */
.progress {
    background-color: #e9ecef;
}

/* Classes de Cor Dark Blue */
.bg-dark-blue {
    background-color: #194d7c !important;
}

.text-dark-blue {
    color: #194d7c !important;
}

/* Botões de Upload */
.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Badge de Sucesso */
.badge-success {
    background-color: #28a745;
}

/* Container de Progress */
.progress-container {
    min-width: 120px;
}

/* Espaçamento para Ícones */
.me-2 {
    margin-right: 0.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

/* Gap para Flexbox (fallback para navegadores antigos) */
.gap-2 > * {
    margin-right: 0.5rem;
}

.gap-2 > *:last-child {
    margin-right: 0;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Botões responsivos - apenas dentro do agendamento unificado */
    .progress-overview .d-flex.justify-content-between .btn,
    .photo-category-card .d-flex.justify-content-between .btn {
        flex: 1;
        margin: 0 2px;
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }

    /* Preview menor em mobile */
    .photo-previews img {
        width: 50px;
        height: 50px;
    }

    /* Progress container menor */
    .progress-container {
        min-width: 100px;
        width: 100%;
    }

    /* Header responsivo - apenas para agendamento, não para cards de OS */
    .progress-overview .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    /* Botões de produto recolhido */
    .btn-group.w-100 .btn {
        font-size: 0.9rem;
    }

    /* Modal responsivo */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ========================================
   MELHORIAS DE UX/UI
   ======================================== */

/* Loading overlay melhorado */
.loading {
    background: rgba(255, 255, 255, 0.9);
}

/* Animação suave para cards */
.photo-category-card {
    transform: translateY(0);
}

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

/* Badge com animação */
.badge {
    transition: all 0.2s ease;
}

/* Botão finalizar com estado */
#finalizar-btn:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
}

#finalizar-btn:enabled {
    background-color: #194d7c !important;
    border-color: #194d7c !important;
}

/* Textarea com foco melhorado */
#relatorio-tecnico:focus {
    border-color: #194d7c;
    box-shadow: 0 0 0 0.2rem rgba(25, 77, 124, 0.25);
}

/* Estilo para inputs de arquivo hidden */
input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Melhorias no modal de upload */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ========================================
   ESTADOS VISUAIS
   ======================================== */

/* Estado de erro */
.photo-category-card.error {
    background: #f8d7da;
    border-color: #dc3545 !important;
}

/* Estado de sucesso para checklist */
.checklist-item.completed {
    color: #28a745;
}

.checklist-item.pending {
    color: #6c757d;
}

/* Thumbnails de fotos e vídeos no modal de categoria */
.category-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.category-media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.category-photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: relative;
}

.category-video-thumbnail::before {
    content: '▶';
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-media-item:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.category-video-thumbnail:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Modal de preview de foto expandida */
.swal-photo-preview {
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain;
}

/* Estilo para vídeo no modal */
.swal-video-preview {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

/* Seção de fotos categorizadas no modal principal */
#categorized-photos-container {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

#categorized-photos-container h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.categorized-photos-preview {
    gap: 8px !important;
}

.categorized-media {
    margin-bottom: 8px;
}

.categorized-media .category-media-item {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.categorized-media .category-media-item:hover {
    opacity: 1;
}

/* Hover states melhorados */
.btn-outline-dark-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 77, 124, 0.2);
}

.btn-dark-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 77, 124, 0.3);
}

/* ========================================
   ESTILOS ESPECÍFICOS AGENDAMENTO UNIFICADO
   ======================================== */

/* Category badges para categorias de fotos */
.category-badge {
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    position: relative;
}

.category-badge:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-badge.completed {
    background: #d4edda;
    border-color: #28a745;
}

.category-badge.completed:hover {
    border-color: #1e7e34;
}

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.category-name {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #495057;
}

.category-status {
    margin-bottom: 5px;
}

.category-description {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 5px;
}

.category-count {
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    line-height: 1.2;
    padding: 2px 6px;
}

.category-check {
    font-size: 1.2rem;
}

.progress-overview .card {
    transition: box-shadow 0.3s ease;
}

.progress-overview .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.temp-photos-stats {
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

.photo-stats {
    background: #f8f9fa;
    padding: 5px 0;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .category-badge {
        padding: 12px 8px;
    }
    
    .category-icon {
        font-size: 1.3rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .category-description {
        font-size: 0.7rem;
    }
}

/* Estilos para botões de download desabilitados */
.fa-download.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(100%);
}

.fa-download.disabled:hover {
    transform: none !important;
    color: inherit !important;
}

/* Alertas de conectividade */
#offline-warning {
    margin-bottom: 0;
    border-radius: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================================
   COMPATIBILIDADE SAFARI - CORREÇÕES ESPECÍFICAS
   =============================================== */

/* Correções para flexbox em Safari antigo */
.flex-container {
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -webkit-flex;     /* TWEENER - iOS 7, Safari 6.1-8 */
    display: flex;             /* NEW - Safari 9+, Chrome, Opera, Firefox */
}

.flex-item {
    -webkit-box-flex: 1;       /* OLD - iOS 6-, Safari 3.1-6 */
    -webkit-flex: 1;           /* Safari 6.1-8 */
    flex: 1;                   /* Safari 9+, Chrome */
}

/* Transform com prefixos para compatibilidade */
.transform-scale:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.transform-translate {
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* Transition com prefixos */
.smooth-transition {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Border-radius com prefixos para Safari muito antigo */
.safari-rounded {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

/* Box-shadow com prefixos */
.safari-shadow {
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Input file styling para Safari/iOS */
input[type="file"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Correção para botões em Safari/iOS */
.btn-safari {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    border: 1px solid;
}

/* Correções específicas para iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* Estilos que só se aplicam em iOS Safari */
    .ios-safari-fix {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Evitar zoom em inputs em iOS */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    /* Correções para modals em iOS */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Correções para drag and drop em Safari */
.dropzone {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Correções para preview de imagens */
.photo-thumbnail img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Media queries específicas para Safari mobile */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    /* Correções para telas Retina */
    .retina-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Correções para animações em Safari */
@-webkit-keyframes slideDown {
    from {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fallback para CSS Grid em Safari antigo */
.grid-container {
    display: -ms-grid;          /* IE 10-11 */
    display: grid;              /* Modern browsers */
    -ms-grid-columns: 1fr 1fr;  /* IE 10-11 */
    grid-template-columns: 1fr 1fr;
}

/* Fixes para webkit scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========================================
   ABAS - INDEX (OS TABS)
   ======================================== */

#os-tabs {
    flex-wrap: nowrap;
    border-bottom: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#os-tabs::-webkit-scrollbar {
    display: none;
}

#os-tabs .nav-item {
    flex: 0 0 auto;
    text-align: center;
}

#os-tabs .nav-link {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 14px;
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid #dee2e6;
}

#os-tabs .nav-link .badge {
    vertical-align: middle;
    margin-left: 4px;
}

#os-tabs .nav-link.active {
    color: #194d7c;
    font-weight: 700;
    border-bottom: 3px solid #194d7c;
    background: transparent;
}

#os-tabs .nav-link:hover {
    color: #194d7c;
    border-bottom-color: #194d7c;
    background: transparent;
}

@media (max-width: 768px) {
    #os-tabs .nav-link {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ========================================
   STATUS BADGES NOS CARDS
   ======================================== */

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   CARDS - LAYOUT MOBILE
   ======================================== */

.card .card-header {
    cursor: pointer;
}

.card .card-header i.fa-circle-arrow-right,
.card .card-header i.fa-circle-arrow-down {
    margin-right: 4px;
}

@media (max-width: 768px) {
    .card .card-header {
        padding: 10px 12px;
        font-size: 14px;
    }

    .card .card-header .status-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        max-width: 110px;
    }

    .card .card-body {
        padding: 10px 12px;
        font-size: 13px;
    }

    .card .card-body .d-flex.justify-content-between {
        gap: 4px;
    }

    .card .card-body .d-flex.justify-content-between .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========================================
   TELA DE AGENDAMENTO - DATE OPTIONS
   ======================================== */

.date-option {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.date-option label {
    cursor: pointer;
}

.date-option:hover {
    border-color: #194d7c;
    box-shadow: 0 2px 8px rgba(25, 77, 124, 0.1);
}

.date-option:has(input:checked) {
    border-color: #194d7c;
    background-color: #f0f4ff;
}

/* Safari fallback - :has() não suportado em Safari < 15.4 */
@supports not (selector(:has(*))) {
    .date-option.selected {
        border-color: #194d7c;
        background-color: #f0f4ff;
    }
}

.custom-date-input {
    max-width: 200px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    justify-content: center;
    align-items: center;
}

.login-logo-wrapper {
    margin-bottom: 1.5rem;
}

.login-logo-full {
    width: 320px;
    height: auto;
    max-width: 80vw;
}

.login-logo-icon {
    display: none;
    width: 180px;
    height: auto;
    max-width: 55vw;
}

.login-content {
    margin-bottom: 2rem;
}

.login-footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

@media (max-width: 767.98px) {
    .login-logo-full {
        display: none;
    }
    .login-logo-icon {
        display: inline-block;
    }
}

/* ============================================
   NAVBAR COMPARTILHADO (.gs-navbar)
   ============================================ */
.gs-navbar {
    background-color: #194d7c;
    padding: 0;
    box-shadow: 0 2px 8px rgba(25, 77, 124, 0.18);
    letter-spacing: 0.01em;
}

.gs-navbar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.gs-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    margin-right: 2rem;
}

.gs-navbar .navbar-brand img {
    height: 52px;
    width: auto;
    border-radius: 0;
    object-fit: contain;
}

/* Desktop: mostra logo com texto */
.gs-navbar .navbar-brand .brand-logo-full {
    display: inline-block;
}
.gs-navbar .navbar-brand .brand-logo-icon {
    display: none;
}

.gs-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.18s, color 0.18s;
}

.gs-navbar .nav-link:hover,
.gs-navbar .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.gs-navbar .nav-item.active .nav-link {
    color: #fff;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.14);
}

.gs-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.35rem;
}

.gs-navbar .dropdown-item {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 450;
    border-radius: 4px;
    margin: 0 0.35rem;
    transition: background-color 0.15s;
}

.gs-navbar .dropdown-item:hover {
    background-color: #E8EFF6;
}

.gs-navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.gs-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.6rem;
}

.gs-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

/* Mobile: collapse panel */
@media (max-width: 767.98px) {
    .gs-navbar .navbar-brand .brand-logo-full {
        display: none;
    }
    .gs-navbar .navbar-brand .brand-logo-icon {
        display: inline-block;
    }
    .gs-navbar .navbar-brand img {
        height: 28px;
    }

    .gs-navbar .navbar-collapse {
        background-color: #133D63;
        margin: 0.45rem -1rem 0;
        padding: 0.65rem 1rem;
        border-radius: 0 0 10px 10px;
    }

    .gs-navbar .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .gs-navbar .nav-item.active .nav-link {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .gs-navbar .dropdown-menu {
        background-color: #0F3355;
        box-shadow: none;
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .gs-navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        margin: 0;
        border-radius: 6px;
    }

    .gs-navbar .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .gs-navbar .dropdown-item.text-danger {
        color: #ff6b6b !important;
    }

    .gs-navbar .dropdown-divider {
        border-top-color: rgba(255, 255, 255, 0.15);
    }
}

/* ============================================
   TREINAMENTOS
   ============================================ */

.treinamento-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.treinamento-sidebar {
    width: 240px;
    min-width: 240px;
    background: #1a2332;
    color: #fff;
    padding: 20px 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.treinamento-sidebar-title {
    padding: 0 20px 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #8bb4e0;
}

.treinamento-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.treinamento-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    color: rgba(255,255,255,0.7);
}

.treinamento-menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.treinamento-menu-item.active {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
    padding-left: 17px;
}

.treinamento-menu-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.treinamento-content {
    flex: 1;
    padding: 24px;
    background: #f5f7fa;
}

.treinamento-header {
    margin-bottom: 24px;
}

.treinamento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .video-card-play {
    opacity: 1;
}

.video-card-play i {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 3px;
}

.video-card-info {
    padding: 12px 14px;
}

.video-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2332;
    line-height: 1.3;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile: sidebar becomes horizontal top menu */
@media (max-width: 768px) {
    .treinamento-wrapper {
        flex-direction: column;
    }

    .treinamento-sidebar {
        width: 100%;
        min-width: 100%;
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .treinamento-sidebar-title {
        padding: 0 16px 10px;
        font-size: 0.9rem;
    }

    .treinamento-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 12px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .treinamento-menu-item {
        white-space: nowrap;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
    }

    .treinamento-menu-item.active {
        border-left: none;
        padding-left: 14px;
        background: rgba(59,130,246,0.3);
        border-radius: 20px;
    }

    .treinamento-content {
        padding: 16px;
    }

    .treinamento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}