/* admin/assets/style.css */
:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-500: #9e9e9e;
    --gray-700: #616161;
    --gray-900: #212121;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.login-logo span {
    color: var(--gray-900);
}

.login-logo::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary);
    /*background-image: url(../../img/logo.png)*/
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
}

.alert-error {
    background: #ffebee;
    color: var(--primary-dark);
    padding: 0.7rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Panel general */
.admin-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5px;
}

.admin-container h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
}
.btn-danger:hover {
    background: #d32f2f;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    /*margin: 1.5rem 0;*/
    margin: 0px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

th, td {
    /*padding: 1rem;*/
    padding: 7px !important;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: var(--gray-100);
}

.actions a {
    margin-right: 0.5rem;
}

/* Formularios */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 1.5rem auto;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Imagen */
img.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}