/* =====================================================
   DBS TELECOM - HOTSPOT SYSTEM STYLES
   Arquivo CSS centralizado para todo o sistema
   ===================================================== */

/* =====================================================
   VARIÁVEIS CSS GLOBAIS
   ===================================================== */
   :root {
    --dbs-orange: #FF4500;
    --dbs-red: #E53E3E;
    --dbs-dark-orange: #D73502;
    --dbs-light-orange: #FF6B35;
    --dbs-gray: #4A5568;
    --dbs-light-gray: #718096;
    --dbs-bg-gray: #F7FAFC;
    --dbs-border-gray: #E2E8F0;
    --dbs-success: #10b981;
    --dbs-warning: #f59e0b;
    --dbs-danger: #ef4444;
    --dbs-success-light: #C6F6D5;
}

/* =====================================================
     RESET E ESTILOS BASE
     ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dbs-orange), var(--dbs-red));
    min-height: 100vh;
    padding: 15px;
}

/* =====================================================
     CONTAINERS PRINCIPAIS
     ===================================================== */
.register-container,
.dashboard-container,
.container {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    max-height: 92vh;
    overflow-y: auto;
}

.termo-container {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.login-container {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    max-height: 95vh;
    overflow-y: auto;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dashboard-container {
    max-width: 1200px;
}

.container {
    max-width: 1400px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* =====================================================
     HEADERS
     ===================================================== */
.header,
.login-header,
.register-header {
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.termo-header {
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before,
.login-header::before,
.register-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.termo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header h1,
.login-header h1,
.register-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.termo-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.header p,
.login-header p,
.register-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.termo-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* =====================================================
     LOGO E BRANDING
     ===================================================== */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.brand-text {
    text-align: left;
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.brand-text .telecom {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 2px;
}

/* =====================================================
     BOTÕES DE NAVEGAÇÃO
     ===================================================== */
.logout-btn,
.disconnect-btn,
.back-btn,
.admin-btn {
    position: absolute;
    top: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.logout-btn {
    right: 15px;
}

.disconnect-btn {
    right: 90px;
}

.back-btn,
.admin-btn {
    left: 15px;
}

.logout-btn:hover,
.disconnect-btn:hover,
.back-btn:hover,
.admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* =====================================================
     CONTEÚDO PRINCIPAL
     ===================================================== */
.content,
.login-content,
.register-content {
    padding: 25px;
}

.termo-content {
    padding: 25px;
}

.tab-content {
    display: none;
    padding: 20px;
    min-height: 400px;
}

.tab-content.active {
    display: block;
}

/* =====================================================
     SISTEMA DE TABS
     ===================================================== */
.tabs {
    display: flex;
    background: var(--dbs-bg-gray);
    border-bottom: 1px solid var(--dbs-border-gray);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 8px;
    text-align: center;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--dbs-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab.active {
    color: var(--dbs-orange);
    background: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dbs-orange);
}

.tab:hover:not(.active) {
    color: #475569;
    background: #f1f5f9;
}

.tab i {
    margin-right: 4px;
    font-size: 14px;
}

.tab-text {
    display: none;
}

/* =====================================================
     FORMULÁRIOS
     ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dbs-gray);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--dbs-border-gray);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--dbs-bg-gray);
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: var(--dbs-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-input::placeholder {
    color: var(--dbs-light-gray);
}

/* =====================================================
     BOTÕES
     ===================================================== */
.btn,
.login-btn,
.register-btn,
.scan-btn,
.social-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.login-btn,
.register-btn {
    background: linear-gradient(135deg, var(--dbs-orange), var(--dbs-red));
    color: white;
    width: 100%;
    font-size: 15px;
}

.btn-primary::before,
.login-btn::before,
.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.login-btn:hover::before,
.register-btn:hover::before {
    left: 100%;
}

.btn-primary:hover,
.login-btn:hover,
.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

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

.btn-success {
    background: #10b981;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
     SCAN E ADMIN BUTTONS
     ===================================================== */
.scan-btn {
    background: linear-gradient(135deg, var(--dbs-orange), var(--dbs-red));
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.scan-btn.admin {
    background: linear-gradient(135deg, var(--dbs-success), #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.scan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.scan-btn.admin:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* =====================================================
     SOCIAL BUTTONS
     ===================================================== */
.social-btn {
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    color: white;
    border-radius: 25px;
    width: 100%;
    max-width: 200px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* =====================================================
     LINK BUTTONS
     ===================================================== */
.register-btn-link,
.login-btn-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dbs-orange);
    background: white;
    border: 2px solid var(--dbs-orange);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-btn-link:hover,
.login-btn-link:hover {
    background: var(--dbs-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.register-btn-link i,
.login-btn-link i {
    margin-right: 6px;
}

/* =====================================================
     NOTIFICAÇÕES E ALERTAS
     ===================================================== */
.notification {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: var(--dbs-success-light);
    color: var(--dbs-success);
    border: 1px solid #9AE6B4;
}

.notification.error {
    background: #FEE2E2;
    color: var(--dbs-red);
    border: 1px solid #FECACA;
}

.notification i {
    margin-right: 8px;
    font-size: 14px;
}

.notification.show {
    transform: translateY(0);
}

.notification.fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    background: #10b981;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateY(-100px);
    z-index: 1000;
}

.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
}

.alert.warning {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    color: #92400e;
    border: 2px solid #fbbf24;
}

.alert.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* =====================================================
     DIVIDERS
     ===================================================== */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--dbs-light-gray);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dbs-border-gray);
}

.divider span {
    padding: 0 12px;
    background: white;
}

/* =====================================================
     LINKS E SEÇÕES
     ===================================================== */
.register-link,
.login-link {
    text-align: center;
    padding: 16px;
    background: var(--dbs-bg-gray);
    border-radius: 10px;
    margin-bottom: 20px;
}

.register-link p,
.login-link p {
    font-size: 13px;
    color: var(--dbs-gray);
    margin-bottom: 8px;
}

/* =====================================================
     SEÇÃO DE VÍDEO
     ===================================================== */
.video-section {
    text-align: center;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.video-subtitle {
    color: var(--dbs-light-gray);
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 25px;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#player {
    width: 80%;
    height: 100px;
}

.reward-info {
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    display: inline-block;
    font-size: 12px;
}

.reward-info i {
    margin-right: 8px;
    font-size: 14px;
}

/* =====================================================
     SEÇÃO SOCIAL
     ===================================================== */
.social-section {
    text-align: center;
}

.social-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.social-card {
    background: linear-gradient(135deg, var(--dbs-bg-gray) 0%, var(--dbs-border-gray) 100%);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--dbs-orange);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: white;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.social-card p {
    font-size: 0.9rem;
    color: var(--dbs-light-gray);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* =====================================================
     STATUS E ESTATÍSTICAS
     ===================================================== */
.status-section {
    max-width: 100%;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; /* Espaço entre os cards */
    padding: 20px;
}

.status-card {
    background: linear-gradient(135deg, var(--dbs-bg-gray) 0%, var(--dbs-border-gray) 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: linear-gradient(135deg, var(--dbs-bg-gray) 0%, var(--dbs-border-gray) 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Alinha os itens dentro do card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil para destaque */
  }

.status-card:hover,
.stat-card:hover {
    border-color: var(--dbs-orange);
    transform: translateY(-2px);
}

.status-card.primary {
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    color: white;
}

.status-card.success,
.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-card.warning,
.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-card.danger,
.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-card.offline {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.status-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.status-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--dbs-gray);
}

.status-label {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--dbs-light-gray);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* =====================================================
     HISTÓRICO
     ===================================================== */
.history-section {
    margin-top: 30px;
}

.history-title,
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.history-title i,
.section-title i {
    margin-right: 10px;
    color: var(--dbs-orange);
}

.history-list,
.user-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--dbs-border-gray);
}

.history-item,
.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.history-item:last-child,
.table-row:last-child {
    border-bottom: none;
}

.history-item:hover,
.table-row:hover {
    background: #f9fafb;
}

.history-info,
.user-info {
    display: flex;
    align-items: center;
}

.history-icon,
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
    font-weight: 700;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--dbs-orange), var(--dbs-red));
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
    font-size: 0.9rem;
}

.history-icon.video {
    background: #ef4444;
}
.history-icon.instagram {
    background: #e1306c;
}
.history-icon.facebook {
    background: #1877f2;
}
.history-icon.youtube {
    background: #ff0000;
}
.history-icon.whatsapp {
    background: #25d366;
}
.history-icon.daily {
    background: #10b981;
}

.history-details,
.user-details {
    flex: 1;
}

.history-details h4,
.user-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.user-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.history-details p,
.user-details p {
    font-size: 0.8rem;
    color: var(--dbs-light-gray);
}

.user-details p {
    font-size: 0.85rem;
}

.history-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
}

/* =====================================================
     TABLE STYLES
     ===================================================== */
.table-header {
    background: linear-gradient(135deg, var(--dbs-bg-gray) 0%, #f1f5f9 100%);
    padding: 20px 25px;
    font-weight: 700;
    color: var(--dbs-gray);
    border-bottom: 2px solid var(--dbs-border-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 120px;
    align-items: center;
}

/* =====================================================
     STATUS BADGES
     ===================================================== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--dbs-success);
    border: 1px solid #a7f3d0;
}

.status-badge.offline {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--dbs-danger);
    border: 1px solid #fca5a5;
}

.status-badge.orphan {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    color: #d97706;
    border: 1px solid #fbbf24;
}

/* =====================================================
     ACTION BUTTONS
     ===================================================== */
.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--dbs-danger);
    border: 1px solid #fca5a5;
}

.action-btn.warning {
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    color: #d97706;
    border: 1px solid #fbbf24;
}

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

/* =====================================================
     FEATURES E BENEFITS
     ===================================================== */
.features,
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefits {
    grid-template-columns: 1fr;
}

.feature,
.benefit {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    background: #FFF5F5;
    border-radius: 8px;
    border-left: 3px solid var(--dbs-orange);
    text-align: center;
}

.benefit {
    padding: 12px;
    text-align: left;
}

.feature {
    flex-direction: column;
}

.feature-icon,
.benefit-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--dbs-orange) 0%, var(--dbs-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.benefit-icon {
    margin-right: 12px;
    margin-bottom: 0;
}

.feature-text,
.benefit-text {
    flex: 1;
}

.feature-text h4,
.benefit-text h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--dbs-gray);
    margin-bottom: 2px;
}

.benefit-text h4 {
    font-size: 13px;
}

.feature-text p,
.benefit-text p {
    font-size: 10px;
    color: var(--dbs-light-gray);
    line-height: 1.3;
}

.benefit-text p {
    font-size: 11px;
}

/* =====================================================
     LOADING E EMPTY STATES
     ===================================================== */
.loading,
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--dbs-light-gray);
}

.empty-state {
    padding: 60px 40px;
}

.loading i,
.empty-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dbs-orange);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--dbs-success);
}

.loading i {
    animation: spin 1s linear infinite;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dbs-gray);
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* =====================================================
     SCAN SECTION
     ===================================================== */
.scan-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--dbs-bg-gray) 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid var(--dbs-border-gray);
    position: relative;
    overflow: hidden;
}

.scan-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 69, 0, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.scan-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dbs-gray);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.scan-section p {
    font-size: 1.1rem;
    color: var(--dbs-light-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* =====================================================
     TOGGLE SWITCH
     ===================================================== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--dbs-orange);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* =====================================================
     LOGS CONTAINER
     ===================================================== */
.logs-container {
    background: #1a1a1a;
    color: #00ff00;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.log-info {
    color: #00ff00;
}
.log-warning {
    color: #ffff00;
}
.log-error {
    color: #ff0000;
}

/* =====================================================
     RESULT CONTAINER
     ===================================================== */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.result.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.result.error {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

/* =====================================================
     ANIMAÇÕES
     ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature {
    animation: fadeInLeft 0.6s ease;
    animation-fill-mode: both;
}

.feature:nth-child(1) {
    animation-delay: 0.1s;
}
.feature:nth-child(2) {
    animation-delay: 0.15s;
}
.feature:nth-child(3) {
    animation-delay: 0.2s;
}
.feature:nth-child(4) {
    animation-delay: 0.25s;
}

/* =====================================================
     SCROLLBAR PERSONALIZADA
     ===================================================== */
.login-container::-webkit-scrollbar,
.register-container::-webkit-scrollbar,
.termo-container::-webkit-scrollbar,
.dashboard-container::-webkit-scrollbar,
.container::-webkit-scrollbar {
    width: 4px;
}

.login-container::-webkit-scrollbar-track,
.register-container::-webkit-scrollbar-track,
.termo-container::-webkit-scrollbar-track,
.dashboard-container::-webkit-scrollbar-track,
.container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.login-container::-webkit-scrollbar-thumb,
.register-container::-webkit-scrollbar-thumb,
.termo-container::-webkit-scrollbar-thumb,
.dashboard-container::-webkit-scrollbar-thumb,
.container::-webkit-scrollbar-thumb {
    background: var(--dbs-orange);
    border-radius: 2px;
}

.login-container::-webkit-scrollbar-thumb:hover,
.register-container::-webkit-scrollbar-thumb:hover,
.termo-container::-webkit-scrollbar-thumb:hover,
.dashboard-container::-webkit-scrollbar-thumb:hover,
.container::-webkit-scrollbar-thumb:hover {
    background: var(--dbs-red);
}

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

/* Tablets e telas pequenas */
@media (min-width: 480px) {
    body {
        padding: 15px;
    }

    .dashboard-container,
    .container {
        border-radius: 18px;
    }

    .header,
    .login-header,
    .register-header {
        padding: 25px;
    }

    .termo-header {
        padding: 25px;
    }

    .header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 1.7rem;
    }

    .termo-header h1 {
        font-size: 1.7rem;
    }

    .tab {
        min-width: 120px;
        padding: 15px 10px;
        font-size: 13px;
    }

    .tab i {
        margin-right: 5px;
        font-size: 15px;
    }

    .tab-text {
        display: inline;
    }

    .tab-content {
        padding: 30px;
    }

    #player {
        height: 300px;
    }

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

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

/* Tablets grandes e desktops pequenos */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    .dashboard-container,
    .container {
        border-radius: 20px;
    }

    .header,
    .login-header,
    .register-header {
        padding: 30px;
    }

    .termo-header {
        padding: 30px;
    }

    .header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 2rem;
        padding-right: 0;
    }

    .termo-header h1 {
        font-size: 2rem;
        padding-right: 0;
    }

    .header p,
    .login-header p,
    .register-header p {
        font-size: 1.1rem;
    }

    .termo-header p {
        font-size: 1.1rem;
    }

    .logout-btn,
    .disconnect-btn,
    .back-btn,
    .admin-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .tab {
        padding: 20px;
        font-size: 16px;
        min-width: auto;
    }

    .tab i {
        margin-right: 8px;
        font-size: 18px;
    }

    .tab-content,
    .content,
    .login-content,
    .register-content {
        padding: 40px;
    }

    .termo-content {
        padding: 40px;
    }

    .tab-content {
        min-height: 500px;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-subtitle {
        font-size: 1.3rem;
    }

    #player {
        height: 450px;
    }

    .reward-info {
        padding: 20px;
        font-size: 14px;
    }

    .reward-info i {
        font-size: 18px;
    }

    .social-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .social-card {
        padding: 30px;
    }

    .social-icon {
        width: 80px;
        height: 80px;
        font-size: 35px;
        margin-bottom: 20px;
    }

    .social-card h3 {
        font-size: 1.2rem;
    }

    .social-card p {
        font-size: 1rem;
    }

    .social-btn {
        padding: 15px 30px;
        font-size: 16px;
        width: auto;
    }

    .status-grid,
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .notification.fixed {
        right: 20px;
        left: auto;
        max-width: 400px;
        font-size: 16px;
    }
}

/* Desktops grandes */
@media (min-width: 1024px) {
    .social-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .table-row {
        grid-template-columns: 2fr 1fr 1fr 1fr 120px;
        gap: 0;
        text-align: left;
    }

    .table-header {
        display: block;
    }

    .button-group {
        flex-direction: row;
        align-items: center;
    }

    .scan-btn {
        width: auto;
        justify-content: center;
    }
}

/* Telas muito pequenas */
@media (max-width: 360px) {
    .header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 1.2rem;
    }

    .termo-header h1 {
        font-size: 1.2rem;
    }

    .header p,
    .login-header p,
    .register-header p {
        font-size: 0.85rem;
    }

    .termo-header p {
        font-size: 0.85rem;
    }

    .tab {
        padding: 12px 8px;
        font-size: 12px;
    }

    .tab i {
        margin-right: 3px;
        font-size: 14px;
    }

    .video-title {
        font-size: 1.1rem;
    }

    .video-subtitle {
        font-size: 1.1rem;
    }

    .social-card {
        padding: 20px 15px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .status-card,
    .stat-card {
        padding: 15px;
    }

    .status-value,
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Telas baixas */
@media (max-height: 700px) {
    .header,
    .login-header,
    .register-header {
        padding: 20px 25px;
    }

    .termo-header {
        padding: 20px 25px;
    }

    .logo {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    .brand-text h1 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .brand-text .telecom {
        font-size: 0.8rem;
    }

    .header p,
    .login-header p,
    .register-header p {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .termo-header p {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .content,
    .login-content,
    .register-content {
        padding: 20px 25px;
    }

    .termo-content {
        padding: 20px 25px;
    }

    .features {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .feature {
        padding: 8px 4px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .feature-text h4 {
        font-size: 10px;
    }

    .feature-text p {
        font-size: 8px;
    }
}

/* Responsividade para tablets em modo retrato */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }

    .table-header {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container,
    .dashboard-container {
        border-radius: 15px;
    }

    .header,
    .login-header,
    .register-header {
        padding: 30px 20px;
    }

    .termo-header {
        padding: 30px 20px;
    }

    .header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 1.8rem;
    }

    .termo-header h1 {
        font-size: 1.8rem;
    }

    .content,
    .login-content,
    .register-content {
        padding: 30px 20px;
    }

    .termo-content {
        padding: 30px 20px;
    }

    .scan-section {
        padding: 30px 20px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid,
    .status-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header,
    .login-header,
    .register-header {
        padding: 25px 15px;
    }

    .termo-header {
        padding: 25px 15px;
    }

    .header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 1.5rem;
    }

    .termo-header h1 {
        font-size: 1.5rem;
    }

    .content,
    .login-content,
    .register-content {
        padding: 25px 15px;
    }

    .termo-content {
        padding: 25px 15px;
    }

    .scan-section {
        padding: 25px 15px;
    }

    .scan-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .back-btn,
    .logout-btn,
    .disconnect-btn,
    .admin-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

.copyright-footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    color: #fff;
    text-align: center;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
}

.copyright-footer p {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    letter-spacing: 0.02em;
}

.terms-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.terms-header {
    text-align: center;
    margin-bottom: 30px;
}

.terms-header .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.terms-header .logo img {
    height: 45px;
    width: 45px;
}

.terms-header .brand-text h1 {
    font-size: 32px;
    margin: 0;
    color: #333;
}

.terms-header .telecom {
    font-size: 16px;
    color: #777;
}

.terms-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.terms-content h3 {
    font-size: 22px;
    color: #444;
    margin-top: 20px;
}

.terms-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.terms-footer {
    text-align: center;
    margin-top: 40px;
}

.terms-footer .back-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.terms-footer .back-link:hover {
    text-decoration: underline;
}


.termos-content h2 {
    font-size: 10px;
    /* Diminuímos o tamanho do título principal */
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}