/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    min-height: 150px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--panel-border);
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

th.sortable:hover {
    color: var(--text-light);
}

td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

/* Device Type Badges */
.device-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.apple { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mobile { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

tbody tr:last-child td {
    border-bottom: none;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.status-online .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-offline {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.status-offline .status-dot {
    background: var(--danger);
}

.loading-state, .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Installer Download Action Buttons */
.btn-installer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 0.6rem 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    user-select: none;
}

.btn-installer:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-installer:active {
    transform: translateY(0);
}

