/* Estilos globais para MDNet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    background: white;
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 769px) {
    .container {
        margin: 0 auto;
    }
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    color: #007bff;
    margin-top: 30px;
}

h3 {
    font-size: 1.4em;
    color: #555;
}

/* Formulários */
form { 
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

label { 
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px;
    margin-top: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

button,
input[type="submit"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

tr:hover {
    background-color: #f5f5f5;
}

tr:last-child td {
    border-bottom: none;
}

/* Listas */
.list-group {
    list-style: none;
    padding: 0;
}

.list-group-item {
    background: white;
    border: 1px solid #ddd;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.list-group-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateX(5px);
}

.list-group-item a {
    display: block;
    color: #333;
    font-size: 16px;
}

.list-group-item a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        width: 100%;
        padding: 25px 20px;
        margin: 0;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        max-width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* ================= HEADER RESPONSIVO (compartilhado) ================= */
:root {
    --mdnet-primary: #1e3a8a;
    --mdnet-secondary: #3b82f6;
    --mdnet-accent: #0ea5e9;
    --mdnet-dark: #1e293b;
    --mdnet-light: #f1f5f9;
    --mdnet-gray: #64748b;
}

/* Compensa header fixo */
body { padding-top: 80px; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--mdnet-primary) 0%, var(--mdnet-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover { transform: scale(1.05); }

.header-company-name {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.header-nav { display: flex; align-items: center; gap: 0; }

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.header-menu li { margin: 0; }

.header-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: 500;
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.header-menu a:hover { background: rgba(255,255,255,0.1); }
.header-menu a:hover::after { transform: translateX(-50%) scaleX(1); }
.header-menu a.active { background: rgba(255,255,255,0.2); }

.header-menu a.btn-login {
    background: white;
    color: var(--mdnet-primary);
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
}
.header-menu a.btn-login::after { display: none; }
.header-menu a.btn-login:hover {
    background: var(--mdnet-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }

@media (max-width: 768px) {
    .header-container { padding: 12px 20px; }
    .header-logo { height: 40px; }
    .header-company-name { font-size: 1.2em; }
    .hamburger { display: flex; }
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--mdnet-primary) 0%, var(--mdnet-dark) 100%);
        padding: 80px 0 30px;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .header-nav.active { right: 0; }
    .header-menu { flex-direction: column; gap: 0; width: 100%; }
    .header-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .header-menu a { padding: 18px 30px; border-radius: 0; font-size: 1.1em; }
    .header-menu a::after { display: none; }
    .header-menu a.btn-login {
        background: var(--mdnet-accent);
        color: white;
        margin: 20px 20px 0;
        border-radius: 50px;
        text-align: center;
    }
}
