/* ============================================
   PERÍODO BÁSICO - MILITARY ID CARDS
   ============================================ */

/* Header Breadcrumb */
.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header Title com versões Desktop/Mobile */
.title-mobile {
    display: none;
}

.title-full {
    display: inline;
}

/* Stats Grid - Ultra Minimalista */
.stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(20, 24, 20, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 165, 91, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(20, 24, 20, 0.4);
    border-color: rgba(180, 165, 91, 0.3);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 18px;
    height: 18px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(20, 24, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 165, 91, 0.2);
    border-radius: 10px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: rgba(180, 165, 91, 0.4);
}

.search-container svg {
    color: var(--text-muted);
    margin-right: 12px;
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-primary);
}

.filter-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 24, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 165, 91, 0.2);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    border-color: rgba(180, 165, 91, 0.4);
    background: rgba(180, 165, 91, 0.1);
}

.filter-button svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Modal de Filtros */
.modal-filters {
    max-width: 600px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-checkbox:hover {
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.filter-checkbox span {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Dog Tags Grid */
.dogtags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Military ID Card - Design Profissional */
.dogtag-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(30, 35, 30, 0.95) 0%, rgba(15, 20, 15, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(180, 165, 91, 0.3);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(180, 165, 91, 0.1);
}

/* Removido - Barra superior dourada */

/* Efeito de brilho ao hover */
.dogtag-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 165, 91, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.dogtag-card:hover::after {
    left: 100%;
}

.dogtag-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 165, 91, 0.5);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(180, 165, 91, 0.2),
        inset 0 1px 0 rgba(180, 165, 91, 0.2);
}

/* Header com título */
.dogtag-header-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(180, 165, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dogtag-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(180, 165, 91, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dogtag-id {
    font-size: 9px;
    font-weight: 600;
    color: rgba(180, 165, 91, 0.6);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Conteúdo principal */
.dogtag-content {
    padding: 24px;
    display: flex;
    gap: 20px;
}

/* Foto com moldura especial */
.dogtag-photo-section {
    position: relative;
    flex-shrink: 0;
}

.dogtag-photo-frame {
    position: relative;
    padding: 2px;
    background: var(--gradient-military);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dogtag-photo {
    width: 105px;
    height: 125px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.dogtag-photo-placeholder {
    width: 105px;
    height: 125px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dogtag-photo-placeholder svg {
    width: 36px;
    height: 36px;
    color: rgba(180, 165, 91, 0.4);
}

/* Badge de tipo sanguíneo */
.dogtag-blood-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(180, 165, 91, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Informações do soldado */
.dogtag-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Nome principal */
.dogtag-main-info {
    border-bottom: 1px solid rgba(180, 165, 91, 0.15);
    padding-bottom: 12px;
}

.dogtag-rank {
    font-size: 9px;
    font-weight: 600;
    color: rgba(180, 165, 91, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dogtag-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dogtag-fullname {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Detalhes em grid */
.dogtag-details {
    display: grid;
    gap: 10px;
}

.dogtag-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dogtag-detail-icon {
    width: 32px;
    height: 32px;
    background: rgba(180, 165, 91, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dogtag-detail-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

.dogtag-detail-content {
    flex: 1;
    min-width: 0;
}

.dogtag-detail-label {
    font-size: 9px;
    color: rgba(180, 165, 91, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dogtag-detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Footer com informações adicionais */
.dogtag-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-top: 1px solid rgba(180, 165, 91, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dogtag-footer-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dogtag-footer-label {
    font-size: 8px;
    color: rgba(180, 165, 91, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dogtag-footer-value {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Thumbs up/down counter */
.dogtag-thumbs {
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.thumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.thumb-item svg {
    width: 16px;
    height: 16px;
}

.thumb-up svg {
    color: #6b9e78;
}

.thumb-down svg {
    color: #b85c5c;
}

.thumb-count {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    min-width: 16px;
    text-align: center;
}

.thumb-up .thumb-count {
    color: #6b9e78;
}

.thumb-down .thumb-count {
    color: #b85c5c;
}

/* ============================================
   MODAL IMPROVED STYLES
   ============================================ */

.modal-soldier {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-soldier .modal-body {
    padding: 24px;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.photo-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.photo-upload-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.photo-preview-box {
    width: 160px;
    height: 160px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(180, 165, 91, 0.05);
    transition: all 0.3s ease;
}

.photo-preview-box:hover {
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.1);
}

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

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.photo-placeholder span {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 0 12px;
}

.photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.btn-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-photo:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-photo svg {
    flex-shrink: 0;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Form Section */
.form-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b4a55b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
}

.form-group select:hover {
    border-color: rgba(180, 165, 91, 0.4);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Mensagem vazia */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   BOTÃO FLUTUANTE (FAB)
   ============================================ */

.fab-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-military);
    border: none;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(180, 165, 91, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    color: var(--bg-primary);
}

.fab-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(180, 165, 91, 0.4);
}

.fab-button:active {
    transform: scale(0.95);
}

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

@media (max-width: 1024px) {
    .filter-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    /* Esconder elementos do header no mobile */
    .header-desktop-only {
        display: none !important;
    }

    /* Mostrar título mobile */
    .title-mobile {
        display: inline;
    }

    .title-full {
        display: none;
    }

    /* Stats Grid - Esconder ano e turmas, manter só total soldados */
    .stats-grid {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card:nth-child(2),
    .stat-card:nth-child(3) {
        display: none; /* Esconde ano e turmas */
    }

    .stat-card {
        padding: 10px 14px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
    }

    .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 8px;
    }

    /* Filters */
    .filters-section {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .search-container {
        padding: 0 14px;
    }

    .search-container input {
        padding: 12px 0;
        font-size: 12px;
    }

    .filter-button {
        justify-content: center;
        padding: 12px 18px;
        font-size: 12px;
    }

    /* Modal de Filtros - Mobile */
    .modal-filters {
        max-width: 95%;
        margin: 10px;
    }

    .filter-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-checkbox {
        padding: 8px 12px;
    }

    .filter-checkbox span {
        font-size: 12px;
    }

    /* Dog Tags Grid */
    .dogtags-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 100px; /* Espaço para o FAB */
    }

    /* Dog Tag Card - Manter layout horizontal no mobile */
    .dogtag-content {
        flex-direction: row;
        padding: 20px;
        gap: 16px;
    }

    .dogtag-photo-section {
        flex-shrink: 0;
    }

    .dogtag-photo-frame {
        width: auto;
    }

    .dogtag-photo,
    .dogtag-photo-placeholder {
        width: 100px;
        height: 120px;
    }

    .dogtag-blood-badge {
        font-size: 10px;
        padding: 4px 10px;
        bottom: -8px;
    }

    .dogtag-name {
        font-size: 18px;
        letter-spacing: 1.2px;
    }

    .dogtag-fullname {
        font-size: 10px;
    }

    .dogtag-rank {
        font-size: 9px;
    }

    .dogtag-main-info {
        padding-bottom: 10px;
    }

    /* Detalhes mantém grid */
    .dogtag-details {
        display: grid;
        gap: 10px;
    }

    .dogtag-detail-item {
        gap: 10px;
    }

    .dogtag-detail-icon {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }

    .dogtag-detail-icon svg {
        width: 15px;
        height: 15px;
    }

    .dogtag-detail-label {
        font-size: 9px;
    }

    .dogtag-detail-value {
        font-size: 12px;
    }

    /* Header mobile */
    .dogtag-header-bar {
        padding: 10px 20px;
    }

    .dogtag-title {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .dogtag-id {
        font-size: 9px;
    }

    /* Footer no mobile */
    .dogtag-footer {
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dogtag-footer-label {
        font-size: 8px;
    }

    .dogtag-footer-value {
        font-size: 10px;
    }

    .thumb-item svg {
        width: 15px;
        height: 15px;
    }

    .thumb-count {
        font-size: 11px;
    }

    .dogtag-thumbs {
        gap: 10px;
    }

    /* FAB Button - Mobile */
    .fab-button {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }

    .fab-button svg {
        width: 20px;
        height: 20px;
    }

    /* Modal - Mobile */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer button {
        width: 100%;
    }

    /* Header - Mobile */
    .header-title {
        font-size: 12px !important;
    }

    .header-breadcrumb a {
        font-size: 11px !important;
    }

    .header-breadcrumb svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    /* Dog Tags menores mas mantém layout horizontal */
    .dogtag-card {
        border-radius: 12px;
    }

    .dogtag-content {
        padding: 14px;
        gap: 10px;
    }

    .dogtag-photo,
    .dogtag-photo-placeholder {
        width: 120px;
        height: 145px;
    }

    .dogtag-blood-badge {
        font-size: 14px;
        padding: 2px 6px;
    }

    .dogtag-name {
        font-size: 16px;
    }

    .dogtag-fullname {
        font-size: 10px;
    }

    .dogtag-detail-value {
        font-size: 12px;
    }

    .dogtag-detail-icon {
        width: 28px;
        height: 28px;
    }

    .dogtag-detail-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Header */
    .dogtag-header-bar {
        padding: 6px 14px;
    }

    .dogtag-title {
        font-size: 10px;
    }

    .dogtag-id {
        font-size: 12px;
    }

    /* Footer */
    .dogtag-footer {
        padding: 8px 14px;
    }

    .dogtag-footer-label {
        font-size: 8px;
    }

    .dogtag-footer-value {
        font-size: 8px;
    }

    .thumb-item svg {
        width: 16px;
        height: 16px;
    }

    .thumb-count {
        font-size: 12px;
    }

    /* Stats compactos */
    .stat-value {
        font-size: 14px;
    }

    /* FAB menor */
    .fab-button {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .dogtags-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dogtag-content {
        flex-direction: row;
    }

    .dogtag-photo-frame {
        width: auto;
    }

    .dogtag-photo,
    .dogtag-photo-placeholder {
        width: 105px;
        height: 125px;
    }
}

/* ============================================
   MODAL DETALHES DO SOLDADO & FATOS OBSERVADOS
   ============================================ */

.modal-details {
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    /* Esconder scrollbar mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-details::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.soldier-details-body {
    padding: 24px;
}

/* Card ID Expandido */
.soldier-id-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.id-card-header {
    background: linear-gradient(135deg, rgba(180, 165, 91, 0.15) 0%, rgba(180, 165, 91, 0.05) 100%);
    border-bottom: 2px solid var(--accent-gold);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-card-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.id-card-content {
    padding: 24px;
    display: flex;
    gap: 24px;
}

.id-card-photo-section {
    position: relative;
    flex-shrink: 0;
}

.id-card-photo-frame {
    width: 140px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.id-card-photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(180, 165, 91, 0.3);
}

.id-card-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-card-blood-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.id-card-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.id-card-main-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.id-card-rank {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.id-card-war-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.id-card-full-name {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.id-card-details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.id-card-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(180, 165, 91, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.id-card-detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.id-card-detail-content {
    flex: 1;
}

.id-card-detail-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.id-card-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.id-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.id-card-footer-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.id-card-footer-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-card-footer-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.id-card-status-active {
    color: #4ade80;
}

.id-card-fo-stats {
    flex-direction: row;
    gap: 16px;
}

.fo-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fo-stat-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Botão de ícone */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Resumo do Soldado */
.soldier-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(180, 165, 91, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.soldier-summary-photo {
    width: 120px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.soldier-summary-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(180, 165, 91, 0.3);
}

.soldier-summary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soldier-summary-photo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.soldier-summary-info {
    flex: 1;
}

.summary-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-stat svg {
    flex-shrink: 0;
}

.summary-stat-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Botões de FO */
.fo-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-fo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-fo-positive {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-fo-positive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.btn-fo-negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-fo-negative:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Lista de FOs */
.fo-list-section {
    margin-top: 24px;
}

.fo-list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.fo-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.fo-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fo-tab:hover {
    background: rgba(180, 165, 91, 0.1);
    color: var(--text-primary);
}

.fo-tab.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.fo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.fo-item {
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.fo-item.positive {
    border-left-color: #4ade80;
}

.fo-item.negative {
    border-left-color: #ef4444;
}

.fo-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fo-item-instructor {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.fo-item-date {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.fo-item-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fo-item-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.fo-item.positive .fo-item-type-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.fo-item.negative .fo-item-type-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Modal FO */
.modal-fo {
    max-width: 500px;
}

.modal-fo textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.modal-fo textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.05);
}

.fo-list::-webkit-scrollbar {
    width: 6px;
}

.fo-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.fo-list::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

/* Empty state para FOs */
.fo-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.fo-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.fo-empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Modal de ampliação de foto */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.photo-modal.active {
    display: flex;
}

.photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive para Mobile */
@media (max-width: 768px) {
    .modal-details {
        max-width: 95vw;
        margin: 10px;
    }

    .soldier-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .soldier-summary-photo {
        width: 100px;
        height: 120px;
    }

    .summary-stats {
        width: 100%;
        gap: 12px;
    }

    .summary-stat {
        padding: 12px 16px;
        gap: 6px;
    }

    .summary-stat svg {
        width: 24px;
        height: 24px;
    }

    .summary-stat-count {
        font-size: 18px;
    }

    .fo-action-buttons {
        grid-template-columns: 1fr 1fr; /* Lado a lado no mobile */
        gap: 12px;
    }

    .btn-fo {
        padding: 14px 20px;
        font-size: 14px;
    }

    .fo-filter-tabs {
        justify-content: center;
    }

    .fo-list {
        max-height: 300px;
    }

    .soldier-details-body {
        padding: 16px;
    }

    /* Card ID mobile */
    .id-card-content {
        flex-direction: column;
        padding: 16px;
        align-items: center;
    }

    .id-card-photo-frame {
        width: 120px;
        height: 145px;
    }

    .id-card-info-section {
        width: 100%;
        text-align: center;
    }

    .id-card-war-name {
        font-size: 22px;
    }

    .id-card-full-name {
        font-size: 13px;
    }

    .id-card-details-grid {
        gap: 10px;
    }

    .id-card-detail-row {
        padding: 10px;
    }

    .id-card-detail-icon {
        width: 28px;
        height: 28px;
    }

    .id-card-footer {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .id-card-footer-item:first-child {
        order: 1; /* Ano à esquerda */
    }

    .id-card-fo-stats {
        order: 2; /* Joias no centro */
        gap: 10px;
    }

    .id-card-footer-item:last-child {
        order: 3; /* Status à direita */
    }

    .id-card-footer-label,
    .id-card-footer-value {
        font-size: 8px;
    }

    .fo-stat-item svg {
        width: 14px;
        height: 14px;
    }

    .fo-stat-count {
        font-size: 13px;
    }
}

/* ============================================
   CONTEXT MENU - LONG PRESS
   ============================================ */

.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 10000;
    min-width: 180px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    pointer-events: none;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.context-menu-item:hover {
    background: rgba(196, 184, 150, 0.1);
}

.context-menu-item.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.context-menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.context-menu-divider {
    height: 1px;
    background: rgba(196, 184, 150, 0.2);
    margin: 4px 0;
}

/* Long Press Visual Feedback */
.dogtag-card.long-pressing {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px var(--accent-gold);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.dogtag-card.long-pressing::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    border: 2px solid var(--accent-gold);
    animation: pulse-ring 1s ease-out infinite;
    pointer-events: none;
}

/* ============================================
   CONFIRM MODAL
   ============================================ */

.confirm-modal {
    z-index: 10001;
}

.confirm-modal-content {
    max-width: 440px;
    text-align: center;
    padding: 40px 32px 32px;
}

.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.confirm-modal-icon svg {
    color: #ef4444;
}

.confirm-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-secondary,
.btn-danger {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Confirm Modal - Mobile */
@media (max-width: 768px) {
    .confirm-modal-content {
        max-width: 90%;
        padding: 32px 24px 24px;
    }

    .confirm-modal-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .confirm-modal-icon svg {
        width: 40px;
        height: 40px;
    }

    .confirm-modal-content h3 {
        font-size: 20px;
    }

    .confirm-modal-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .btn-secondary,
    .btn-danger {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .confirm-modal-content h3 {
        font-size: 18px;
    }

    .confirm-modal-content p {
        font-size: 13px;
    }
}

