:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}
.sidebar img {
    width: 40px;
    height: auto;
    transition: transform 0.3s;
    border-radius: 20px;
}

.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logo-text {
    background: linear-gradient(45deg, #6b8cff, #8b9fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.hide-on-collapse{
    color: white;
    margin: 0;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}

/* Table Responsive Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    width: 100%;
    min-width: 800px;
    table-layout: auto;
}

/* Column widths - Observação maior */
th:nth-child(1), td:nth-child(1) {
    width: 20%;
    min-width: 150px;
}

th:nth-child(2), td:nth-child(2) {
    width: 15%;
    min-width: 120px;
}

th:nth-child(3), td:nth-child(3) {
    width: 30%;
    min-width: 200px;
}

th:nth-child(4), td:nth-child(4) {
    width: 35%;
    min-width: 250px;
    word-wrap: break-word;
    white-space: normal;
}

th, td {
    text-align: left;
    padding: 12px 15px;
    vertical-align: top;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    th:nth-child(1), td:nth-child(1) {
        min-width: 120px;
    }
    
    th:nth-child(2), td:nth-child(2) {
        min-width: 100px;
    }
    
    th:nth-child(3), td:nth-child(3) {
        min-width: 150px;
    }
    
    th:nth-child(4), td:nth-child(4) {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    th, td {
        padding: 6px 8px;
    }
}