:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #f8f9fa;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.world-map-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/1200px-World_map_-_low_resolution.svg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    animation: moveBackground 120s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    color: var(--light-color);
    font-weight: 700;
	font-family: 'Arial Black', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}


.tab {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
    background: #3498db;
    color: white;
}

.tab i {
    font-size: 16px;
}

/* Dashboard Content */
.dashboard-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* Options Content */
.options-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.options-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.options-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.options-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.options-panels {
    position: relative;
    min-height: 500px;
}

.options-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.options-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.list-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.list-container h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.items-list {
    list-style: none;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.item:hover {
    transform: translateX(5px);
}

.item.profit {
    border-left-color: var(--success-color);
}

.item.loss {
    border-left-color: var(--danger-color);
}

.item-info {
    flex: 1;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.action-btn.delete:hover {
    color: var(--danger-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .options-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .tab, .options-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
/* Estilos para a seção de detalhes */
.details-section {
    margin-top: 30px;
    display: none; /* Inicialmente oculto */
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.detail-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.detail-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.detail-card p {
    text-align: center;
    margin-bottom: 8px;
}

.profit-badge {
    background-color: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.profit-display {
    font-weight: bold;
	font-size: 0.8rem;
	text-align: center;
    
}

.loss-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: bold;
    font-size: 0.4rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Garante que a seção de detalhes tenha o mesmo estilo do conteúdo principal */
.details-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

/* Estilo para o botão de voltar */
.back-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Ajuste para os cards de detalhes */
.detail-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
/* Estilos para os cards de detalhes */
.details-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.detail-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.profile-login {
    color: #666;
    margin-bottom: 10px;
}

.profile-email, .profile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.profile-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 0.9rem;
    color: #555;
}

/* Responsividade */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos para as novas páginas */
.stations-content, .profiles-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.filter-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.filter-select {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.refresh-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.item-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.item-card.profit {
    border-left-color: var(--success-color);
}

.item-card.loss {
    border-left-color: var(--danger-color);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.item-avatar {
    width: 160px;
    height: 60px;
    border-radius: 10%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.item-info {
    flex: 1;
}

.item-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background-color: rgba(0,0,0,0.05);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.stat-value {
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.profit-badge, .loss-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.profit-badge {
    background-color: var(--success-color);
    color: white;
}

.loss-badge {
    background-color: var(--danger-color);
    color: white;
}

@media (max-width: 768px) {
    .items-container {
        grid-template-columns: 1fr;
    }
    
    .filter-box {
        flex-direction: column;
    }
    
    .filter-select, .refresh-btn {
        width: 100%;
    }
}

/* Estilos de status */
.status-reserve {
    border-left-color: #FFC107 !important; /* Amarelo */
}

.status-active {
    border-left-color: #4CAF50 !important; /* Verde */
}

.status-limited {
    border-left-color: #F44336 !important; /* Preto */
}

.status-reserve .status-icon {
    color: #FFC107;
}

.status-active .status-icon {
    color: #4CAF50;
}

.status-limited .status-icon {
    color: #000000;
}

/* Timeline */
.timeline {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.timeline h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.timeline-event {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.event-date {
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.event-content {
    font-size: 0.8rem;
    color: #000;
}

.event-type {
    margin: 5px 0;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

.event-type.status-change {
    background-color: #E3F2FD;
    color: #1976D2;
}

.event-type.deposit {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.event-type.withdraw {
    background-color: #FFEBEE;
    color: #C62828;
}

.event-notes {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

.timeline-toggle {
    margin-top: 10px;
    text-align: center;
}

.timeline-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.timeline-btn:hover {
    background-color: #e0e0e0;
}

/* Ajuste para os cards */
.item-card {
    position: relative;
    padding-top: 40px; /* Espaço para o ícone */
}

/* Estilos para a página do banco */
.bank-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.bank-operations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.operation-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.transactions-history {
    margin-top: 30px;
}

.transaction {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.transaction.deposit {
    border-left: 4px solid #4CAF50;
}

.transaction.withdraw {
    border-left: 4px solid #F44336;
}

.transaction-date {
    font-size: 0.8rem;
    color: #666;
}

.transaction-type {
    font-weight: bold;
    margin: 5px 0;
}

.transaction-amount {
    font-weight: bold;
}

.transaction.deposit .transaction-amount {
    color: #4CAF50;
}

.transaction.withdraw .transaction-amount {
    color: #F44336;
}

.transaction-notes {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .bank-operations {
        grid-template-columns: 1fr;
    }
}

.item-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    background-color: #f0f0f0;
}

.stat-cardx {
    min-height: 60px; /* Garante espaço uniforme ESTE É O QUE A PÁGINA DE PERFIS DEVE REFERENCIAR, PARA NÃO FICAR COM O MESMO TAMNHO DA PÁGINAL PRINCIPAL, POIS FICA MUITO GRANDE E DESCONFIGURADO */
}

.stat-cardy {
    min-height: 60px; /* Garante espaço uniforme ESTE É O QUE A PÁGINA DE PERFIS DEVE REFERENCIAR, PARA NÃO FICAR COM O MESMO TAMNHO DA PÁGINAL PRINCIPAL, POIS FICA MUITO GRANDE E DESCONFIGURADO */
}

.stat-value {
    font-size: 0.95rem; /* Tamanho adequado para datas */
}

/* Estilos para a página do Banco */
.bank-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.profile-selector {
    margin-bottom: 20px;
}

.profile-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.bank-operations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.operation-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.operation-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transactions-history {
    margin-top: 30px;
}

.transaction {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.transaction.deposit {
    border-left: 4px solid var(--success-color);
}

.transaction.withdraw {
    border-left: 4px solid var(--danger-color);
}

.transaction-date {
    font-size: 0.8rem;
    color: #666;
}

.transaction-type {
    font-weight: 500;
}

.transaction-amount {
    text-align: right;
    font-weight: bold;
}

@media (max-width: 768px) {
    .bank-operations {
        grid-template-columns: 1fr;
    }
}

/* Adicione estas regras */
.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transaction-info {
    flex-grow: 1;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    font-size: 16px;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #cc0000;
}

/* Estilos para os perfis com imagens */
.profile-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    margin-bottom: 10px;
}

.profile-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-activex {
    background-color: #e6f7ee;
    color: #00a854;
}

.status-reservex {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-limitedx {
    background-color: #fff1f0;
    color: #f5222d;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Estilos para o backup */
.backup-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.status-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}
/* Estilos para a seção de backup */
.backup-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.backup-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.backup-section p {
    color: #666;
    margin-bottom: 15px;
}

.danger-zone {
    border: 2px solid #ff4444;
    background-color: #fff9f9;
}

.danger-zone h3 {
    color: #ff4444;
}

.btn-danger {
    background-color: #ff4444;
    color: white;
}

.btn-danger:hover {
    background-color: #cc0000;
}

.integrity-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.success-message {
    color: #4CAF50;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    color: #f44336;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
}

.alert-success {
    background-color: #4CAF50;
}

.alert-error {
    background-color: #f44336;
}

.alert-warning {
    background-color: #ff9800;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Estilos para Backup */
.backup-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.backup-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.danger-zone {
    border: 2px solid #ff4444;
    background-color: #fff9f9;
}

.danger-zone h3 {
    color: #ff4444;
}

.btn-danger {
    background-color: #ff4444;
    color: white;
}

.btn-danger:hover {
    background-color: #cc0000;
}

#integrity-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.success-message {
    color: #4CAF50;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    color: #f44336;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
}

.alert-success {
    background-color: #4CAF50;
}

.alert-error {
    background-color: #f44336;
}

.alert-warning {
    background-color: #ff9800;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Estilos para as logos das estações */
.station-logos {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    height: 40px; /* Mantém o mesmo tamanho do espaço anterior */
}

.station-logo {
    width: 160px;
    height: 50px;
    border-radius: 8%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.no-station {
    font-size: 0.8em;
    color: #777;
}

/* Ajustes para os cards de estatísticas */
.stat-cardx {
    text-align: center;
    padding: 1px;
}

.stat-value {
    font-weight: bold;
    margin-bottom: 2px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
}

/* Estilos para a página de Relatórios */
.reports-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.report-summary-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.report-details {
    margin-top: 30px;
}

.report-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.report-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.report-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.report-data-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.report-data-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Estilos para a página de Backup */
.backup-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.backup-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.backup-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.backup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.danger-zone {
    border: 2px solid var(--danger-color);
    background-color: #fff9f9;
    padding: 20px;
    border-radius: 8px;
}

.danger-zone h3 {
    color: var(--danger-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.status-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}

.backup-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.backup-error {
    background-color: #ffebee;
    color: #c62828;
}

.backup-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.backup-list {
    margin-top: 20px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.backup-item:last-child {
    border-bottom: none;
}

/* Estilos para a página SMS */
.sms-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sms-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sms-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.carrier-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.phone-list {
    margin-top: 15px;
}

.phone-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 4px;
    align-items: center;
}

.profile-selector {
    margin-bottom: 15px;
}

/* Ícones das operadoras (adicione as imagens correspondentes) */
.carrier-icon.claro {
    background-image: url('icons/claro.png');
}
.carrier-icon.vivo {
    background-image: url('icons/vivo.png');
}
.carrier-icon.tim {
    background-image: url('icons/tim.png');
}
.carrier-icon.oi {
    background-image: url('icons/oi.png');
}
/* [Todo o CSS anterior permanece igual] */

/* Adicionando estilos específicos para a página de Relatórios */
.reports-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.report-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.report-summary-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.report-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.report-details h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para a página SMS melhorados */
.sms-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sms-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.action-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sms-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    transition: var(--transition);
}

.phone-item:hover {
    background: #f0f0f0;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrier-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Ícones das operadoras */
.carrier-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    object-fit: contain;
}

/* Estilos para a página de Backup */
.backup-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.backup-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.backup-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.backup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.danger-zone {
    border: 2px solid var(--danger-color);
    background-color: #fff9f9;
    padding: 20px;
    border-radius: 8px;
}

.danger-zone h3 {
    color: var(--danger-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.status-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}

.backup-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.backup-error {
    background-color: #ffebee;
    color: #c62828;
}

.backup-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.backup-list {
    margin-top: 20px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.backup-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .sms-lists {
        grid-template-columns: 1fr;
    }
    
    .sms-actions {
        grid-template-columns: 1fr;
    }
}

/* Estilos específicos para a página SMS */
.sms-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sms-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.action-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sms-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .sms-lists {
        grid-template-columns: 1fr;
    }
}

/* Ícones das operadoras */
.carrier-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.carrier-claro {
    background-image: url('icons/claro.png');
}

.carrier-vivo {
    background-image: url('icons/vivo.png');
}

.carrier-tim {
    background-image: url('icons/tim.png');
}

.carrier-oi {
    background-image: url('icons/oi.png');
}
/* Estilos específicos para a página de Backup */
.backup-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.backup-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.backup-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.backup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.danger-zone {
    border: 2px solid var(--danger-color);
    background-color: #fff9f9;
}

.danger-zone h3 {
    color: var(--danger-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.status-message {
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
}

.info-message {
    background-color: #e3f2fd;
    color: #1565c0;
}

.backup-list {
    margin-top: 20px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.backup-item:last-child {
    border-bottom: none;
}

#integrity-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

#integrity-result ul {
    margin-top: 10px;
    padding-left: 20px;
}

#integrity-result li {
    margin-bottom: 5px;
}
/* Estilos para relatórios */
.report-table {
    margin-top: 15px;
}

.report-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.report-row:first-child {
    font-weight: bold;
    background-color: #f5f5f5;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.chart-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    margin-top: 0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Estilo especial para o botão de Backup */
.tab.backup-tab {
    background-color: rgba(244, 67, 54, 0.1); /* Vermelho muito suave */
    border: 1px solid rgba(244, 67, 54, 0.3);
    position: relative;
}

.tab.backup-tab:hover {
    background-color: rgba(244, 67, 54, 0.15);
}

.tab.backup-tab::after {
    content: '!';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Ajuste para manter a consistência visual */
.tab.backup-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Gráficos */
.speedometer {
    position: relative;
    height: 180px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.speedometer.mini {
    height: 140px;
    padding: 10px;
}

.speedometer h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.current-value {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.current-value.big {
    font-size: 32px;
    margin: 5px 0;
}

.subtext {
    font-size: 12px;
    color: #777;
}

/* Carrossel de perfis */
.profile-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.profile-card {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* Ticker de notícias */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #343a40;
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
}

.news-label {
    background: #007bff;
    padding: 5px 15px;
    margin-right: 15px;
    font-weight: bold;
    white-space: nowrap;
}

.news-content {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Layout */
.compact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-gauges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
/* Estilos gerais */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tab {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #3d566e;
}

.tab.active {
    background-color: #e74c3c;
}

.tab i {
    font-size: 14px;
}

/* Cards de resumo */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #7f8c8d;
}

.counter {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

/* Seção de gráficos */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.hodometer-card {
    position: relative;
    height: 250px;
}

.hodometer-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Grid de estatísticas de perfis */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
   
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

/* Carrossel de perfis */
.profile-carousel {
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 180px;
}

.carousel-profile {
    position: relative;
    min-width: 100%;
    height: 100%;
}

.carousel-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.profit-watermark {
    position: absolute;
    font-size: 72px;
    font-weight: bold;
    opacity: 0.3;
    color: #2ecc71;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.profile-info h4 {
    margin: 0;
    font-size: 16px;
}

.profile-info p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Gráficos de meia-lua */
.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.chart-center-text::after {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Lembretes SMS */
.sms-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-profile {
    text-align: center;
}

.sms-profile h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2c3e50;
}

.days-left {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.days-left.urgent {
    color: #e74c3c;
}

.sms-profile p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
    z-index: 1000;
}

.news-label {
    background: #e74c3c;
    padding: 5px 15px;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
}

.news-content {
    white-space: nowrap;
    overflow: hidden;
    animation: ticker 30s linear infinite;
}

.news-content span {
    margin-right: 30px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Background */
.world-map-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .summary-cards, .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .summary-cards, .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        justify-content: center;
    }
}
/* Adicione isso ao seu style.css */
.hodometer-card {
    position: relative;
    height: 250px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hodometer-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
    position: relative;
    z-index: 2;
}

.hodometer-marker {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #7f8c8d;
}

.hodometer-marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #7f8c8d;
    transform: translateX(-50%);
}

/* Correção para o carrossel */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 180px;
    width: 100%;
}

.carousel-profile {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* Correção para os gráficos menores */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    min-height: 300px;
    overflow: hidden;
}

.stat-card1 {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 250px;
    overflow: hidden;
}
.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Melhorias no hodômetro */
.hodometer-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 0 20px;
}

.hodometer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    background: #2ecc71;
    border-radius: 5px;
    margin: 0 20px;
    transition: width 1s ease;
}

/* Estilos gerais */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 60px; /* Espaço para o news ticker */
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tab {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #3d566e;
}

.tab.active {
    background-color: #e74c3c;
}

.tab i {
    font-size: 14px;
}

/* Cards de resumo */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #7f8c8d;
}

.counter {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

/* Seção de gráficos */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chart-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.hodometer-card {
    position: relative;
    height: 250px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.hodometer-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
    position: relative;
    z-index: 2;
}

.hodometer-marker {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #7f8c8d;
}

.hodometer-marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #7f8c8d;
    transform: translateX(-50%);
}

.hodometer-track {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 20px;
}

.hodometer-progress {
    position: absolute;
    bottom: 20px;
    left: 0;
    height: 8px;
    background: #27ae60;
    border-radius: 4px;
    margin: 0 20px;
    transition: width 1s ease;
    z-index: 1;
}

/* Grid de estatísticas de perfis */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-cardx {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 70px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

/* Carrossel de perfis */
.profile-carousel {
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 180px;
    width: 100%;
}

.carousel-profile {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.profit-watermark {
    position: absolute;
    font-size: 72px;
    font-weight: bold;
    opacity: 0.3;
    color: #2ecc71;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.profile-info h4 {
    margin: 0;
    font-size: 16px;
}

.profile-info p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Gráficos de meia-lua */
.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.chart-center-text::after {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Lembretes SMS */
.sms-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-profile {
    text-align: center;
    width: 100%;
}

.sms-profile h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2c3e50;
}

.days-left {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.days-left.urgent {
    color: #e74c3c;
}

.sms-profile p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.news-label {
    background: #e74c3c;
    padding: 5px 15px;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
}

.news-content {
    white-space: nowrap;
    overflow: hidden;
    animation: ticker 30s linear infinite;
}

.news-content span {
    margin-right: 30px;
    display: inline-block;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Background */
.world-map-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .summary-cards, .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .summary-cards, .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .news-label {
        display: none;
    }
}

/* [Todo o CSS anterior permanece igual] */

/* Correções para o carrossel */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 180px;
    width: 100%;
}

.carousel-profile {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

/* Correções para o news ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2c3e50;
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.news-label {
    background: #e74c3c;
    padding: 5px 15px;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-content {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%; /* Garante que comece fora da tela */
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Garantir que o ticker não sobreponha o conteúdo */
.container {
    padding-bottom: 60px; /* Espaço para o news ticker */
}

/* Estilos para os contadores de SMS */
.sms-summary {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.sms-summary i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.sms-summary h3 {
    margin: 5px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.sms-summary p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.sms-summary.urgent {
    background-color: #ffebee;
    border-left: 4px solid #e74c3c;
}

.sms-summary.urgent i {
    color: #e74c3c;
}

/* News Ticker melhorado */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    height: 40px;
    overflow: hidden;
}

.news-label {
    background: #e74c3c;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 2;
}

.news-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Espaço para o ticker */
.container {
    padding-bottom: 40px;
}

/* Layout da seção de estatísticas */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Ajuste para o quarto card que agora é de SMS */
.stat-card.sms-reminder {
    grid-column: span 1;
}
/* Estilos para o alerta de SMS */
.sms-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #e3f2fd;
}

.sms-alert.urgent {
    background: #ffebee;
    color: #c62828;
}

.sms-alert i {
    font-size: 1.2rem;
}

/* Ajustes mínimos no news ticker */
.news-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(30%); }
    100% { transform: translateX(-100%); }
}

/* Correção para o logo */
.logo {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Estilos para o card de SMS */
.sms-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    background: #e3f2fd;
    text-align: center;
}

.sms-status i {
    font-size: 24px;
    color: #1976d2;
}

.sms-status.urgent {
    background: #ffebee;
    color: #c62828;
}

.sms-status.urgent i {
    color: #c62828;
}

.sms-status small {
    font-size: 12px;
    color: #666;
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    height: 40px;
    overflow: hidden;
}

.news-label {
    background: #e74c3c;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.news-content {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Espaço para o ticker */
.container {
    padding-bottom: 40px;
}

/* Gráficos */
.chart-card {
    position: relative;
    height: 250px;
}

/* Hodômetro */
.hodometer-marker {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #7f8c8d;
}

.hodometer-marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #7f8c8d;
    transform: translateX(-50%);
}

.hodometer-progress {
    position: absolute;
    bottom: 20px;
    left: 0;
    height: 8px;
    background: #27ae60;
    border-radius: 4px;
    transition: width 1s ease;
}
/* Estilos para os cards de operações bancárias */
.operation-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.deposit-card {
    border-left: 5px solid #4CAF50;
}

.withdraw-card {
    border-left: 5px solid #F44336;
}

.commission-card {
    border-left: 5px solid #FFC107;
}

.operation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos para as transações */
.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.transaction.deposit {
    border-left: 3px solid #4CAF50;
}

.transaction.withdraw {
    border-left: 3px solid #F44336;
}

.transaction-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.transaction-date {
    width: 100px;
    color: #666;
}

.transaction-type {
    width: 150px;
    font-weight: 500;
}

.transaction-description {
    flex-grow: 1;
    color: #555;
}

.transaction-amount {
    width: 100px;
    text-align: right;
    font-weight: 500;
}

.delete-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #F44336;
}

/* Layout responsivo para as operações */
.bank-operations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* Estilos específicos para o News Ticker */
.news-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.news-label {
    background: var(--danger-color);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.news-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    font-size: 14px;
}

.news-item {
    display: inline-block;
    margin-right: 30px;
    color: white;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Espaço para o ticker */
.container {
    padding-bottom: 40px !important;
}

/* Estilo para o card de documentos */
.operation-card.documents-card {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

/* Estilo para o formulário de documentos */
#documents-form .form-group {
    margin-bottom: 15px;
}

#documents-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#documents-form input[type="text"],
#documents-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#documents-form textarea {
    resize: vertical;
    min-height: 60px;
}

.or-text {
    display: block;
    text-align: center;
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

/* Ícone de documentos nos perfis */
.profile-has-documents {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff9800;
    
}

/* Modal para visualizar documentos */
.document-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.document-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.document-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.document-item img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    margin: 10px auto;
}

/* Estilos para tabelas de relatórios */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.report-table th, 
.report-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.report-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
    position: sticky;
    top: 0;
}

.report-table tr:hover {
    background-color: #f9f9f9;
}

.report-table .text-success { 
    color: #4CAF50;
    font-weight: 500;
}

.report-table .text-danger { 
    color: #F44336;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

.status-badge.active { 
    background-color: #e8f5e9; 
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-badge.limited { 
    background-color: #ffebee; 
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-badge.reserve { 
    background-color: #fff8e1; 
    color: #f57f17;
    border: 1px solid #ffe082;
}

.report-section {
    margin-bottom: 30px;
    overflow-x: auto;
}

.report-section h4 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
/* Estilos específicos para a página de Gestão de Banca */
.bankroll-content {
    padding: 20px;
    color: #333;
}

.bankroll-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.filter-group label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #555;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #219653;
}

.bankroll-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
    min-width: 300px;
}


.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-value.positive {
    color: #27ae60;
}

.stat-value.negative {
    color: #e74c3c;
}

.stat-date {
    font-size: 12px;
    color: #777;
}

.performance-chart-container {
    flex: 2;
    min-width: 400px;
    height: 300px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bankroll-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.bankroll-table {
    width: 100%;
    border-collapse: collapse;
}

.bankroll-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid #eee;
}

.bankroll-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bankroll-table tr:hover {
    background-color: #f8f9fa;
}

.result-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.result-badge.green {
    background-color: #27ae60;
}

.result-badge.red {
    background-color: #e74c3c;
}

.result-badge.aguardando {
    background-color: #f39c12;
}

.result-badge.reembolso {
    background-color: #3498db;
}

.result-badge.anulada {
    background-color: #95a5a6;
}

.result-badge.em-andamento {
    background-color: #9b59b6;
}

.positive {
    color: #27ae60;
    font-weight: 500;
}

.negative {
    color: #e74c3c;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #555;
    transition: color 0.3s;
}

.btn-edit:hover {
    color: #3498db;
}

.btn-delete:hover {
    color: #e74c3c;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.replicate-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.replicate-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .bankroll-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bankroll-table th, 
    .bankroll-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
}

/* Estilos para autocomplete e select2 */
datalist {
    display: none;
}

.bookmaker-option {
    display: flex;
    align-items: center;
    gap: 10px;
}


.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Estilos para os campos de autocomplete */
input[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 12px;
    padding-right: 30px;
}

/* Estilos para a tabela com a coluna de casa de apostas */
.bankroll-table th:nth-child(8),
.bankroll-table td:nth-child(8) {
    min-width: 120px;
}

/* Modal de edição de perfil */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.edit-profile-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.edit-profile-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.edit-profile-modal h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.edit-profile-modal .form-group {
    margin-bottom: 15px;
}

.edit-profile-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.edit-profile-modal input,
.edit-profile-modal select,
.edit-profile-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-profile-modal textarea {
    resize: vertical;
    min-height: 80px;
}
/* Estilos para visualização de documentos */
.document-thumbnail {
    max-width: 100px;
    max-height: 100px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s;
}

.document-thumbnail:hover {
    transform: scale(1.05);
}

.document-image {
    max-width: 100%;
    max-height: 200px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.document-enlarged {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.enlarged-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.enlarged-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.close-enlarged {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #777;
    cursor: pointer;
}

.close-enlarged:hover {
    color: #333;
}

.document-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.document-modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.document-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.document-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
/* Estilos para visualização de documentos */
.document-thumbnail {
    max-width: 100px;
    max-height: 100px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s;
    margin-top: 5px;
}

.document-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.document-enlarged {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.enlarged-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.enlarged-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-enlarged {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #777;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-enlarged:hover {
    color: #333;
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

/* Bookmaker styles */
.bookmaker-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    font-size: 14px;
    margin: -8px -8px 8px -8px;
    position: relative;
    z-index: 1;
}

.bookmaker-name {
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}

.item-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

/* Remove a borda lateral colorida padrão e substitui pelo status no canto */
.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #1E88E5;
}

.item-card.status-reserve::before {
    background-color: #FFC107;
}

.item-card.status-active::before {
    background-color: #4CAF50;
}

.item-card.status-limited::before {
    background-color: #F44336;
}

/* Ajustes para o cabeçalho do bookmaker */
.item-card .bookmaker-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* Novo estilo para o cabeçalho unificado */

.bookmaker-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.bookmaker-logo {
    height: 24px;
    max-width: 100px;
    object-fit: contain;
}

.card-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-icon, .document-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-icon {
    color: #666;
}

/* Ajuste fino para o card */
.item-card {
    padding-top: 4px; /* Compensa a borda superior */
}

/* Mantenha os estilos existentes para status */
.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.item-card.status-reserve::before {
    background-color: #FFC107;
}

.item-card.status-active::before {
    background-color: #4CAF50;
}

.item-card.status-limited::before {
    background-color: #F44336;
}

/* Estilo atualizado para os ícones */
.card-icons {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre os ícones */
    margin-left: auto; /* Empurra para a direita */
}

.status-icon, .document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.status-icon {
    color: inherit; /* Herda a cor do elemento pai */
}

.document-icon {
    color: #666;
    
}

/* Ajuste fino para o cabeçalho */


.bookmaker-logo-container {
    flex-grow: 1;
}

/* Layout de grid para o cabeçalho */
.card-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 8px 12px;
    margin: -8px -8px 8px -8px;
    background: white;
    border-bottom: 1px solid #eee;
    gap: 30px;
}

.bookmaker-logo-cell {
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.icons-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Estilo dos ícones */


.document-icon {
    color: #666;
   
}

/* Borda superior com cor do bookmaker */
.item-card {
    position: relative;
    border-top: 4px solid var(--bookmaker-color, transparent);
}
.bankroll-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

#current-balance {
    font-weight: bold;
    font-size: 1.1em;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.bookmaker-cell {
    text-align: center;
}

.bookmaker-logo {
    max-height: 20px;
    max-width: 60px;
    vertical-align: middle;
}
.bookmaker-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookmaker-logo {
    height: 20px;
    max-width: 60px;
    object-fit: contain;
}

.bookmaker-name {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.bookmaker-cell {
    padding: 8px !important;
}
.bookmaker-logo {
    max-height: 20px;
    max-width: 80px;
    object-fit: contain;
}

.bookmaker-cell {
    text-align: center;
    padding: 8px;
}
.bookmaker-logo {
    max-width: 80px;
    max-height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.bookmaker-cell {
    min-width: 100px;
    text-align: center;
}

.profit-display.positive {
    color: #4CAF50;
    font-weight: bold;
}

.profit-display.negative {
    color: #F44336;
    font-weight: bold;
}
/* Estilos para bookmakers */
.bookmaker-cell {
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
}

.bookmaker-logo {
    max-width: 80px;
    max-height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.bookmaker-id {
    font-size: 0.8em;
    color: #666;
}

/* Estilos para saldos */
.balance-display {
    font-weight: bold;
    font-size: 1.2em;
}

.balance-positive {
    color: #4CAF50;
}

.balance-negative {
    color: #F44336;
}

.balance-neutral {
    color: #FFC107;
}
.error-message {
    color: #ff4444;
    background: #ffeeee;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.profile-mismatch {
    animation: shake 0.5s;
    border-color: #ff4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.form-group {
    margin-bottom: 15px;
}
/* Estilos para os cards de resultados por bookmaker */
.bookmakers-results-container {
    margin: 20px 0;
    width: 100%;
    overflow-x: auto;
}

.bookmakers-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    justify-content: flex-start;
    align-items: center;
}

.bookmaker-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.bookmaker-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bookmaker-logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.bookmaker-logo {
    max-height: 100%;
    max-width: 100px;
    object-fit: contain;
}

.bookmaker-name-fallback {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.bookmaker-profit {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}

.bookmaker-profit.positive {
    color: #27ae60;
}

.bookmaker-profit.negative {
    color: #e74c3c;
}

.bookmaker-profit.neutral {
    color: #333;
}
.profile-display {
    display: none;
    align-items: center;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.7); /* Fundo mais visível */
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-picture {
    width: 50px;  /* Aumentei de 30 para 50 */
    height: 50px; /* Aumentei de 30 para 50 */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 3px solid #fff; /* Borda mais grossa */
}

.profile-name {
    font-size: 16px; /* Aumentei o tamanho */
    font-weight: 600;
    color: #333; /* Mudei de branco (#fff) para preto (#333) */
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.bankroll-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .bankroll-summary {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .profile-display {
        order: -1;
        width: 100%;
        justify-content: center; /* Centralizado em mobile */
        margin-bottom: 10px;
        padding: 6px 12px;
    }
    
    .profile-picture {
        width: 40px;
        height: 40px;
    }
    
    .profile-name {
        font-size: 14px;
    }
}
/* Ajuste para os filtros de odds */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.filter-group label {
    white-space: nowrap;
    margin-right: 5px;
    font-size: 0.9em;
}

.filter-group input {
    width: 160px !important; /* Largura fixa para os campos de odd */
    padding: 5px 8px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        margin-bottom: 8px;
    }
    
    .filter-actions {
        margin-left: 0;
        margin-top: 10px;
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.form-group {
    margin-bottom: 15px;
}

/* Background do Mapa Mundi */
.world-map-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/1200px-World_map_-_low_resolution.svg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -2; /* Coloque um nível abaixo do overlay */
    animation: moveBackground 120s linear infinite;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Camada overlay (fundo escuro) */
.world-map-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo quase preto (aumente para 0.9 ou 1 se necessário) */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efeito no modo escuro */
.world-map-bg.dark-mode {
    filter: brightness(2) contrast(1.3); /* Aumenta o brilho dos continentes */
    opacity: 0.4; /* Torna a imagem mais visível */
}

.world-map-bg.dark-mode::before {
    opacity: 1; /* Ativa o overlay escuro */
}
/* Loader Global */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}