/* === BASE === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #222;
    font-size: 16px;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: #fff;
    background-color: #222;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* === FORM ELEMENTS === */
input[type="text"], input[type="email"], input[type="file"],
input[type="password"], input[type="date"], select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

button, .button, input[type="submit"] {
    margin:5px;
    background-color: #FFB400;
    color: #222;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease-in-out;
    display: inline-block;
    text-decoration: none;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #e0a000;
    color: #fff;
}

/* === LOGIN FORM === */
#loginform {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    color: #222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

#loginform label {
    font-weight: 600;
    color: #222;
}

#loginform input[type="submit"] {
    background-color: #FFB400;
    color: #222;
}

#loginform input[type="submit"]:hover {
    background-color: #e0a000;
    color: #fff;
}

/* === TABLES === */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wp-list-table th, .wp-list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #222;
    font-size: 14px;
}

.wp-list-table th {
    background-color: #222;
    color: #fff;
    text-align: left;
    font-weight: 600;
}

.wp-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* === AVISOS === */
.updated, .error {
    padding: 12px;
    border-radius: 5px;
    margin: 20px 0;
}

.updated {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 5px solid #2e7d32;
}

.error {
    background: #ffebee;
    color: #c62828;
    border-left: 5px solid #c62828;
}

.gestomator-avisos {
    background: #fff;
    border-left: 5px solid #FFB400;
    padding: 20px;
    margin-bottom: 30px;
}

.gestomator-avisos h3 {
    color: #222;
    background: none;
    padding: 0;
    margin-top: 0;
}

.gestomator-avisos ul {
    margin: 0;
    padding-left: 20px;
}

.gestomator-avisos li {
    margin-bottom: 8px;
}

/* === FINAL MESSAGE === */
.gestomator-final-message {
    background: #fff;
    border: 2px solid #FFB400;
    border-radius: 10px;
    padding: 25px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gestomator-final-message h3 {
    color: #222;
    font-size: 24px;
    margin-bottom: 15px;
}

.gestomator-final-message p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.gestomator-final-message strong {
    color: #222;
}

.gestomator-final-message .important {
    color: #FFB400;
    font-weight: bold;
}

.gestomator-final-message a.button {
    background-color: #FFB400;
    color: #222;
}

.gestomator-final-message a.button:hover {
    background-color: #e0a000;
    color: #fff;
}

/* === CONTAINERS === */
.gestomator-registro-form-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.gestomator-registro-form-wrap h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #222;
}

.gestomator-registro-form-wrap h3 {
    font-size: 1.2em;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #222;
}

.registro-botones {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}

.registro-botones .button {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1em;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .gestomator-registro-form-wrap {
        padding: 20px;
    }

    .registro-botones {
        flex-direction: column;
        align-items: stretch;
    }

    .registro-botones .button {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    h1, h2, h3, h4 {
        font-size: 1.2em;
    }

    table.wp-list-table th, table.wp-list-table td {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .gestomator-final-message {
        padding: 15px;
    }

    .gestomator-final-message h3 {
        font-size: 20px;
    }

    button, .button, input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}
/* === ACCORDION (CARPETAS DESPLEGABLES) === */
.gestomator-accordion {
    margin-bottom: 30px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.accordion-button {
    background-color: #222;
    color: #fff;
    padding: 12px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.accordion-button:hover,
.accordion-button.active {
    background-color: #333;
}

.accordion-content {
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.accordion-content ul {
    list-style-type: disc;
    padding: 10px 0 10px 20px;
    margin: 0;
}

.accordion-content ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.accordion-content a {
    color: #222;
    text-decoration: none;
}

.accordion-content a:hover {
    text-decoration: underline;
    color: #FFB400;
}

/* Contenedor del panel */
.wrap {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    padding: 20px;
}

.wrap h1, .wrap h2 {
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

table.widefat {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

table.widefat th, table.widefat td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

table.widefat th {
    background-color: #222;
    color: #fff;
    text-align: left;
    font-weight: 600;
}

table.widefat tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Botones de acciones */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions .button {
    background-color: #FFB400;
    color: #222;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease-in-out;
    font-size: 13px;
}

.admin-actions .button:hover {
    background-color: #e0a000;
    color: #fff;
}

/* Botón Guardar */
.button-save {
    background-color: #FFB400;
    color: #222;
    font-weight: 600;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.button-save:hover {
    background-color: #e0a000;
    color: #fff;
}

.notice-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-left: 5px solid #2e7d32;
    border-radius: 6px;
    margin-bottom: 20px;
}

.notice-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-left: 5px solid #c62828;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    table.widefat th, table.widefat td {
        font-size: 12px;
        padding: 10px;
    }

    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* Bloque de resumen tipo tarjetas */
.admin-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-summary .summary-card {
    flex: 1;
    min-width: 180px;
    background-color: #222;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
    position: relative;
}

.admin-summary .summary-card:hover {
    transform: translateY(-5px);
}

.summary-card .icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    color: #FFB400;
}

.summary-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #FFB400;
}

.summary-card p {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

.summary-card .progress-bar {
    width: 100%;
    background-color: #444;
    height: 6px;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.summary-card .progress-bar-inner {
    height: 100%;
    background-color: #FFB400;
    width: 0%;
    transition: width 0.4s ease-in-out;
}

/* === CONTENEDOR GENERAL === */
.gestomator-panel {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* === ACCORDEONES === */
details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px;
}

details summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    padding: 10px;
    background-color: #222;
    color: #fff;
    border-radius: 6px;
}

details[open] summary {
    background-color: #FFB400;
    color: #222;
}

details summary::-webkit-details-marker {
    display: none;
}

/* === LISTA DE ARCHIVOS === */
.gestomator-panel ul {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
}

.gestomator-panel li {
    margin: 6px 0;
}

.gestomator-panel a {
    color: #3498db;
    text-decoration: none;
}

.gestomator-panel a:hover {
    text-decoration: underline;
}

/* === ESTADOS DE ARCHIVOS === */
.estado {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: bold;
}

.estado-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.estado-revisado {
    background-color: #d4edda;
    color: #155724;
}

.estado-rechazado {
    background-color: #f8d7da;
    color: #721c24;
}

/* === TABLAS === */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.wp-list-table th, .wp-list-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.wp-list-table th {
    background-color: #222;
    color: #fff;
    text-align: left;
}

.wp-list-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.wp-list-table tr:hover {
    background-color: #e9ecef;
}

/* === BOTONES === */
button, .button {
    background-color: #FFB400;
    color: #222;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover, .button:hover {
    background-color: #e0a000;
    color: #fff;
}