:root {
    --primary-color: #fe2c55;
    --secondary-color: #121212;
    --text-color: #ffffff;
    --text-secondary: #888888;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --background-dark: #1a1a1a;
    --background-light: #2a2a2a;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 100vh;
}


.sidebar {
    background-color: var(--background-dark);
    padding: 20px;
    border-right: 1px solid var(--background-light);
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--background-light);
}

.sidebar-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.sidebar-header h1 {
    font-size: 24px;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.sidebar-links {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--background-light);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-link:hover {
    background-color: var(--background-light);
    transform: translateX(5px);
}

.sidebar-link i {
    color: var(--success-color);
    font-size: 16px;
}


.connection-panel {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.connection-panel h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-panel h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    background-color: var(--background-dark);
    border: 1px solid var(--background-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.button-group .btn {
    flex: 1;
}


.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn i {
    font-size: 18px;
}

.btn span {
    font-size: 14px;
}


.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
}


.btn.pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: visible;
}

.btn.pulse * {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


.btn-primary {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.btn-danger {
    background-color: #f44336;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.btn-secondary {
    background-color: var(--background-dark);
    color: var(--text-color);
    border: 1px solid var(--background-light);
}

.btn-secondary:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::after {
    display: none;
}


#connectionButton,
#connectionButton.btn-primary,
#connectionButton.btn-danger {
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}


#connectionButton.btn-primary {
    background-color: #4CAF50 !important;
    color: white !important;
}

#connectionButton.btn-danger {
    background-color: #f44336 !important;
    color: white !important;
}


#connectionButton i {
    font-size: 16px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    transform: none !important;
    position: relative !important;
    z-index: 1 !important;
}


#connectionButton:hover i {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}


#connectionButton.pulse {
    animation: pulse 2s infinite !important;
}

#connectionButton.pulse::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: inherit !important;
    animation: pulse 2s infinite !important;
    z-index: -1 !important;
    border-radius: 6px !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4) !important;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0) !important;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) !important;
    }
}


#status.btn {
    padding: 12px 20px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background-dark);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--background-light);
}

#status.btn.pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: visible;
}

#status.btn.pulse * {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


.stats-panel {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-panel h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-panel h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
    background-color: rgba(254, 44, 85, 0.1);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 15px;
    flex: 1;
}

.stat-item strong {
    margin-left: auto;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}


.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    background-color: var(--background-dark);
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
}

.status-badge i {
    font-size: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.status-badge span {
    line-height: 1;
}

.status-badge.connected {
    color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

.status-badge.connected i {
    color: var(--success-color);
}

.status-badge.disconnected {
    color: var(--danger-color);
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.2);
}

.status-badge.disconnected i {
    color: var(--danger-color);
}

.status-badge.connecting, .status-badge.retrying {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.2);
}

.status-badge.connecting i, .status-badge.retrying i {
    color: #ff9800;
    animation: pulse 1s infinite;
}

.status-badge.error {
    color: #9c27b0;
    background-color: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.2);
}

.status-badge.error i {
    color: #9c27b0;
}

.status-badge.ratelimit {
    color: #e91e63;
    background-color: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
    font-weight: bold;
}

.status-badge.ratelimit i {
    color: #e91e63;
    animation: pulse 1s infinite;
}

.status-badge.ready {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

.status-badge.ready i {
    color: #2196f3;
}

.status-badge.disconnecting {
    color: #607d8b;
    background-color: rgba(96, 125, 139, 0.1);
    border-color: rgba(96, 125, 139, 0.2);
}

.status-badge.disconnecting i {
    color: #607d8b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


.main-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.filters {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--background-light);
}

.filter-btn {
    background-color: var(--background-light);
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--background-dark);
    color: var(--text-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.action-btn {
    margin-left: 5px;
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* O primeiro botão de ação terá margin-left: auto para empurrar para a direita */
.action-btn:first-of-type {
    margin-left: auto;
}

.action-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#visitors-btn {
    background-color: #3498db;
}

#visitors-btn:hover {
    background-color: #2980b9;
}


.chat-container {
    flex: 1;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 15px;
    display: block;
}


.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.4;
    min-height: 35px;
    max-height: fit-content;
    margin-right: 15px;
}

.message-time {
    color: var(--text-secondary);
    font-size: 11px;
    width: 45px;
    flex-shrink: 0;
}

.message-user {
    color: var(--primary-color);
    font-weight: bold;
    min-width: 100px;
    max-width: 150px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-content {
    color: var(--text-color);
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
    padding-right: 10px;
    line-height: 1.4;
}

.message.chat {
    border-left: 2px solid var(--primary-color);
}

.message.gift {
    border-left: 2px solid #ffd700;
    background-color: rgba(255, 215, 0, 0.05);
}

.message.member {
    border-left: 2px solid #00f2ea;
    background-color: rgba(0, 242, 234, 0.05);
}

.message.system {
    border-left: 2px solid var(--text-secondary);
    background-color: rgba(136, 136, 136, 0.05);
    font-style: italic;
}


.error-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--danger-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}


.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.success-message i {
    font-size: 18px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e62a4d;
}


@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-sidebar {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 15px;
        margin-top: 50px;
    }

    .chat {
        height: calc(100vh - 180px);
    }
    
    .message {
        margin-right: 0;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 10px;
    }
    
    .filters {
        gap: 5px;
        padding-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn, .action-btn {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
    
    .action-btn {
        margin-left: 0;
        width: calc(50% - 5px);
        order: -1;
        margin-bottom: 10px;
    }
    
    .action-btn:first-of-type {
        margin-right: 5px;
        margin-left: 0;
    }
    
    .message {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
    }
    
    .message-time {
        width: auto;
        margin-bottom: 5px;
    }
    
    .message-user {
        max-width: 100%;
        margin-bottom: 5px;
    }
    
    .message-content {
        width: 100%;
        padding-right: 0;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .team-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-points {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .recording-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recording-info {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .recording-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .chat {
        height: calc(100vh - 200px);
    }
}

@media (max-width: 400px) {
    .filter-btn {
        width: calc(50% - 5px);
    }
    
    .sidebar-header h1 {
        font-size: 20px;
    }
    
    .connection-panel h3, .stats-panel h3, .top-gifters-panel h3 {
        font-size: 16px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-item i {
        font-size: 16px;
    }
    
    .stat-item span {
        font-size: 13px;
    }
    
    .stat-item strong {
        font-size: 16px;
    }
}







@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

#connectionButton.pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: visible;
}

#connectionButton.pulse:hover {
    animation: none;
}

.top-gifters-panel, .recordings-panel {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.top-gifters-panel h3, .recordings-panel h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-gifters-panel h3 i, .recordings-panel h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.top-gifters-list, .recordings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilos para a lista de gravações */
.recording-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.recording-item:hover {
    transform: translateX(5px);
    background-color: rgba(254, 44, 85, 0.1);
}

/* Melhorias para o modal de gravações */
.recording-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 2;
    min-width: 0;
}

.recording-name {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    word-break: break-all;
}

.recording-date, .recording-size, .recording-expiry {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 1px;
    font-weight: 400;
    display: block;
}

.recording-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
    display: flex;
    gap: 10px;
    margin-bottom: 2px;
    margin-top: -2px;
    margin-left: 2px;
    font-style: italic;
}

.recording-size, .recording-expiry {
    font-size: inherit;
    color: inherit;
    opacity: 0.9;
    font-style: inherit;
    margin: 0;
}

.recording-item {
    align-items: flex-start;
    padding: 16px 12px;
    gap: 18px;
}

@media (max-width: 600px) {
  .recording-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .recording-actions {
    justify-content: flex-end;
  }
}

.recording-actions {
    display: flex;
    gap: 8px;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    color: white;
}

.action-icon:hover {
    transform: scale(1.1);
}

.download-icon {
    background-color: var(--success-color);
}

.download-icon:hover {
    background-color: #45a049;
}

.delete-icon {
    background-color: var(--danger-color);
}

.delete-icon:hover {
    background-color: #d32f2f;
}

.gifter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #3d3d3d;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.gifter-item:hover {
    background-color: #4d4d4d;
}

.gifter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 70%;
    overflow: hidden;
}

.gifter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.gifter-name {
    color: #fff;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gifter-coins {
    color: #ffd700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gifter-coins i {
    color: #ffd700;
}

.battle-status {
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    color: #888;
    display: block;
}

.battle-stats {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 10px;
}

.battle-stats h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.battle-stats h4 i {
    color: var(--primary-color);
}

.battle-status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 10px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.battle-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.battle-team {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.battle-team.user-team {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(254, 44, 85, 0.05);
}



.battle-team:hover {
    transform: translateX(5px);
    background-color: rgba(254, 44, 85, 0.1);
}

.team-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    overflow: hidden;
}

.team-name-container {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.team-name {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    max-width: 100%;
}





.team-points {
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    background-color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
    margin-left: auto;
}

.team-name.user-team {
    color: #4CAF50;
    font-weight: bold;
}

.team-points.user-team {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.team-points.points-changed {
    animation: points-pulse 0.6s ease;
}

@keyframes points-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.team-points:not(.user-team) {
    background-color: var(--background-dark);
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #666;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.empty-state i {
    font-size: 2rem;
    color: #ff0050;
    opacity: 0.5;
}

.empty-state span {
    font-size: 0.9rem;
}

/* Estilos para o modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos para o contador de visitas */
.stats-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.stats-title {
    font-size: 1.5rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background-color: #333;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #4caf50;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
}

.refresh-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background-color: #45a049;
}

/* Estilos para o modal de visitas */
.visitors-modal-content {
    background: linear-gradient(135deg, #2c3e50, #1a2533);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
}

.visitors-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.visitors-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visitors-header h2 i {
    color: #4CAF50;
    font-size: 1.6rem;
}

.visitors-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visitors-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardAppear 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.visitors-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.visitors-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.visitors-icon {
    font-size: 3rem;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    animation: iconFadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.visitors-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: iconGlow 3s infinite;
}

@keyframes iconFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes iconGlow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.visitors-count {
    text-align: center;
}

.total-count {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    animation: countPulse 2s ease-in-out;
}

@keyframes countPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.count-label {
    font-size: 1.1rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.last-updated {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 20px;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    border-left: 3px solid #4CAF50;
    animation: fadeIn 1s ease-in-out;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.last-updated i {
    color: #4CAF50;
    margin-right: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    margin: 0 15px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--background-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: var(--text-color);
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--success-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

/* Indicador de carregamento */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-secondary);
    text-align: center;
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.loading-indicator span {
    font-size: 1rem;
}

.battle-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.battle-panel h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

#connectionButton.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

#connectionButton.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

#connectionButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#connectionButton:disabled:hover {
    transform: none;
    box-shadow: none;
}

#recordButton.recording {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    animation: pulse 1.5s infinite;
}

#recordButton.recording i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#connectionButton.pulse,
#connectionButton.pulse::before,
#connectionButton.pulse:hover,
#recordButton.recording {
    animation: none;
}

#connectionButton.pulse,
#status.btn.pulse,
#recordButton.pulse {
    animation: pulse 2s infinite;
    position: relative;
    overflow: visible;
}

#connectionButton.pulse *,
#status.btn.pulse *,
#recordButton.pulse * {
    position: relative;
    z-index: 1;
}

#connectionButton.btn-danger {
    border-radius: 6px !important;
} 

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0.95;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.success {
    background-color: rgba(76, 175, 80, 0.9);
    border-left: 4px solid #43a047;
}

.notification.error {
    background-color: rgba(244, 67, 54, 0.9);
    border-left: 4px solid #d32f2f;
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification {
    animation: slideIn 0.3s ease-out forwards;
}

/* Melhorias para o progresso de gravação */
.recording-progress-container {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 18px 20px 14px 20px;
    margin: 18px 0 10px 0;
    max-width: 350px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1.5px solid #222;
    align-items: stretch;
}

.recording-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.08rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 6px;
}

#recordingSizeInfo {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recording-progress-bar {
    width: 100%;
    height: 18px;
    background: #232323;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    margin-top: 2px;
}

.recording-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50 0%, #ffcc33 100%);
    border-radius: 10px 0 0 10px;
    transition: width 0.3s cubic-bezier(.4,2,.6,1), background 0.3s;
    box-shadow: 0 0 8px 0 #4CAF5099;
}

@media (max-width: 600px) {
  .recording-progress-container {
    max-width: 100%;
    min-width: 0;
    padding: 12px 6px 10px 6px;
  }
  .recording-progress-header {
    font-size: 0.98rem;
  }
  #recordingSizeInfo {
    font-size: 0.93rem;
  }
  .recording-progress-bar {
    height: 13px;
  }
}

#circularProgressWrapper {
    display: none;
    position: relative;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 0;
    flex-shrink: 0;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
  #circularProgressWrapper {
    width: 24px;
    height: 24px;
  }
}