.search-box {
    padding: 8px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debounced-search-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.debounced-search-with-icon {
    width: 100%;
    height: 32px;
    padding: 0 32px 0 36px; 
    border: 1px solid var(--colorNeutralStroke1, #d1d1d1);
    border-radius: 4px;
    background-color: transparent;
    color: var(--neutral-foreground-rest);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    outline: none;
    transition: all 0.1s ease;
    box-sizing: border-box;
}

.debounced-search-with-icon:hover {
    border-color: var(--colorNeutralStroke1Hover, #c7c7c7);
}

.debounced-search-with-icon:focus,
.debounced-search-with-icon.focused {
    border-color: var(--accent-fill-rest, #0f6cbd);
    box-shadow: 0 0 0 1px var(--accent-fill-rest, #0f6cbd);
    border-width: 1px;
}

.debounced-search-with-icon::placeholder {
    color: var(--colorNeutralForeground4, #707070);
    opacity: 1;
}
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--colorNeutralForeground3, #8a8a8a);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.clear-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 3px;
    color: var(--colorNeutralForeground3, #8a8a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: all 0.1s ease;
}

.clear-button:hover {
    background-color: var(--colorNeutralBackground1Hover, #f5f5f5);
    color: var(--colorNeutralForeground2, #424242);
}

.clear-button:active {
    background-color: var(--colorNeutralBackground1Pressed, #ebebeb);
}

.clear-button:focus-visible {
    outline: 1px solid var(--accent-fill-rest, #0f6cbd);
    outline-offset: 1px;
}

/* Indicador de carga */
.loading-indicator {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-fill-rest, #0f6cbd);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

@keyframes spin {
     from {
         transform: rotate(0deg);
     }
     to {
         transform: rotate(360deg);
     }
 }

.spinning {
    animation: spin 1s linear infinite;
}

/* Estados adicionales */
.debounced-search-with-icon:disabled {
    background-color: var(--colorNeutralBackground6, #f0f0f0);
    border-color: var(--colorNeutralStroke2, #e0e0e0);
    color: var(--colorNeutralForegroundDisabled, #a6a6a6);
    cursor: not-allowed;
}

.debounced-search-with-icon:disabled::placeholder {
    color: var(--colorNeutralForegroundDisabled, #a6a6a6);
}

@media (max-width: 480px) {
    .debounced-search-wrapper {
        max-width: 100%;
    }

    .debounced-search-with-icon {
        font-size: 16px; 
    }
}

.debounced-search-wrapper.compact .debounced-search-with-icon {
    height: 28px;
    font-size: 13px;
    padding: 0 28px 0 32px;
}

.debounced-search-wrapper.compact .search-icon {
    left: 8px;
    width: 14px;
    height: 14px;
}

.debounced-search-wrapper.compact .clear-button {
    right: 6px;
    width: 18px;
    height: 18px;
    padding: 3px;
}

.debounced-search-wrapper.compact .loading-indicator {
    right: 28px;
    width: 14px;
    height: 14px;
}


 /* sdsd*/

.page-container {
    margin: 0 auto;
    padding: 0;
}

.header-section {
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, var(--accent-fill-hover) 100%);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--neutral-layer-1);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--neutral-stroke-rest);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-foreground-rest);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-foreground-rest);
    opacity: 0.8;
}

.filters-section {
    background: var(--neutral-layer-1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--neutral-stroke-rest);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-stroke-rest);
}

.filter-tag {
    background: var(--accent-fill-rest);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: var(--accent-fill-hover);
    transform: scale(1.05);
}

.data-grid-container {
    background: var(--neutral-layer-1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--neutral-stroke-rest);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.grid-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cell-content {
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 4px;
    background: var(--neutral-layer-2);
    font-size: 0.875rem;
    line-height: 1.4;
}

.cell-content::-webkit-scrollbar {
    width: 4px;
}

.cell-content::-webkit-scrollbar-track {
    background: var(--neutral-layer-1);
    border-radius: 2px;
}

.cell-content::-webkit-scrollbar-thumb {
    background: var(--neutral-stroke-rest);
    border-radius: 2px;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-button {
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.action-button:hover {
    transform: scale(1.1);
}

.edit-button {
    color: var(--accent-foreground-rest);
}

.delete-button {
    color: var(--error-foreground-rest);
}

.copy-button {
    color: var(--info-foreground-rest);
}

.companies-button {
    color: var(--success-foreground-rest);
}

.clear-server-key-button {
    color: var(--warning-foreground-rest);
}

.send-mail-button {
    color: var(--info-foreground-rest);
}

.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--neutral-layer-1);
    border-radius: 8px;
    border: 1px solid var(--neutral-stroke-rest);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--neutral-foreground-rest);
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-button {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.page-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.page-button.active {
    background: var(--accent-fill-rest);
    color: var(--accent-foreground-rest);
}

.performance-info {
    background: linear-gradient(135deg, var(--info-fill-rest) 0%, var(--info-fill-hover) 100%);
    color: var(--info-foreground-rest);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.6);
}

.loading-content {
    background: var(--neutral-layer-1);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neutral-stroke-rest);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--neutral-foreground-rest);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 24px;
}

.license-key-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: var(--neutral-layer-3);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--neutral-stroke-rest);
    word-break: break-all;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.status-badge:hover::before {
    transform: translateX(100%);
}

.status-valid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #047857;
}

.status-valid:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.status-expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #b91c1c;
}

.status-expired:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.status-expiring {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #b45309;
}

.status-expiring:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.status-unused {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #374151;
}

.status-unused:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 8px;
    }

    .header-section {
        padding: 16px;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-section {
        padding: 16px;
    }

    .data-grid-container {
        padding: 12px;
    }

    .grid-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-section {
        flex-direction: column;
        gap: 12px;
    }

    .pagination-controls {
        justify-content: center;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
     from { opacity: 0; transform: translateY(10px); }
     to { opacity: 1; transform: translateY(0); }
 }

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
     from { transform: translateX(-20px); opacity: 0; }
     to { transform: translateX(0); opacity: 1; }
 }