* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modal de Confirmación Personalizado */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.confirm-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: iconPulse 0.5s ease-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confirm-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.confirm-modal-message {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 8px;
}

.confirm-modal-question {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn-cancel {
    background: #f5f5f7;
    color: #1d1d1f;
}

.confirm-btn-cancel:hover {
    background: #e8e8ed;
    transform: translateY(-1px);
}

.confirm-btn-ok {
    background: #ff3b30;
    color: white;
}

.confirm-btn-ok:hover {
    background: #ff2d20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Botón Open All Tabs */
.btn-open-tabs {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-open-tabs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-open-tabs:active {
    transform: translateY(0);
}

.btn-open-tabs span:first-child {
    font-size: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1d1d1f;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar content";
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    grid-area: sidebar;
    grid-row: 1 / 3;
    background: #1a1d29;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 60px;
}

.app-name {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
}

.user-email {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* Add Inventory Button */
.add-inventory-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-add-inventory {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add-inventory:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ===== NAVIGATION ===== */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-label {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: #4a90e2;
}

.nav-item.active {
    background: rgba(74, 144, 226, 0.15);
    color: white;
    border-left-color: #4a90e2;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.7);
    transition: stroke 0.2s ease;
}

.nav-item:hover .nav-icon svg,
.nav-item.active .nav-icon svg {
    stroke: #ffffff;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-collapse {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-collapse:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ===== TOP BLACK BAR ===== */
.top-black-bar {
    grid-area: topbar;
    background: #1a1d29;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 90;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-logo {
    font-size: 24px;
}

.top-app-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-top-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
}

.btn-top-icon:hover {
    color: white;
    transform: scale(1.1);
}

.top-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-user-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.top-user-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
    overflow: auto;
    position: relative;
}

.content-header {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.content-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1d29;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.content-header h2 svg {
    color: #4a90e2;
    flex-shrink: 0;
}

.content-header h2 span {
    display: inline-block;
}

/* Cuando solo hay Back + Título (sin botón Add), empujar título a la derecha */
.btn-back[style*="display: flex"] ~ h2 {
    margin-left: auto;
}

.btn-add-inventory-top {
    padding: 8px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-add-inventory-top:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-back {
    padding: 8px 16px;
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-back:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4a90e2;
}


/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #f5f7fa;
    padding: 0;
}

.page-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Settings no necesita padding extra */
.settings-container {
    padding: 0 !important;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Filter Input Wrapper */
.filter-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.filter-input::placeholder {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
}

/* Clear Button for Filter Inputs */
.btn-clear-filter-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.btn-clear-filter-input:hover {
    background: #d1d5db;
}

.btn-clear-filter-input span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1;
}

/* Date Filter Group */
.date-filter-group {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.date-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-button-filter {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}

.date-button-filter:hover {
    border-color: #4a90e2;
}

.date-button-text {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
}

.date-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Clear Button for Date */
.btn-clear-date {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    z-index: 10;
}

.btn-clear-date:hover {
    background: #d1d5db;
}

.btn-clear-date span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1;
}

/* Filter Buttons */
.btn-filter {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-filter:hover {
    background: #3a7bc8;
}

.btn-clear-filters {
    padding: 10px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #dc2626;
}

/* Table */
.table-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.inventory-list {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.inventory-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    background: white;
}

.inventory-item:last-child {
    border-bottom: none;
}

.inventory-item.expanded {
    background: white;
    border-left: 2px solid #60a5fa;
    border-right: 2px solid #60a5fa;
    border-bottom: 6px solid #60a5fa;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.item-header:hover {
    background: #f9fafb;
}

.inventory-item.expanded .item-header {
    background: #60a5fa;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.item-stats {
    text-align: right;
    min-width: 200px;
    margin-right: 20px;
}

.item-stats p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.item-stats .price {
    color: #1a1d29;
    font-weight: 600;
    font-size: 13px;
}

.btn-expand {
    background: none;
    border: none;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s;
}

.inventory-item.expanded .btn-expand {
    transform: rotate(180deg);
}

/* Details Table */
.item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.inventory-item.expanded .item-details {
    max-height: none;
    padding: 0 25px 25px 25px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.details-table thead {
    background: white;
}

.details-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    border-bottom: 2px solid #e5e7eb;
}

.details-table td {
    padding: 10px 12px;
    color: #1a1d29;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.details-table tbody tr {
    background: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.details-table tbody tr:hover {
    background: #f9fafb;
}

.details-table tbody tr.listing-expanded {
    background: #dbeafe;
}

.details-table tbody tr:last-child td {
    border-bottom: none;
}

/* Listing cells - negrita y tamaño aumentado */
.listing-qty,
.listing-section,
.listing-row-cell,
.listing-seats,
.listing-cost,
.listing-list,
.listing-type {
    font-weight: 600;
    font-size: 14px;
}

.badge-section {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-seats {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.btn-icon-action {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.btn-icon-action:hover {
    transform: scale(1.2);
}

/* Tickets Details - Filas de tabla */
.ticket-detail-row {
    display: none;
    background: #f9fafb;
}

.ticket-detail-row td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: none !important;
}

.ticket-number {
    font-weight: 400;
    color: #1a1d29;
    text-align: center;
    vertical-align: top;
}

.ticket-account {
    color: #60a5fa !important;
    font-weight: 400;
}

.ticket-id {
    color: #60a5fa !important;
    font-size: 13px;
    font-weight: 400;
}

.ticket-link {
    color: #60a5fa !important;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.no-tickets {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

/* ===== LOADING MESSAGE ===== */
.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
}

.loading-message.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message p {
    font-size: 16px;
    color: #666;
}

/* ===== EMPTY MESSAGE ===== */
.empty-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
}

.empty-message.show {
    display: block;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.empty-message p {
    font-size: 16px;
    color: #666;
}

/* ===== SCROLLBAR ===== */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== ADD EVENT SCREEN ===== */
.add-inventory-container {
    max-width: 100%;
    margin: 0 auto;
}

.add-event-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.form-group-full {
    margin-bottom: 25px;
}

.form-group-full label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.label-note {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.info-icon-small {
    font-size: 11px;
    color: #9ca3af;
    cursor: help;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.input-field.with-prefix {
    padding-left: 28px;
}

.field-note {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-submit-event {
    padding: 12px 32px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-event:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Ticket Fields Container */
.ticket-fields-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.ticket-row {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.ticket-row-header {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.ticket-number {
    font-size: 13px;
    font-weight: 700;
    color: #4a90e2;
}

.ticket-row .form-group {
    margin-bottom: 0;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #4a90e2;
}

.tab-btn.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.add-inventory-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
}

.section-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-row-inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.form-row-inline .form-section {
    flex: 1;
    margin-bottom: 0;
}

.btn-search-events {
    padding: 10px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-events:hover {
    background: #3a7bc8;
}

.checkbox-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-section label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.info-message {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
}

.btn-continue {
    padding: 12px 32px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.right-panel {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.selected-event-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1d29;
    margin: 0;
}

.btn-options {
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-options:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1d29;
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    color: #1a1d29;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    padding: 10px 20px;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-submit {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header .app-name,
    .user-details,
    .nav-text,
    .nav-label {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid #4a90e2;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* ===== USUARIOS ===== */
.usuarios-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
}

.usuarios-left {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.usuarios-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-copiar-siguiente {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-copiar-siguiente:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ultimo-copiado-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #667eea;
}

.label-small {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.email-copiado {
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    word-break: break-all;
}

.agregar-usuario-section h3 {
    color: #1a1d29;
    font-size: 15px;
    margin-bottom: 12px;
}

.agregar-usuario-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.agregar-usuario-section input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-agregar {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-agregar:hover {
    background: #5568d3;
}


.usuarios-column {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.column-header h2 {
    font-size: 16px;
    color: #1a1d29;
    margin: 0;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    width: 180px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.table-wrapper {
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.usuarios-table {
    width: 100%;
    border-collapse: collapse;
}

.usuarios-table thead {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 5;
}

.usuarios-table th {
    padding: 10px 8px;
    text-align: left;
    font-size: 11px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.usuarios-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #1a1d29;
}

.usuarios-table tbody tr:hover {
    background: #f8f9fa;
}

.btn-action {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: scale(1.05);
}

.btn-open {
    background: #667eea;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-disable {
    background: #ff3b30;
    color: white;
}

.btn-enable {
    background: #34c759;
    color: white;
}

.btn-delete {
    background: #ff3b30;
    color: white;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-save {
    flex: 1;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-save:hover {
    background: #5568d3;
}

/* Settings Page Styles */
.settings-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Settings Tabs - EXACTAMENTE como Add Inventory */
.settings-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0 20px 0 20px;
    padding-top: 0;
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-button:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.03);
}

.tab-button.active {
    color: #0071e3;
    border-bottom-color: #0071e3;
    background: white;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.settings-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.settings-card h2 {
    color: #667eea;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.settings-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.extension-info-section {
    margin-bottom: 30px;
}

.extension-info-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.extension-info-section p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.config-item {
    margin-bottom: 20px;
}

.config-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.config-value {
    display: flex;
    gap: 10px;
}

.config-value input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    color: #333;
}

.btn-copy {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-copy:active {
    transform: translateY(0);
}

.instrucciones-lista {
    margin-left: 20px;
    color: #333;
}

.instrucciones-lista li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.instrucciones-lista code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 13px;
}

/* ===== FLATPICKR CUSTOM STYLES ===== */
/* Fondo blanco y estilos personalizados */
.flatpickr-calendar {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
}

.flatpickr-months {
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.flatpickr-month {
    color: #1d1d1f !important;
}

.flatpickr-current-month {
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

.flatpickr-weekdays {
    background: #f9fafb !important;
}

.flatpickr-weekday {
    color: #6b7280 !important;
    font-weight: 600 !important;
}

/* Días normales */
.flatpickr-day {
    color: #1d1d1f !important;
    border-radius: 6px !important;
}

.flatpickr-day:hover {
    background: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
}

/* Día seleccionado */
.flatpickr-day.selected {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: white !important;
}

/* Día de hoy */
.flatpickr-day.today {
    border-color: #0071e3 !important;
    font-weight: 600 !important;
}

/* Días DESHABILITADOS (pasados) - OPACOS */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #d1d5db !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.flatpickr-day.flatpickr-disabled:hover {
    background: transparent !important;
    border-color: transparent !important;
}

/* Botones de navegación */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #6b7280 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: #0071e3 !important;
}

/* ========================================
   PURCHASES STYLES
   ======================================== */

.purchases-table-container {
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.purchases-table {
    width: 100%;
    border-collapse: collapse;
}

.purchases-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.purchases-table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchases-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s;
}

.purchases-table tbody tr:hover {
    background-color: #f8f9fa;
}

.purchases-table td {
    padding: 16px;
    vertical-align: top;
}

/* Columnas específicas */
.order-cell {
    min-width: 140px;
}

.order-cell strong {
    display: block;
    font-size: 14px;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.order-date {
    font-size: 11px;
    color: #86868b;
}

.event-cell {
    min-width: 250px;
}

.event-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-size: 14px;
}

.event-venue {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.event-date {
    font-size: 11px;
    color: #86868b;
}

.seating-cell {
    min-width: 180px;
}

.seating-section {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-size: 14px;
}

.seating-details {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.delivery-method {
    font-size: 11px;
    color: #86868b;
    font-style: italic;
}

.qty-cell {
    min-width: 140px;
    max-width: 140px;
}

.qty-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 110px;
}

.qty-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    background: #f8f9fa;
    white-space: nowrap;
}

.qty-badge.qty-total {
    background: #e7f3ff;
    border-left: 3px solid #0071e3;
}

.qty-badge.qty-available.qty-active {
    background: #d1f4e0;
    border-left: 3px solid #0d7a3f;
}

.qty-badge.qty-available.qty-partial {
    background: #fff3cd;
    border-left: 3px solid #856404;
}

.qty-badge.qty-available.qty-sold {
    background: #f8d7da;
    border-left: 3px solid #721c24;
}

.qty-badge.qty-sold {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

.qty-label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

.qty-value {
    font-size: 12px;
    font-weight: 700;
    color: #1d1d1f;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.cost-cell {
    min-width: 100px;
}

.cost-cell strong {
    font-size: 14px;
    color: #1d1d1f;
}

.actions-cell {
    min-width: 140px;
    text-align: left;
    padding-left: 16px !important;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 6px;
}

.btn-action:last-child {
    margin-right: 0;
}

.btn-action:hover:not(.btn-disabled) {
    background: #e8e8ed;
    transform: translateY(-2px);
}

.btn-action.btn-inventory {
    background: #d1f4e0;
    color: #0d7a3f;
}

.btn-action.btn-inventory:hover {
    background: #b8eacd;
}

.btn-action.btn-sales {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-action.btn-sales:hover {
    background: #bee5eb;
}

.btn-action.btn-tickets {
    background: #e7e7f1;
    color: #5856d6;
}

.btn-action.btn-tickets:hover {
    background: #d1d1e9;
}

.btn-action.btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Empty state */
.empty-purchases {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-purchases .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-purchases h3 {
    font-size: 24px;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.empty-purchases p {
    font-size: 16px;
    color: #86868b;
}

/* Modal de Tickets */
.modal-tickets {
    max-width: 800px;
    width: 90%;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tickets-table th,
.tickets-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
}

.tickets-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
}

.tickets-table tr:hover {
    background: #f8f9fa;
}

.ticket-link {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.ticket-link:hover {
    text-decoration: underline;
}

/* Highlight para listing desde Purchases */
.listing-highlight {
    animation: highlightPulse 1.5s ease-in-out;
    background: #fff3cd !important;
}

@keyframes highlightPulse {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: #fff3cd;
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
}

/* ===================================
   EXTERNAL ACCOUNTS (SETTINGS TAB)
   =================================== */

.marketplaces-container {
    margin-top: 20px;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.marketplace-card-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.marketplace-card-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.marketplace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.marketplace-icon {
    line-height: 1;
    flex: 1;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-enabled {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.status-disabled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.status-unconfigured {
    background: #f3f4f6;
    color: #6b7280;
}

/* Coming Soon badge removido - ya no se usa */

.marketplace-card-body {
    margin-bottom: 15px;
    min-height: 40px;
}

.config-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.preview-label {
    color: #666;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.no-config-text {
    color: #999;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

.marketplace-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.marketplace-card-actions .btn {
    flex: 1;
    min-width: 80px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm:active {
    transform: translateY(0);
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc2626;
    font-size: 14px;
}

@media (max-width: 768px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    
    .marketplace-card-actions {
        flex-direction: column;
    }
    
    .marketplace-card-actions .btn {
        width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-input {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
    color: #333;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #2563eb;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #16a34a;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #dc2626;
}

.alert-loading {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.btn-secondary {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
