/* ===================================
   SEBRAE Prev - Custom Styles
   =================================== */

:root {
    --sebrae-blue: #005eb8;
    --sebrae-blue-dark: #004a93;
    --sebrae-blue-light: #e6f0f9;
    --sebrae-gray: #6c757d;
    --sebrae-gray-light: #f8f9fa;
}

/* ===================================
   Login Page
   =================================== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sebrae-blue) 0%, var(--sebrae-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: var(--sebrae-blue-light);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.login-header img.logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sebrae-blue);
    margin: 0;
}

.login-header p {
    color: var(--sebrae-gray);
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.login-body {
    padding: 30px;
}

.login-body .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-body .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-body .form-control:focus {
    border-color: var(--sebrae-blue);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.15);
}

.login-body .input-group-text {
    background: var(--sebrae-blue-light);
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--sebrae-blue);
}

.login-body .input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.btn-login {
    background: var(--sebrae-blue);
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--sebrae-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 94, 184, 0.4);
}

.login-footer {
    text-align: center;
    padding: 20px 30px;
    background: var(--sebrae-gray-light);
    border-top: 1px solid #e0e0e0;
}

.login-footer a {
    color: var(--sebrae-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Alert customization */
.alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

/* ===================================
   Dashboard Layout
   =================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--sebrae-blue) 0%, var(--sebrae-blue-dark) 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header a {
    display: block;
}

.sidebar-header img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-menu {
    padding: 15px 0;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-menu .nav-link i {
    margin-right: 12px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu .nav-link i.bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-right: 0;
}

.sidebar-menu .nav-link[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffffff;
}

/* Submenus */
.nav-item-group {
    margin-bottom: 0;
}

.nav-toggle {
    cursor: pointer;
}

.nav-sublink {
    padding-left: 52px !important;
    font-size: 0.85rem !important;
    background: rgba(0, 0, 0, 0.15);
}

.nav-sublink i {
    font-size: 0.85rem !important;
}

.nav-sublink:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Divisor do sidebar */
.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 15px 20px;
}

/* Scrollbar do sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    background: var(--sebrae-gray-light);
}

/* Top Navbar */
.top-navbar {
    background: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-navbar .page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sebrae-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

/* Page Content */
.page-content {
    padding: 30px;
}

/* Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.stat-card .stat-icon.blue {
    background: var(--sebrae-blue-light);
    color: var(--sebrae-blue);
}

.stat-card .stat-icon.green {
    background: #d4edda;
    color: #28a745;
}

.stat-card .stat-icon.orange {
    background: #fff3cd;
    color: #fd7e14;
}

.stat-card .stat-icon.red {
    background: #f8d7da;
    color: #dc3545;
}

.stat-card .stat-icon.purple {
    background: #e2d9f3;
    color: #6f42c1;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.stat-card .stat-label {
    color: var(--sebrae-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .sidebar.show {
        width: 260px;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* ===================================
   User Avatar Styles
   =================================== */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sebrae-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--sebrae-blue-light);
    color: var(--sebrae-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
