
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos para a chave de luta */
.card {
    word-wrap: break-word;
    overflow-wrap: break-word; /* Propriedade moderna que substitui word-wrap */
}

#bracket {
    font-size: 10px;
}

.traco {
    background-color: red;
    height: 1px;
    width: 10px;
    transform: rotate(6.283185307179586rad); /* Versão sem prefixo */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact; /* Propriedade moderna */
    position: absolute;
}

.risco {
    background-color: red;
    height: 1px;
    transform: rotate(4.71238898038469rad); /* Versão sem prefixo */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact; /* Propriedade moderna */
    position: absolute;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1d29;
    color: #fff;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #2a2d3a 0%, #1a1d29 100%);
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 0 25px 30px;
    border-bottom: 1px solid #333644;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-title {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px;
    margin-bottom: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    color: #6366f1;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #6366f1;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.menu-badge {
    background: #10b981;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.menu-badge.hot {
    background: #ef4444;
}

.main-content {
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: 70px;
}

.header {
    background: #2a2d3a;
    border-bottom: 1px solid #333644;
    padding: 20px 30px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.header-left h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.breadcrumb {
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #6366f1;
}

.content {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2d3a 0%, #1f2332 100%);
    border: 1px solid #333644;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

.overview-section {
    background: linear-gradient(135deg, #2a2d3a 0%, #1f2332 100%);
    border: 1px solid #333644;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.time-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #333644;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.overview-stat {
    text-align: center;
}

.overview-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.overview-stat-label {
    color: #64748b;
    font-size: 14px;
}

.chart-container {
    height: 300px;
    position: relative;
}

.schedule-section {
    background: linear-gradient(135deg, #2a2d3a 0%, #1f2332 100%);
    border: 1px solid #333644;
    border-radius: 12px;
    padding: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav select {
    background: #1a1d29;
    border: 1px solid #333644;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.calendar {
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #333644;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header-cell {
    background: #2a2d3a;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
}

.calendar-cell {
    background: #1a1d29;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell:hover {
    background: #2a2d3a;
}

.calendar-cell.other-month {
    color: #64748b;
}

.calendar-cell.has-event {
    background: #10b981;
    color: #fff;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .content {
        padding: 20px;
    }
}


.alert{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  z-index: 9999;

}


#loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner circular */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
