:root {
    --primary: #1976D2;
    --secondary: #455A64;
    --accent: #B0BEC5;
    --bg: #ECEFF1;
    --white: #FFFFFF;
    --text: #212121;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.logo-header {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 10px;
    background: var(--bg);
    box-shadow: none;
}

.logo-header img {
    max-width: 200px;
    height: auto;
}

h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 20px 0 10px;
}

nav {
    max-width: 900px;
    margin: 0 auto 25px;
    background: var(--secondary);
    padding: 8px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 5px;
    display: block;
    line-height: 1;
}

nav a:hover {
    background: var(--accent);
    color: var(--text);
}

nav .dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

nav .dropdown > a {
    padding: 8px 12px;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background: var(--secondary);
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    left: 0;
}

nav .dropdown-content a {
    color: var(--white);
    padding: 10px 12px;
    display: block;
    text-align: left;
}

nav .dropdown-content a:hover {
    background: var(--accent);
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown:hover > a {
    background: var(--accent);
    color: var(--text);
}

input, textarea, select, button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="color"] {
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--accent);
    color: var(--text);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
}

.error {
    color: #D32F2F;
    font-weight: 500;
    text-align: center;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .container, nav, .logo-header {
        padding: 15px;
    }
    nav {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    nav a, nav .dropdown-content a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    h2 {
        font-size: 1.5rem;
    }
}