/*
 * Modern, Glassmorphism-inspired Sidebar Styles
 * Adaptado para o DarkCenter
 */

.sidebar-logo-img {
    width: 250px !important;
    height: auto; /* Manter proporção */
    margin-right: 10px;
}

.sidebar {
    background: rgba(13, 17, 23, 0.85); /* Fundo semi-transparente */
    backdrop-filter: blur(15px); /* Efeito de vidro */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    width: 280px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
}

.sidebar .position-sticky {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header .sidebar-app-name {
    font-weight: 600;
}

.nav-item-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b949e; /* text-muted */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.nav-link {
    color: #c9d1d9; /* text-secondary */
    border-radius: 8px;
    margin: 2px 0;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f6fc; /* text-primary */
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(115, 103, 240, 0.3);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
}

.nav-link i {
    width: 24px;
    font-size: 1.1rem;
    text-align: center;
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    font-size: 2.5rem;
    color: #58a6ff; /* text-accent */
    margin-right: 15px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #f0f6fc;
}

.user-role {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: capitalize;
}

/* Balance Info Section */
.balance-info {
    background: linear-gradient(135deg, rgba(35, 134, 54, 0.2), rgba(46, 160, 67, 0.1));
    border: 1px solid #238636;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.balance-label {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
}

.balance-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3fb950; /* text-success */
    letter-spacing: 1px;
}

/* Support Link */
.support-link {
    margin-top: auto; /* Pushes to the bottom */
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.support-link:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.4);
    color: #79c0ff; /* text-info */
}


/* Main Content Padding */
.main-content {
    margin-left: 280px;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .sidebar.collapse.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
} 