/*
Estilo Principal - Professor Luiz Fernando Legore do Nascimento
Caminho: /var/www/html/legore/css/estilo.css
*/

:root {
--primary-color: #1e293b;
--accent-color: #3b82f6;
--accent-hover: #2563eb;
--bg-color: #f8fafc;
--card-bg: #ffffff;
--text-color: #334155;
--text-muted: #64748b;
--border-color: #e2e8f0;
}

{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
display: flex;
flex-direction: column;
min-height: 100vh;
}

/* Banner Superior usando drawer_superior.png */
.header-banner {
background: var(--primary-color) url('../figuras/drawer_superior.png') repeat-x center center;
background-size: auto 100%;
color: white;
padding: 2rem 1.5rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
}

.header-title h1 {
font-size: 1.8rem;
font-weight: 700;
letter-spacing: -0.5px;
}

.header-title p {
font-size: 1rem;
color: #94a3b8;
font-weight: 400;
}

/* Structural Layout */
.layout-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
display: flex;
gap: 2rem;
flex: 1;
width: 100%;
}

/* Navigation Drawer/Sidebar usando drawer_lateral_esq.png */
.sidebar-drawer {
width: 280px;
background: var(--card-bg) url('../figuras/drawer_lateral_esq.png') no-repeat bottom left;
background-size: contain;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
height: fit-content;
flex-shrink: 0;
}

.sidebar-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--accent-color);
display: flex;
align-items: center;
gap: 0.5rem;
}

.nav-menu {
list-style: none;
}

.nav-menu item {
margin-bottom: 0.5rem;
}

.nav-link {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
color: var(--text-color);
text-decoration: none;
font-weight: 500;
border-radius: 8px;
transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
background-color: #eff6ff;
color: var(--accent-color);
transform: translateX(4px);
}

/* Main Content Area */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 2rem;
}

.card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
font-size: 1.4rem;
color: var(--primary-color);
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}

.discipline-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-top: 4px solid var(--accent-color);
border-radius: 8px;
padding: 1.5rem;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discipline-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.discipline-card h3 {
font-size: 1.2rem;
color: var(--primary-color);
margin-bottom: 0.5rem;
}

.discipline-card p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 1.25rem;
}

.btn-link {
display: inline-block;
padding: 0.5rem 1rem;
background-color: var(--accent-color);
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
transition: background-color 0.2s ease;
}

.btn-link:hover {
background-color: var(--accent-hover);
}

/* Footer */
.footer {
background-color: var(--primary-color);
color: #94a3b8;
text-align: center;
padding: 1.5rem;
font-size: 0.875rem;
margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
.layout-container {
flex-direction: column;
}

.sidebar-drawer {
    width: 100%;
    background-size: cover;
}
