body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa, #e8f5e8);
    min-height: 100vh;
    font-family: "Oswald", sans-serif;
    color: #2c5530;
}

.navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 7%;
    background: #375f37;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-5px);
}

#central {
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 0;
    border-bottom: 0.2rem solid white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(44, 85, 48, 0.3);
    color: #2c5530;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.grade-dropdown {
    background: white;
    color: #2c5530;
    border: 2px solid #4a7c4a;
    border-radius: 10px;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.2);
}

.grade-dropdown:hover {
    background: #f0f8f0;
    border-color: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 74, 0.3);
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(44, 85, 48, 0.2);
    border: 1px solid rgba(74, 124, 74, 0.3);
    min-height: 600px;
}

/*  SISTEMA DE GRÁFICO */
.chart-wrapper {
    display: flex;
    height: 450px;
    gap: 20px;
    margin: 20px 0;
}

.y-axis-container {
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 10px;
}

.y-label-text {
    font-size: 0.9rem;
    color: #4a7c4a;
    font-weight: bold;
}

.chart-main {
    flex: 1;
    position: relative;
    border-left: 3px solid #4a7c4a;
    border-bottom: 3px solid #4a7c4a;
}

.grid-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(74, 124, 74, 0.2);
}

.bars-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    padding: 0 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.bar-column {
    width: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.actual-bar {
    width: 100%;
    background: linear-gradient(to top, #4a7c4a, #6db46d);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.actual-bar:hover {
    transform: scaleX(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.value-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    color: #2c5530;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actual-bar:hover .value-label {
    opacity: 1;
}

.x-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    color: #2c5530;
    font-weight: 500;
    width: 80px;
}

.estructura_preg {
    display: flex;
    height: 50vh;
    justify-content: center;
    text-align: center;
}

.format_preg {
    height: 90%;
    width: 90%;
    text-align: left;
}

.pregunta {
    font-size: 4rem;
    margin: 0;
    padding: 0;
}

.respuesta  {
    font-size: 2rem;
    margin: 0;
    padding-bottom: 3rem;
}

/* Botón de login */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* funcionalidad de admin */
.admin-controls {
    display: none;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(44, 85, 48, 0.3);
}

.admin-controls.show {
    display: block;
}

.admin-header {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.admin-section h3 {
    color: #a6e22e;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.edit-grid {
    display: grid;
    grid-template-columns: 1fr 100px 60px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.edit-grid label {
    color: white;
    font-weight: 500;
}

.edit-grid input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #4a7c4a;
    border-radius: 5px;
    padding: 8px;
    font-size: 0.9rem;
    color: #2c5530;
}

.edit-grid input:focus {
    outline: none;
    border-color: #a6e22e;
    box-shadow: 0 0 5px rgba(166, 226, 46, 0.3);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-family: "Oswald", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success {
    background: linear-gradient(135deg, #a6e22e 0%, #66d9ef 100%);
    color: #2d5a3d;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 226, 46, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #66d9ef 0%, #4a90e2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 217, 239, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #fd971f 0%, #f39c12 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 151, 31, 0.3);
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #a6e22e 0%, #66d9ef 100%);
    color: #2d5a3d;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.success-message.show {
    transform: translateX(0);
}

.login-prompt {
    background: rgba(249, 38, 114, 0.1);
    border: 2px solid #f92672;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt p {
    color: #f92672;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .edit-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .edit-grid label {
        font-size: 0.9rem;
    }
    
    .admin-controls {
        padding: 1rem;
        margin: 1rem;
    }
    
    .admin-header {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 5px;
    }
}

.linc_deco {
    position: fixed;
    left: 10%;
    background-color: white;
    border-radius: 1rem;
    opacity: 0.7;
}

.linc_deco img {
    height: 6vh;
    width: auto;
}