/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input {
    margin-right: 5px;
}

button, .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

.button.cancel {
    background-color: #95a5a6;
}

.button.cancel:hover {
    background-color: #7f8c8d;
}

/* Alertas */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Panel de administración */
.admin-container {
    display: grid;
    grid-template-areas:
        "header header"
        "menu content";
    grid-template-columns: 200px 1fr;
    min-height: 100vh;
}

.admin-header {
    grid-area: header;
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: white;
    margin: 0;
}

.admin-user {
    color: #ecf0f1;
}

.admin-user a {
    color: #bdc3c7;
    text-decoration: none;
}

.admin-user a:hover {
    color: white;
}

.admin-menu {
    grid-area: menu;
    background-color: #34495e;
    padding: 20px 0;
}

.admin-menu ul {
    list-style: none;
}

.admin-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ecf0f1;
    text-decoration: none;
}

.admin-menu li a:hover {
    background-color: #2c3e50;
}

.admin-menu li a.active {
    background-color: #3498db;
}

.admin-content {
    grid-area: content;
    padding: 20px;
    background-color: #ecf0f1;
}

/* Tablas */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

.actions {
    white-space: nowrap;
}

.btn-edit, .btn-delete {
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 3px;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Estadísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Confirmación */
.confirmation-details {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.confirmation-details ul {
    list-style-position: inside;
    margin-top: 15px;
}

.confirmation-details li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        grid-template-areas:
            "header"
            "menu"
            "content";
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-user {
        margin-top: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}