
/* TABLE STYLES */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden; /* Para que los bordes redondeados se vean en el thead */
}

.styled-table thead tr {
    background-color: var(--accent-color);
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: background-color 0.2s ease;
    color: var(--text-main);
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--bg-dark); /* Alternar color ligero sutilmente diferente */
}

[data-theme="light"] .styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-color);
}

.styled-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    cursor: default;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s;
    border-radius: 5px;
}

.action-btn:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 450px;
    text-align: center;
    color: var(--text-main);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border: 1px solid var(--border-color);
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-text {
    margin-bottom: 25px;
    color: var(--text-main);
    opacity: 0.8;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-modal {
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm {
    background-color: var(--danger);
    color: white;
}
.btn-confirm:hover { background-color: #c0392b; }

.btn-cancel {
    background-color: #cbd5e0; /* Un gris más oscuro para mejor contraste */
    color: #2d3748; /* Texto oscuro */
    border: 1px solid #a0aec0;
}
.btn-cancel:hover { 
    background-color: #a0aec0;
    opacity: 1; 
}

/* Botones Pequeños y Elegantes para Modales */
.btn-modal-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-small {
    background-color: var(--accent-color);
    color: white;
}
.btn-primary-small:hover {
    background-color: #2980b9;
}

.btn-icon-action {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-icon-action:hover {
    background: var(--bg-dark);
}

/* INPUTS MODALES */
.input-modern {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-modern:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* EYE ICON BUTTON */
.btn-icon-eye {
    background: none;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Alineación Vertical de Acciones */
.action-btn {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}
.action-btn svg {
    display: block;
}
.btn-icon-eye:hover {
    background: rgba(0,0,0,0.1);
}
.eye-svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}
