:root {
    --primary-color: #344d91;
    --secondary-color: #dd6777;
    --success-color: #4DAF7C;
    --warning-color: #FFB61E;
}

.sidebar {
    background: #213aae;
    min-height: 100vh;
    padding: 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 7px 14px;
    margin: 2px 8px;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link::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;
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
}

.sidebar .nav-link:not([style*="border-left"]) {
    border-left: 4px solid rgba(255, 255, 255, 0.2);
}
.sidebar .nav-link:not([style*="border-left"]):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.sidebar .nav-link:not([style*="border-left"]).active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar .nav-link i {
    transition: transform 0.3s ease;
    margin-right: 10px;
    width: 10px;
    text-align: center;
}

.sidebar .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.logo-section {
    padding: 0px 10px;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.logo-section img {
    max-width: 180px;
    height: 120px;
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

.logo-section hr {
    border-color: rgba(255,255,255,0.3);
    margin: 0;
}

.main-content {
    padding: 15px;
}

.page-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--primary-color);
}

.legislacao-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.legislacao-card:hover {
    transform: translateY(-5px);
}

.legislacao-card img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.legislacao-card:hover img {
    transform: scale(1.05);
}

.calendar-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.calendar-title {
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.legend-color {
    width: 25px;
    height: 25px;
    border: 1px solid #333;
    margin-right: 15px;
    border-radius: 4px;
}

.legend-plantao { background-color: var(--secondary-color); }
.legend-apoio { background-color: var(--success-color); }
.legend-feriado { background-color: var(--warning-color); }

.fc-event {
    border: none !important;
    border-radius: 6px !important;
}

.quick-access {
    margin-bottom: 20px;
}

.quick-access h6 {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    padding-left: 8px;
}

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

.menu-section h6 {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    padding-left: 8px;
    position: relative;
}

.menu-section h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 8px;
    width: 30px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .legislacao-card {
        padding: 20px;
        text-align: center;
    }
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.pr_controllerTOPO {
    height: 40px!important;
}

table[width="100%"][height="400"] td { vertical-align: top !important; }

.user-session-info {
    background: linear-gradient(135deg, #f8fbd1 0%, #f0f7c7 100%);
    border: 1px solid #d4b85a;
    border-radius: 8px;
    margin: 15px;
    padding: 12px;
    color: #8b4513;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-session-info .session-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-session-info hr {
    margin: 8px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
}

.user-session-info .user-detail {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-session-info .user-detail:last-child {
    margin-bottom: 0;
}

.user-session-info .user-label {
    font-weight: normal;
    opacity: 0.8;
}

.user-session-info .user-value {
    font-weight: 600;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.notification-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Aumenta o padding interno do evento no modo dia/mês */
.fc-daygrid-event {
  padding: 3px 5px !important;
  margin-top: 2px;
  margin-bottom: 2px;
  border-radius: 4px;
}

/* Opcional: garante altura mínima */
.fc-event {
  min-height: 19px;
}

/* Evita que a fonte fique colada nas bordas */
.fc-event-title {
  padding: 2px 0;
}

/* Dias da semana (segunda, terça, etc.) */
.fc-col-header-cell-cushion {
  color: black !important;
  text-decoration: none !important;
}

/* Dias do mês (números no grid) */
.fc-daygrid-day-number {
  color: black !important;
  text-decoration: none !important;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.notification-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 2px;
}
