/* 
 * SGF - SaaS Premium Design System
 * Seguindo Instrução Técnica de Frontend
 */

:root {
    --bs-primary: #0d6efd;
    --bs-body-bg: #f8f9fa;
    --sidebar-width: 260px;
    --navbar-height: 70px;
    --card-border-radius: 0.75rem;
    --sidebar-bg: #ffffff;
    --sidebar-text: #4b5563;
    --sidebar-active-bg: #eff6ff;
    --sidebar-active-text: #2563eb;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bs-body-bg);
    color: #1f2937;
    overflow-x: hidden;
}

/* Layout Structure */
#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    z-index: 1000;
    position: fixed;
    height: 100vh;
}

#content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    transition: all 0.3s ease;
}

/* Sidebar Styling */
.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-menu {
    padding: 1.25rem 0.75rem;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05rem;
    padding: 1rem 0.75rem 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.925rem;
    margin-bottom: 0.125rem;
    transition: all 0.2s;
}

.nav-link i {
    width: 1.25rem;
    margin-right: 0.875rem;
    font-size: 1.1rem;
    opacity: 0.7;
}

.nav-link:hover {
    background: #f9fafb;
    color: #111827;
}

.nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.nav-link.active i {
    color: var(--sidebar-active-text);
    opacity: 1;
}

/* Navbar Styling */
.navbar-elite {
    height: var(--navbar-height);
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Cards & Components */
.card {
    border: none;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-radius: var(--card-border-radius);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem 1.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

.table thead th {
    background-color: #f9fafb;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025rem;
    color: #6b7280;
    border-top: none;
    padding: 1rem 1.5rem;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* Dashboard Widgets */
.stat-card {
    padding: 1.5rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
}

/* Utility */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-shadow:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.transition {
    transition: all 0.2s ease-in-out;
}
