:root {
    --bg-color: #040b19;
    --sidebar-bg: rgba(15, 25, 45, 0.75);
    --topbar-bg: rgba(15, 25, 45, 0.75);
    --primary-color: #00c3ff;
    --banner-bg: linear-gradient(135deg, rgba(0, 82, 212, 0.8), rgba(67, 100, 247, 0.8));
    --banner-icon-bg: rgba(0, 195, 255, 0.2);
    --text-dark: #ffffff;
    --text-muted: #8892b0;
    --sidebar-text: #a8b2d1;
    --sidebar-icon: #00c3ff;
    --teal-btn: #0052d4;
    --black-btn: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 25, 45, 0.75);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background: radial-gradient(circle at 10% 20%, rgb(4, 11, 25) 0%, rgb(16, 26, 60) 90%);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar... (mesmo código de antes com pequenas melhorias visuais para clique) */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 195, 255, 0.1);
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 28px;
    color: #e382d5;
}

.user-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.verify-icon {
    color: #1fc76a;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    text-decoration: none;
    color: var(--sidebar-text);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item i {
    width: 25px;
    color: var(--sidebar-icon);
    font-size: 16px;
    transition: color 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
    background-color: rgba(121, 104, 201, 0.05);
    border-right: 3px solid var(--primary-color);
}

.nav-item.active i, .nav-item:hover i {
    color: var(--primary-color);
}

.logout {
    margin-top: auto;
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
    height: 100vh;
    overflow-y: auto;
}

/* Topbar */
.topbar {
    height: 60px;
    min-height: 60px;
    background-color: var(--topbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 90;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.user-avatar-top {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

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

/* Dashboard Container & Views */
.dashboard-container {
    padding: 30px;
    position: relative;
    width: 100%;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Banner */
.banner {
    background-color: var(--banner-bg);
    border-radius: var(--border-radius-sm);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(116, 99, 198, 0.4);
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: translateY(-4px);
}

.banner-icon {
    width: 50px;
    height: 50px;
    background-color: var(--banner-icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.banner-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-text p {
    font-size: 14px;
    opacity: 0.9;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 195, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 195, 255, 0.15);
    border-color: var(--primary-color);
}

.service-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.card-desc {
    flex-grow: 1;
    margin-bottom: 30px;
}

.card-desc p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.badge {
    background-color: var(--teal-btn);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 205, 173, 0.6);
}

.btn-black {
    background: linear-gradient(45deg, #111, #333);
    color: white;
    border: none;
    padding: 12px 0;
    width: 160px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-black:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #000, #222);
}

/* MODAL (Pop-up) Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 195, 255, 0.2);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: rgba(0, 195, 255, 0.1);
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 18px; }

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 30px 20px;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 195, 255, 0.2);
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast.success i { color: #1fc76a; }
.toast.info i { color: #3498db; }
.toast.warning i { color: #f39c12; }

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
