/* ===== DataGrid Premium ===== */
.data-grid-container {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.data-grid-premium .mud-data-grid {
    background: transparent !important;
}

.data-grid-premium thead th {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748B !important;
    padding: 0.875rem 1rem !important;
}

.data-grid-premium tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.15s ease !important;
}

.data-grid-premium tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.data-grid-premium tbody td {
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem !important;
    color: #94A3B8 !important;
    border: none !important;
}

/* ===== Cell Styles ===== */
.cell-key {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cell-key-icon {
    color: #64748B;
}

.cell-key code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.cell-client {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cell-client-name {
    font-weight: 600;
    color: #F8FAFC;
    font-size: 0.8125rem;
}

.cell-client-app {
    font-size: 0.75rem;
    color: #64748B;
}

.cell-client-email {
    font-size: 0.75rem;
    color: #64748B;
}

.cell-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #94A3B8;
}

.cell-location-icon {
    color: #64748B;
}

.cell-expiry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94A3B8;
}

.cell-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.cell-code-sm {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.6875rem;
    color: #64748B;
}

.cell-text {
    font-size: 0.8125rem;
    color: #94A3B8;
}

.cell-text-muted {
    font-size: 0.75rem;
    color: #64748B;
}

.cell-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cell-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.cell-user-name {
    font-weight: 600;
    color: #F8FAFC;
    font-size: 0.8125rem;
}

.cell-user-email {
    font-size: 0.75rem;
    color: #64748B;
}

.cell-actions-menu .mud-icon-button {
    color: #94A3B8 !important;
}

/* ===== App Cards ===== */
.app-card {
    height: 100%;
    cursor: pointer;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.app-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #F8FAFC;
    margin: 0 0 0.5rem 0;
}

.app-card-desc {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-card-version {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748B;
}

/* ===== Plan Cards ===== */
.plan-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.plan-card-featured {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10B981, #14B8A6);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #F8FAFC;
    margin: 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94A3B8;
}

.plan-features li .mud-icon {
    flex-shrink: 0;
}

/* ===== Components Tabs ===== */
.components-tabs .mud-tab-panel {
    padding: 1.25rem 0;
}

.settings-tabs .mud-tab-panel {
    padding: 1.25rem 0;
}

/* ===== Filter Select ===== */
.filter-select .mud-input-control {
    margin-bottom: 0 !important;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .data-grid-premium thead th,
    .data-grid-premium tbody td {
        padding: 0.625rem 0.75rem !important;
    }

    .app-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .search-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-toolbar-right {
        flex-direction: column;
    }

    .filter-select {
        width: 100% !important;
        min-width: unset !important;
    }
}
