:root {
    --bg-color: #0f0f0f;
    --sidebar-color: #1a1a1a;
    --primary-color: #e5b12a; /* Dourado Lumina */
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --card-bg: #262626;
    --transition: all 0.3s ease;
}

/* Modo Claro */
body.light-mode {
    --bg-color: #f5f5f5;
    --sidebar-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --card-bg: #ffffff;
}

body.light-mode .sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-link {
    color: var(--text-muted);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    background-color: var(--primary-color);
    color: #000;
}

body.light-mode .search-bar {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
}

body.light-mode .book-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .top-header {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-color);
    height: 100vh;
    position: fixed;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: #000;
}

.nav-link i {
    font-size: 20px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-bar {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    width: 400px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    margin-left: 10px;
    width: 100%;
    outline: none;
}

/* Banner */
.hero-banner {
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    margin-bottom: 40px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    margin-left: 10px;
}

/* Grid de Livros */
.section-title {
    margin-bottom: 20px;
    font-size: 22px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.book-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-10px);
}

.book-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.book-price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.dark-mode-toggle:hover {
    background: var(--card-bg);
    color: var(--primary-color);
}

/* Notificações */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.notification-bell:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
}

.notification-dropdown.active {
    display: block;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(229, 177, 42, 0.1);
}

.notification-item.unread {
    background: rgba(229, 177, 42, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Avatar Selector */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: var(--transition);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(229, 177, 42, 0.5);
}

.avatar-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar { width: 80px; padding: 20px 10px; }
    .nav-link span, .logo span { display: none; }
    .main-content { margin-left: 80px; width: calc(100% - 80px); }
}

@media (max-width: 768px) {
    .search-bar { width: 100%; }
    .hero-banner { height: 300px; padding: 30px; }
    .hero-content h1 { font-size: 32px; }
    .avatar-grid { grid-template-columns: repeat(3, 1fr); }
    .notification-dropdown { min-width: 300px; }
}
