/* Modal input nombre personaje (prompt) */
#modal-input-form, .modal-input-overlay {
    z-index: 4000 !important;
}
.modal-input-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000 !important;
}
/* ==== MODAL PERSONAJES STAFF ==== */
.mini-table th, .mini-table td { text-align: center; }
.mini-table th { background: #234032; color: #a6e9b2; font-size: 1.05em; letter-spacing: 0.5px; }
.mini-table tr { transition: background 0.15s; }
.mini-table tr:hover { background: #1a2e24; }
.mini-table td { background: transparent; border-bottom: 1px solid #223b2e; font-size: 1em; }
.mini-table td:first-child, .mini-table th:first-child { border-radius: 8px 0 0 8px; }
.mini-table td:last-child, .mini-table th:last-child { border-radius: 0 8px 8px 0; }
.dropdown-menu { box-shadow: 0 4px 16px rgba(0,0,0,0.18); border: 1px solid #88D498; border-radius: 8px; background: #223b2e; min-width: 140px; padding: 0.25rem 0; }
.dropdown-item { width: 100%; background: none; border: none; color: #a6e9b2; text-align: left; padding: 0.5rem 1rem; font-size: 1em; cursor: pointer; transition: background 0.15s; }
.dropdown-item:hover { background: #2e5c44; color: #fff; }
.btn-xs { font-size: 0.92em; padding: 0.35em 0.9em; border-radius: 6px; }
.btn-aa { margin-top: 0.25em; }
.aa-permission-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.dropdown .btn-xs { background: #2e5c44; color: #a6e9b2; border: 1px solid #88D498; transition: background 0.15s, color 0.15s; }
.dropdown .btn-xs:hover { background: #88D498; color: #223b2e; }
/* ========== VIP STORE ========== */
.vip-list {
    display: grid;
    gap: 16px;
}
.vip-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    padding: 16px;
}
.vip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.vip-title, .vip-price {
    font-weight: 700;
}
.vip-desc {
    color: var(--texto-secundario);
    margin: 6px 0 10px;
}
.vip-list-items {
    margin-left: 18px;
    color: var(--texto-secundario);
}
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,400,0,0');

:root {
    --verde-pastel: #88D498;
    --verde-oscuro: #1A3A2E;
    --verde-suave: #9EE5AB;
    --fondo-principal: #0D1F1A;
    --fondo-secundario: #152821;
    --fondo-card: #1C322B;
    --texto-principal: #E8F3E8;
    --texto-secundario: #B8C9B8;
    --borde-color: rgba(136, 212, 152, 0.15);
    --error: #FF6B6B;
    --sombra-suave: 0 2px 8px rgba(0, 0, 0, 0.3);
    --sombra-intensa: 0 4px 16px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--fondo-principal);
    color: var(--texto-principal);
    line-height: 1.6;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

/* ========== LAYOUT PRINCIPAL ========== */
.main-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: var(--fondo-card);
    border-right: 1px solid var(--borde-color);
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--fondo-secundario);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--verde-oscuro);
    border-radius: 3px;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--borde-color);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--verde-pastel);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--texto-secundario);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.sidebar-menu a:hover {
    background: rgba(136, 212, 152, 0.08);
    color: var(--verde-pastel);
}

.sidebar-menu a.active {
    background: rgba(136, 212, 152, 0.15);
    color: var(--verde-pastel);
    border-left: 3px solid var(--verde-pastel);
    font-weight: 600;
}

.menu-divider {
    margin: 1.5rem 0 0.75rem;
    padding: 0.5rem 1.5rem 0.25rem;
    border-top: 1px solid var(--borde-color);
}

.menu-divider span {
    color: var(--texto-secundario);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fondo-principal);
}

.dashboard-header {
    background: var(--fondo-card);
    border-bottom: 1px solid var(--borde-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--texto-principal);
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.content-wrapper {
    padding: 2rem;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-suave);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--verde-pastel);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--texto-secundario);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 600;
}

/* ========== CARDS ========== */
.cards-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
    width: 100%;
}

.card:hover {
    border-color: var(--verde-pastel);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--verde-pastel);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--borde-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    color: var(--texto-secundario);
    font-size: 0.925rem;
}

/* ========== TABLES ========== */
.table-container {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.items-table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.items-table {
    min-width: 520px;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

thead {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(136, 212, 152, 0.25);
    color: var(--verde-pastel);
    border: 1px solid rgba(136, 212, 152, 0.45);
    font-weight: 600;
    text-align: left;
    font-weight: 700;
    opacity: 1;
    cursor: auto;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-bottom: 1px solid var(--borde-color);
    white-space: nowrap;
}

td {
    padding: 1.125rem 1.5rem;
    color: var(--texto-secundario);
    border-bottom: 1px solid rgba(136, 212, 152, 0.06);
    font-size: 0.925rem;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(136, 212, 152, 0.04);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(136, 212, 152, 0.2);
    color: var(--verde-pastel);
}

.badge-primary {
    background: #3B82F6 !important;
    color: #FFFFFF !important;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.badge-danger {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
}

.badge-secondary {
    background: rgba(120, 120, 120, 0.2);
    color: #999;
}

/* ========== ITEM LIST ========== */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(136, 212, 152, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--texto-principal);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--verde-pastel);
    color: var(--fondo-principal);
}

.btn-primary:hover {
    background: var(--verde-suave);
    transform: translateY(-1px);
    box-shadow: var(--sombra-suave);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-logout {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--texto-principal);
    border: 1px solid var(--borde-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--texto-principal);
    font-weight: 500;
    font-size: 0.925rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--fondo-secundario);
    border: 1px solid var(--borde-color);
    border-radius: 8px;
    color: var(--texto-principal);
    font-size: 0.925rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--verde-pastel);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group select,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--fondo-secundario);
    border: 1px solid var(--borde-color);
    border-radius: 8px;
    color: var(--texto-principal);
    font-size: 0.925rem;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2388D498' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select:hover,
select:hover {
    border-color: var(--verde-pastel);
    background-color: rgba(136, 212, 152, 0.05);
}

.form-group select:focus,
select:focus {
    outline: none;
    border-color: var(--verde-pastel);
    box-shadow: 0 0 0 3px rgba(136, 212, 152, 0.1);
}

.form-group select option,
select option {
    background: var(--fondo-card);
    color: var(--texto-principal);
    padding: 0.5rem;
}

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--fondo-principal);
}

.login-container {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--sombra-intensa);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--borde-color);
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verde-pastel);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--texto-secundario);
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: var(--verde-pastel);
    color: var(--fondo-principal);
    font-weight: 600;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--verde-suave);
    transform: translateY(-1px);
    box-shadow: var(--sombra-suave);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== ALERTS / ERRORS ========== */
.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
    display: none;
}

.error.show {
    display: block;
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.35);
    color: #FFD56A;
}

/* ========== MODALES ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 85vh;
    width: clamp(320px, 60vw, 640px);
    min-width: 280px;
    min-height: 0;
    overflow-y: auto;
    box-shadow: var(--sombra-intensa);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.modal-xl {
    max-width: 99vw;
    max-height: 95vh;
    width: 1600px;
}

.modal.modal-lg {
    max-width: 95vw;
    max-height: 90vh;
    width: clamp(360px, 75vw, 900px);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--borde-color);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.modal-icon.success {
    background: rgba(136, 212, 152, 0.15);
    color: var(--verde-pastel);
}

.modal-icon.error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--texto-principal);
    margin: 0;
}

.modal-body {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 100px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-principal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-form input[type="text"],
.modal-form input[type="number"],
.modal-form input[type="email"],
.modal-form textarea,
.modal-form select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borde-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--texto-principal);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="number"]:focus,
.modal-form input[type="email"]:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--verde-pastel);
    background: rgba(136, 212, 152, 0.05);
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-cancel {
    background: var(--fondo-secundario);
    color: var(--texto-secundario);
    border: 1px solid var(--borde-color);
}

.btn-cancel:hover {
    background: rgba(136, 212, 152, 0.08);
    color: var(--texto-principal);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: rgba(255, 193, 7, 0.25);
    border-color: #FFC107;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: var(--error);
}

.aa-permission-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aa-permission-cell .btn {
    white-space: nowrap;
}

/* ========== NOTIFICACIONES TOAST ========== */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--sombra-intensa);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success {
    border-left: 3px solid var(--verde-pastel);
}

.toast.success .toast-icon {
    color: var(--verde-pastel);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning {
    border-left: 3px solid #FFC107;
}

.toast.warning .toast-icon {
    color: #FFC107;
}

.toast.info {
    border-left: 3px solid #17a2b8;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--texto-principal);
    margin-bottom: 0.25rem;
    font-size: 0.925rem;
}

.toast-message {
    color: var(--texto-secundario);
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--texto-secundario);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* ========== CHARACTER INFO ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--verde-pastel);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--texto-principal);
    font-size: 1.125rem;
}

/* ========== LICENSES ========== */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--borde-color);
}

.license-item.license-active {
    border-color: var(--verde-pastel);
    background: rgba(136, 212, 152, 0.05);
}

.license-item.license-inactive {
    opacity: 0.6;
}

.license-label {
    font-weight: 500;
    color: var(--texto-principal);
}

.license-status {
    color: var(--texto-secundario);
    font-size: 0.875rem;
}

.license-item.license-active .license-status {
    color: var(--verde-pastel);
    font-weight: 600;
}

/* Licencias detalladas */
.licenses-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.license-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--borde-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-intensa);
}

.license-card.active {
    border-color: var(--verde-pastel);
    background: rgba(136, 212, 152, 0.05);
}

.license-card.inactive {
    opacity: 0.5;
}

.license-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.license-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--texto-principal);
}

.license-status-badge {
    margin-top: 1rem;
}

.license-date {
    font-size: 0.75rem;
    color: var(--texto-secundario);
    margin-top: 0.5rem;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card.stat-warning {
    border-left: 3px solid #FFA500;
}

.stat-card.stat-success {
    border-left: 3px solid var(--verde-pastel);
}

.stat-card.stat-danger {
    border-left: 3px solid var(--error);
}

/* ========== SANCTION RULES ========== */
.sanction-rule {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(136, 212, 152, 0.1);
    border: 1px solid var(--verde-pastel);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--verde-pastel);
}

/* ========== ACTIONS FOOTER ========== */
.actions-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--borde-color);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }

    .info-grid,
    .licenses-grid,
    .licenses-detail-grid {
        grid-template-columns: 1fr;
    }

    .actions-footer {
        flex-direction: column;
    }
}
/* ========== SEARCH STYLES ========== */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--fondo-secundario);
    border: 2px solid var(--borde-color);
    border-radius: 8px;
    color: var(--texto-principal);
    font-size: 14px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2388D498' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
}

.search-container input:focus {
    outline: none;
    border-color: var(--verde-pastel);
    box-shadow: 0 0 0 3px rgba(136, 212, 152, 0.1);
    background-color: rgba(136, 212, 152, 0.05);
}

.search-container input::placeholder {
    color: var(--texto-secundario);
    opacity: 0.7;
}

.search-container small {
    display: block;
    margin-top: 8px;
    color: var(--texto-secundario);
    font-size: 12px;
    opacity: 0.8;
}

/* ========== SEARCH RESULTS ========== */
#userSearchResults,
#characterSearchResults {
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: var(--sombra-suave);
}

#userSearchResults > div,
#characterSearchResults > div,
#userSearchResults::-webkit-scrollbar,
#characterSearchResults::-webkit-scrollbar {
    border-bottom: 1px solid rgba(136, 212, 152, 0.1);
}

#userSearchResults::-webkit-scrollbar,
#characterSearchResults::-webkit-scrollbar {
    width: 6px;
}

#userSearchResults::-webkit-scrollbar-track,
#characterSearchResults::-webkit-scrollbar-track {
    background: transparent;
}

#userSearchResults::-webkit-scrollbar-thumb,
#characterSearchResults::-webkit-scrollbar-thumb {
    background: var(--verde-pastel);
    border-radius: 3px;
}

#userSearchResults > div:hover,
#characterSearchResults > div:hover {
    background: rgba(136, 212, 152, 0.15);
}

/* ========== PAGINATION ========== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--fondo-card);
    border-radius: 8px;
    border: 1px solid var(--borde-color);
}

.pagination-container button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 13px;
    color: var(--texto-secundario);
    min-width: 150px;
    text-align: center;
}

/* ========== SANCTIONS DROPDOWN ========== */
.sanctions-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.sanctions-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-radius: 8px;
    box-shadow: var(--sombra-intensa);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
}

.sanctions-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.sanctions-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sanctions-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--verde-pastel);
    border-radius: 3px;
}

.sanction-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(136, 212, 152, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sanction-item:last-child {
    border-bottom: none;
}

.sanction-item:hover {
    background: rgba(136, 212, 152, 0.15);
    padding-left: 20px;
}

.sanction-item-rule {
    font-weight: 600;
    color: var(--verde-pastel);
    font-size: 13px;
    text-transform: uppercase;
}

.sanction-item-type {
    font-size: 11px;
    color: var(--texto-secundario);
    background: rgba(136, 212, 152, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ========== AUTOCOMPLETE / SUGGESTIONS ========== */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fondo-card);
    border: 1px solid var(--borde-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(136, 212, 152, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(136, 212, 152, 0.1);
    color: var(--verde-pastel);
}

.suggestion-item strong {
    color: var(--verde-suave);
    font-weight: 600;
}

.suggestion-meta {
    font-size: 0.8rem;
    color: var(--texto-secundario);
}

.suggestion-item:hover .suggestion-meta {
    color: var(--texto-principal);
}

/* Contenedor opcional para que se vean alineados bonito */
#applyDateRange {
    height: 36px;
    border-radius: 8px;
    font-weight: 600;
    padding: 0 16px;
    border: none;
    transition: all 0.2s ease;
    margin-top: 23px;
}

#applyDateRange:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(39, 174, 96, 0.35);
}

#dateRangeContainer {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

/* Label */
#dateRangeContainer label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #cfe9d6;
    font-weight: 500;
}

/* INPUT DATE BONITO */
#dateRangeContainer input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #2e6f57;
    background: rgba(255, 255, 255, 0.06);
    color: #e8fff1;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

/* Hover */
#dateRangeContainer input[type="date"]:hover {
    border-color: #3fa37a;
}

/* Focus (cuando haces click) */
#dateRangeContainer input[type="date"]:focus {
    border-color: #5fd19c;
    box-shadow: 0 0 0 2px rgba(95, 209, 156, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* Icono del calendario (Chrome/Edge) */
#dateRangeContainer input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
    opacity: 0.8;
}

#dateRangeContainer input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}