/* admin.css */
.admin-panel {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.admin-panel.active {
    display: flex;
}

.admin-panel-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-panel-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.admin-panel-content .form-group {
    margin-bottom: 15px;
}

.admin-panel-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.admin-panel-content input[type="text"],
.admin-panel-content input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.admin-panel-content .btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.admin-panel-content .btn-primary:hover {
    background-color: #0056b3;
}

.admin-panel-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
}

.admin-panel-content .close-btn:hover,
.admin-panel-content .close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Admin Dashboard styles */
#adminDashboard {
    display: none; /* Oculto por defecto */
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

#adminDashboard.active {
    display: block;
}

#adminDashboard h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #343a40;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h4 {
    color: #6c757d;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2.2em;
    font-weight: 700;
    color: #007bff;
}

.dashboard-sections {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-sections h3 {
    margin-bottom: 20px;
    color: #343a40;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dashboard-sections ul {
    list-style: none;
    padding: 0;
}

.dashboard-sections ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.dashboard-sections ul li:last-child {
    border-bottom: none;
}

.dashboard-sections ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.dashboard-sections ul li a:hover {
    text-decoration: underline;
}
