/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f1f3f4 100%, #f1f3f4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Layout com sidebar */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-height: 100vh;
}

.content-wrapper.sidebar-collapsed {
    margin-left: 80px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-header h4 {
    opacity: 0;
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) rotate(180deg);
}

/* User Info */
.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #300fe3, #0d76e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .user-info {
    opacity: 0;
}

.user-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav {
    list-style: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    gap: 15px;
}

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

.nav-link.active {
    background: linear-gradient(135deg, #0fe3b2, #1347db);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link span {
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
}

.nav-link.text-danger {
    color: #e74c3c !important;
}

.nav-link.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c !important;
}

/* Nav Dividers */
.nav-divider {
    padding: 15px 20px 10px;
    margin-top: 10px;
}

.nav-divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-divider span {
    opacity: 0;
}

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    padding: 15px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.navbar-brand {
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(44, 62, 80, 0.1);
}

/* Content Area */
.content-area {
    padding: 25px;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #300fe3 0%, #0d76e0 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.dashboard-card .card-body {
    text-align: center;
    padding: 30px 20px;
}

.dashboard-card h5 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
   background: linear-gradient(135deg, #300fe3, #0d76e0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #85c1e9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #f7dc6f);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #f1948a);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 15px;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* Map Container */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Level Badges */
.level-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .content-area {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .top-navbar {
        padding: 15px;
    }
}

 .icone-grande {
    font-size: 50px;
  }

