/* Theme global - unifica estilos do site */
:root {
	--primary: 255 0 0;
	--primary-foreground: 255 255 255;
	--secondary: 255 255 255 / 0.05;
	--background: 9 9 11;
	--foreground: 250 250 250;
	--border: 255 255 255 / 0.05;
	--card: var(--background);
	--muted: var(--secondary);
	--muted-foreground: 171 171 171;
	--radius: 0.7rem;
}

/* Reset & Base */
* { box-sizing: border-box; border-color: rgb(var(--border)); }
html, body { margin: 0; padding: 0; }
body { font-family: 'Geist', sans-serif; background: rgb(var(--background)); color: rgb(var(--foreground)); line-height: 1.6; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(var(--primary)); border-radius: 0.375rem; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; backdrop-filter: blur(20px); z-index: 1000; padding: 1rem 0; border-bottom: 1px solid rgb(var(--border)); background: rgb(var(--background) / 0.9); box-shadow: 0 4px 20px rgb(var(--primary) / 0.1); }
.header-content { max-width: 1500px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { width: 3rem; height: 3rem; border-radius: 0.5rem; object-fit: cover; border: 2px solid rgb(var(--primary) / 0.3); }
.logo h1 { color: rgb(var(--foreground)); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; background: linear-gradient(45deg, rgb(var(--primary)), rgb(var(--primary) / 0.8)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Navegação */
.nav-menu { display: flex; list-style: none; gap: 1rem; align-items: center; }
.nav-menu a { color: rgb(var(--muted-foreground)); text-decoration: none; transition: all 0.3s ease; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 1rem; border-radius: 0.5rem; position: relative; }
.nav-menu a:hover { color: rgb(var(--foreground)); background: rgb(var(--primary) / 0.1); transform: translateY(-1px); }
.btn-admin, .btn-login, .btn-logout { background: linear-gradient(45deg, rgb(var(--primary)), rgb(var(--primary) / 0.8)); color: rgb(var(--primary-foreground)) !important; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; border: none; box-shadow: 0 4px 15px rgb(var(--primary) / 0.3); }
.btn-admin:hover, .btn-login:hover, .btn-logout:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgb(var(--primary) / 0.4); }
.user-menu { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; background: rgb(var(--muted) / 0.3); border-radius: 0.5rem; border: 1px solid rgb(var(--border)); }
.user-name { color: rgb(var(--foreground)); font-weight: 600; font-size: 0.9rem; }

/* Sidebar */
.sidebar { position: fixed; left: 0; top: 80px; width: 280px; height: calc(100vh - 80px); background: rgb(var(--background) / 0.95); backdrop-filter: blur(20px); border-right: 1px solid rgb(var(--border)); overflow-y: auto; z-index: 999; transition: transform 0.3s ease; box-shadow: 4px 0 20px rgb(var(--primary) / 0.1); }
.sidebar-menu { list-style: none; padding: 1.5rem 0; }
.sidebar-menu a { display: flex; align-items: center; padding: 1rem 2rem; color: rgb(var(--muted-foreground)); text-decoration: none; transition: all 0.3s ease; border-left: 4px solid transparent; font-weight: 500; position: relative; }
.sidebar-menu a:hover { background: rgb(var(--primary) / 0.1); color: rgb(var(--primary)); border-left-color: rgb(var(--primary)); transform: translateX(5px); }
.sidebar-menu a.active { background: rgb(var(--primary) / 0.15); color: rgb(var(--primary)); border-left-color: rgb(var(--primary)); font-weight: 600; }
.main-content { margin-left: 280px; margin-top: 80px; padding: 2rem; min-height: calc(100vh - 80px); }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: 100%; right: 0; background: rgb(var(--background) / 0.95); backdrop-filter: blur(20px); border: 1px solid rgb(var(--border)); border-radius: 0.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); min-width: 200px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; padding: 0.5rem 0; }
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: rgb(var(--muted-foreground)); text-decoration: none; transition: all 0.3s ease; border-radius: 0.25rem; margin: 0 0.5rem; font-size: 0.9rem; }
.dropdown-menu a:hover { background: rgb(var(--primary) / 0.1); color: rgb(var(--foreground)); transform: translateX(5px); }

/* Cards & componentes */
.card, .admin-card { background: rgba(45, 45, 45, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(0, 212, 255, 0.1); border-radius: 15px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

/* Botões genéricos */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; cursor: pointer; transition: all .2s ease; border: 1px solid transparent; }
.btn-primary { background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); border-color: rgb(var(--primary) / .3); }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-secondary { background: rgb(var(--muted)); color: rgb(var(--muted-foreground)); border-color: rgb(var(--border)); }
.btn-secondary:hover { background: rgb(var(--muted) / .6); }

/* Footer */
.footer { background: rgb(var(--background) / 0.9); backdrop-filter: blur(20px); border-top: 1px solid rgb(var(--border)); padding: 3rem 0 1rem; margin-top: 3rem; }
.footer-content { max-width: 1500px; margin: 0 auto; padding: 0 2rem; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(var(--border) / 0.3); }
.footer-section h3 { color: rgb(var(--foreground)); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(45deg, rgb(var(--primary)), rgb(var(--primary) / 0.8)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-section h4 { color: rgb(var(--foreground)); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-section p { color: rgb(var(--muted-foreground)); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: rgb(var(--muted-foreground)); text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; padding: 0.25rem 0; }
.footer-links a:hover { color: rgb(var(--primary)); transform: translateX(5px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Utilitários */
.badge { display: inline-block; padding: .2rem .5rem; border-radius: .5rem; font-size: .75rem; font-weight: 600; }
.badge-success { background: rgba(40,167,69,.15); color:#28a745; border:1px solid rgba(40,167,69,.3); }
.badge-warning { background: rgba(255,193,7,.15); color:#ffc107; border:1px solid rgba(255,193,7,.3); }
.badge-danger  { background: rgba(220,53,69,.15); color:#dc3545; border:1px solid rgba(220,53,69,.3); }

/* Responsividade básica */
@media (max-width: 1024px){ .main-content{ margin-left:0; padding:1rem; } .sidebar{ transform: translateX(-100%); width:280px; } .sidebar.open{ transform: translateX(0); } }
@media (max-width: 768px){ .header-content{ padding:0 1rem; } .footer-content{ padding:0 1rem; } .footer-main{ grid-template-columns: 1fr; text-align:center; gap:2rem; } }
