:root {
    --primary-color: #1E88E5;
    --primary-hover: #1976D2;
    --secondary-color: #FFC107;
    --secondary-hover: #FFA000;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Sidebar */
#sidebar {
    background-color: #ffffff;
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 999;
}

#sidebar.collapsed {
    margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
    padding: 1.5rem 1rem;
}


#sidebar .nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.2rem 0.5rem;
    transition: all 0.3s;
}

#sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.1);
}

#sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.1);
    font-weight: 500;
}

#sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Main content */
main {
    transition: all 0.3s;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.stat-card {
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-warning:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

/* Tables */
.table th {
    font-weight: 600;
    color: #495057;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Profile */
.profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
    margin: 0 auto;
}


/* Responsive */
.header {
    display: flex;
    justify-content: space-between;
    /* Alinha nas extremidades */
    align-items: center;
    /* Alinha verticalmente */
    padding: 10px 20px;
    /* Espaçamento */
    background-color: #f8f9fa;
    /* Cor de fundo */
    border-bottom: 1px solid #ccc;
    /* Linha de separação */
}

.notification {
    position: relative;
    margin-right: 20px;
    /* Espaço entre o sino e o usuário */
}

.notification .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    /* Deixa redondo */
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
}

.user-dropdown {
    display: flex;
    align-items: center;
    /* Alinha imagem e nome */
}

.user-dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Deixa redondo */
    object-fit: cover;
    /* Ajusta imagem sem distorcer */
    border: 2px solid #007bff;
    /* Borda azul */
}

.user-dropdown span {
    margin-left: 10px;
    /* Espaço entre imagem e nome */
    font-weight: bold;
    color: #007bff;
    /* Cor azul */
    white-space: nowrap;
    /* Não deixa quebrar o nome */
}



@media (max-width: 767.98px) {
    #sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
    }

    #sidebar.show {
        margin-left: 0;
    }

    .navbar-toggler {
        display: block;
    }
}

/* UI Utilities */
.btn-emerald {
    background-color: #10b981;
    border: none;
    color: white !important;
}

.btn-emerald:hover {
    background-color: #059669;
}

.btn-rose {
    background-color: #f43f5e;
    border: none;
    color: white !important;
}

.btn-rose:hover {
    background-color: #e11d48;
}

.hover-elevate {
    transition: all 0.3s ease;
}

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

.transition {
    transition: all 0.3s ease;
}