/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Modern Dark Theme */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-dark: #374151;
    --success: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #10b981, #34d399);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f87171);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    border-right: 1px solid var(--gray-dark);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h2 {
    color: var(--light);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text p {
    color: var(--gray);
    font-size: 0.875rem;
}

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--gray);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--light);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-text {
    font-weight: 500;
    flex: 1;
}

.nav-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-dark);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-name {
    font-weight: 600;
    display: block;
}

.user-role {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--darker);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--dark);
    border-bottom: 1px solid var(--gray-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

#page-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-dark);
    border-radius: 8px;
    font-size: 0.875rem;
}

.stat-item.online .stat-icon {
    color: var(--success);
}

.stat-item.total .stat-icon {
    color: var(--primary);
}

.stat-item.active .stat-icon {
    color: var(--warning);
}

.btn-refresh {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Content Area */
.content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.primary {
    border-left: 4px solid var(--primary);
}

.stat-card.success {
    border-left: 4px solid var(--success);
}

.stat-card.warning {
    border-left: 4px solid var(--warning);
}

.stat-card.danger {
    border-left: 4px solid var(--danger);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light), var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-input {
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--light);
    min-width: 250px;
}

.search-input::placeholder {
    color: var(--gray);
}

.btn-view-all {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-dark);
}

/* Devices List Layout */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-list-item {
    background: var(--dark);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-list-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.device-list-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-list-name {
    font-weight: 600;
    color: var(--light);
    font-size: 1rem;
}

.device-list-details {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--gray);
}

.device-list-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.device-list-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.device-click-hint {
    font-size: 0.75rem;
    color: #6366f1;
    margin-top: 8px;
}

.status-online {
    color: #10B981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.status-offline {
    color: #EF4444;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* PREMIUM DEVICE DETAILS REDESIGN */
.device-details-page {
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.details-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-back-modern {
    background: rgba(99, 102, 241, 0.2);
    color: #c4b5fd;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back-modern:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.device-header-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.device-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.device-status-badge.offline {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.details-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* Glassmorphism Cards */
.card-glass {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    transition: all 0.4s ease;
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0e7ff;
}

.tag {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-success {
    background: #10b981;
    color: white;
}

.tag-info {
    background: #3b82f6;
    color: white;
}

/* Info Grid */
.info-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.info-label {
    color: #94a3b8;
    font-size: 0.9rem;
    display: block;
}

.info-value {
    color: #e0e7ff;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn-modern {
    padding: 1rem;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.action-btn-modern.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.action-btn-modern.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.action-btn-modern.info {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.action-btn-modern.secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.action-btn-modern:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Call Forward Modern */
.call-forward-form-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid #475569;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 1rem;
}

.input-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.call-actions-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-call {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call:hover {
    transform: translateY(-2px);
}

.btn-call.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.btn-call.danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.btn-call.info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* SIM Numbers Display Styles */
.sim-numbers-display {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.sim-number-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.sim-label-small {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.sim-number-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #6366f1;
    text-align: center;
    min-width: 120px;
}

.sim-number-value.available {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

.sim-number-value.unavailable {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.quick-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag-quick {
    background: rgba(99, 102, 241, 0.2);
    color: #c4b5fd;
    border: 1px solid #6366f1;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-quick:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.tag-quick.sim1-quick {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #93c5fd;
}

.tag-quick.sim2-quick {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

.status-banner {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #f87171;
}

.status-banner.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: #34d399;
}

.overlay-controls {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-overlay {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    color: white;
    cursor: pointer;
}

.btn-overlay.start {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.btn-overlay.stop {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.status-line {
    color: #94a3b8;
}

.status-warning {
    color: #fbbf24;
}

/* Activity Logs */
.activity-logs-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.log-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.log-message {
    font-size: 0.9rem;
    color: #e0e7ff;
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .details-grid-premium {
        grid-template-columns: 1fr;
    }

    .call-forward-form-modern {
        grid-template-columns: 1fr;
    }

    .sim-numbers-display {
        flex-direction: column;
    }

    .call-actions-row {
        flex-direction: column;
    }
}

/* Battery Status Colors */
.battery-high {
    color: #10b981;
}

.battery-medium {
    color: #f59e0b;
}

.battery-low {
    color: #ef4444;
}

.battery-unknown {
    color: #6b7280;
}

.status-active {
    color: #10b981;
}

.status-inactive {
    color: #ef4444;
}

/* Device-specific Conference Control Styles */
.card-device-conference {
    grid-column: 1 / -1;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.conference-status-device {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.conference-inputs {
    margin: 1.5rem 0;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-numbers {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.quick-numbers .quick-tags {
    margin-top: 0.5rem;
}

.conference-actions-device {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-conf-start-device,
.btn-conf-stop-device,
.btn-conf-update-device {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-conf-start-device {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.btn-conf-stop-device {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.btn-conf-update-device {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.btn-conf-start-device:hover,
.btn-conf-stop-device:hover,
.btn-conf-update-device:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-conf-start-device:disabled,
.btn-conf-stop-device:disabled,
.btn-conf-update-device:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.conference-monitor {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-refresh-small {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid #6366f1;
    color: #c4b5fd;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh-small:hover {
    background: #6366f1;
    color: white;
    transform: rotate(180deg);
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.monitor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.monitor-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.monitor-value {
    color: #e0e7ff;
    font-weight: 700;
    font-size: 0.85rem;
}

.monitor-value.online {
    color: #10b981;
}

.monitor-value.offline {
    color: #ef4444;
}

.monitor-value.warning {
    color: #f59e0b;
}

.conference-logs-device {
    margin-top: 1.5rem;
}

.logs-container {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    padding: 1rem;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #6366f1;
    background: rgba(30, 41, 59, 0.6);
}

.log-item.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.log-item.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.log-item.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.log-item.info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.log-time {
    font-size: 0.75rem;
    color: #94a3b8;
    min-width: 80px;
}

.log-message {
    font-size: 0.85rem;
    color: #e0e7ff;
    flex: 1;
    margin-left: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conference-actions-device {
        grid-template-columns: 1fr;
    }

    .status-row,
    .monitor-grid,
    .input-row {
        grid-template-columns: 1fr;
    }
}

/* Device UPI Payments Styles */
.card-upi-payments {
    grid-column: 1 / -1;
}

.upi-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.upi-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upi-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.upi-stat-icon.success {
    background: #10B981;
    color: white;
}

.upi-stat-icon.completed {
    background: #6366F1;
    color: white;
}

.upi-stat-icon.failed {
    background: #EF4444;
    color: white;
}

.upi-stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E5E7EB;
}

.upi-stat-label {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 2px;
}

.device-upi-list {
    max-height: 400px;
    overflow-y: auto;
}

.device-upi-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.device-upi-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.device-upi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.device-upi-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #10B981;
}

.device-upi-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-completed {
    background: #10B98120;
    color: #10B981;
}

.status-failed {
    background: #EF444420;
    color: #EF4444;
}

.status-pending {
    background: #F59E0B20;
    color: #F59E0B;
}

.device-upi-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.device-upi-detail {
    display: flex;
    flex-direction: column;
}

.device-upi-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 2px;
}

.device-upi-value {
    font-size: 0.85rem;
    color: #E5E7EB;
    font-weight: 500;
}

.device-upi-time {
    font-size: 0.7rem;
    color: #6B7280;
    text-align: right;
}

.no-upi-data {
    text-align: center;
    padding: 30px 20px;
    color: #9CA3AF;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    text-align: center;
}

/* PIN Copy Button Styles */
.pin-display-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.pin-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 4px 8px;
    border-radius: 4px;
}

.pin-visible {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pin-copy-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.pin-copy-btn:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-1px);
}

/* Security Notice */
.security-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #EF4444;
}

.security-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* Keylogger Styles */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #1F2937;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #374151;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
}

.device-filter,
.category-filter,
.app-filter {
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 6px;
    padding: 8px 12px;
    color: #E5E7EB;
    font-size: 0.9rem;
}

.keylogs-container {
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 10px;
    overflow: hidden;
}

.keylog-item {
    padding: 15px 20px;
    border-bottom: 1px solid #374151;
    transition: background 0.3s ease;
}

.keylog-item:last-child {
    border-bottom: none;
}

.keylog-item:hover {
    background: #374151;
}

.keylog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.keylog-info {
    flex: 1;
}

.keylog-keystroke {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.keylog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.keylog-app {
    color: #E5E7EB;
    font-weight: 500;
}

.keylog-device {
    color: #9CA3AF;
    font-size: 0.8rem;
}

.keylog-category {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.category-payment {
    background: #10B98120;
    color: #10B981;
    border: 1px solid #10B981;
}

.category-banking {
    background: #3B82F620;
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.category-general {
    background: #6B728020;
    color: #6B7280;
    border: 1px solid #6B7280;
}

.category-google_pay {
    background: #8B5CF620;
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

.keylog-time {
    text-align: right;
    min-width: 200px;
}

.keylog-timestamp {
    color: #6B7280;
    font-size: 0.8rem;
}

.keylog-human-time {
    color: #9CA3AF;
    font-size: 0.7rem;
}

.keylog-full-buffer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #D1D5DB;
}

.buffer-label {
    color: #9CA3AF;
    font-size: 0.7rem;
    margin-bottom: 5px;
    display: block;
}

/* Keylogs Styles */
.keylogs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.keylog-stat-card {
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.keylog-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.keylog-stat-icon.total {
    background: #6366F1;
}

.keylog-stat-icon.payment {
    background: #10B981;
}

.keylog-stat-icon.banking {
    background: #F59E0B;
}

.keylog-stat-icon.general {
    background: #6B7280;
}

.keylog-stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.keylog-stat-info p {
    margin: 0;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.keylog-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 6px;
    color: #D1D5DB;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #6366F1;
    border-color: #6366F1;
}

.keylogs-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #111827;
}

.keylogs-list {
    padding: 10px;
}

.device-keylog-item {
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.device-keylog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.device-keylog-keystroke {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.device-keylog-category {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.category-payment {
    background: #10B981;
    color: white;
}

.category-banking {
    background: #F59E0B;
    color: white;
}

.category-general {
    background: #6B7280;
    color: white;
}

.device-keylog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 5px;
}

.device-keylog-buffer {
    font-size: 0.8rem;
    color: #D1D5DB;
    background: rgba(107, 114, 128, 0.1);
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #6B7280;
}

.no-keylogs-data {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

/* ===== CALL HISTORY DELETE CARD - PROFESSIONAL DESIGN ===== */

.card-call-history-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}

.card-call-history-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
    border-radius: 8px 8px 0 0;
}

.card-call-history-delete:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.card-call-history-delete .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.card-call-history-delete .card-header h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-call-history-delete .card-header h3::before {
    content: '🗑️';
    font-size: 1.5rem;
}

.card-call-history-delete .tag-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Call Delete Form */
.call-delete-form {
    margin: 20px 0;
}

.call-delete-form .input-group {
    margin-bottom: 20px;
}

.call-delete-form label {
    display: block;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.phone-input-container {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.phone-input-container:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.phone-input-container.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.phone-input-container.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.country-code {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 8px;
}

.call-delete-form input {
    background: transparent;
    border: none;
    color: #f8fafc;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.call-delete-form input::placeholder {
    color: #64748b;
}

.input-hint {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Delete Actions */
.delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-delete:hover::before {
    left: 100%;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete:active {
    transform: translateY(0);
}

.btn-check {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-check:active {
    transform: translateY(0);
}

/* Quick Numbers Section */
.quick-delete-numbers {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.quick-delete-numbers strong {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-quick-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag-quick-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Status Container */
.delete-status-container {
    margin-top: 24px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.2);
    backdrop-filter: blur(10px);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-header strong {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-refresh-small {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.btn-refresh-small:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.3);
}

.delete-status {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.delete-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.delete-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.delete-status.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.delete-status.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Logs Container */
.delete-logs-container {
    margin-top: 20px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar Styling */
.delete-logs-container::-webkit-scrollbar {
    width: 6px;
}

.delete-logs-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 3px;
}

.delete-logs-container::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.4);
    border-radius: 3px;
}

.delete-logs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.6);
}

.logs-header {
    margin-bottom: 12px;
}

.logs-header strong {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.delete-logs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.log-item:hover {
    transform: translateX(4px);
}

.log-item.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.15);
}

.log-item.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.15);
}

.log-item.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.15);
}

.log-time {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 500;
    min-width: 60px;
}

.log-message {
    flex: 1;
    margin-left: 12px;
    font-weight: 500;
}

/* Animation for new logs */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-item {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-call-history-delete {
        padding: 20px;
    }

    .delete-actions {
        grid-template-columns: 1fr;
    }

    .quick-tags {
        justify-content: center;
    }

    .phone-input-container {
        flex-direction: column;
        gap: 8px;
    }

    .country-code {
        align-self: flex-start;
        margin-right: 0;
    }
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.delete-status.warning {
    animation: pulse 2s infinite;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.delete-status.success {
    animation: successPulse 2s;
}

/* Error Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.delete-status.error {
    animation: shake 0.5s ease-in-out;
}

.call-forward-status {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-success {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.overlay-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.btn-overlay {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-overlay.start {
    background-color: #10B981;
    color: white;
}

.btn-overlay.stop {
    background-color: #EF4444;
    color: white;
}

.btn-overlay.check {
    background-color: #3B82F6;
    color: white;
}

.btn-overlay:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

/* Status Colors */
.status-success {
    color: #10B981;
    font-weight: bold;
}

.status-error {
    color: #EF4444;
    font-weight: bold;
}

.status-warning {
    color: #F59E0B;
    font-weight: bold;
}

.status-info {
    color: #3B82F6;
    font-weight: bold;
}

.status-active {
    color: #10B981;
    font-weight: bold;
}

/* ===== DEVICE DELETE STYLES ===== */

/* Device List Item with Delete Button */
.device-list-item {
    background: var(--dark);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.device-list-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-delete-device {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.btn-delete-device:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Bulk Actions Section */
.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--dark);
    border-radius: 12px;
    border: 1px solid var(--gray-dark);
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--light);
}

.bulk-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-bulk-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-bulk-delete:disabled {
    background: var(--gray-dark);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.btn-bulk-delete:not(:disabled):hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

/* Device selection checkbox */
.device-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.device-list-main {
    display: flex;
    align-items: center;
    flex: 1;
}

#selectedCount {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Delete Confirmation Modal */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.delete-modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark);
    border: 1px solid var(--gray-dark);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.modal-message {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.device-info-confirm {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.device-info-confirm strong {
    color: #fca5a5;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal-cancel {
    background: var(--gray-dark);
    color: var(--light);
    border: 1px solid var(--gray);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: var(--gray);
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

/* Delete Actions Dropdown */
.delete-actions-dropdown {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.btn-delete-actions {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-delete-actions:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--dark);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    border: 1px solid var(--gray-dark);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--gray-dark);
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--gray-dark);
}

.dropdown-content a.danger {
    color: #ef4444;
    font-weight: 600;
}

.dropdown-content a.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== UNINSTALL STYLES ===== */

/* Uninstall Button in Quick Actions */
.action-btn-modern.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.action-btn-modern.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Uninstall-specific modal styles */
.uninstall-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.uninstall-warning strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 5px;
}

.uninstall-features {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.uninstall-features ul {
    margin: 5px 0;
    padding-left: 20px;
}

.uninstall-features li {
    color: #ef4444;
    margin: 3px 0;
    font-size: 0.9rem;
}

/* Header Uninstall Dropdown */
.uninstall-dropdown {
    position: relative;
    display: inline-block;
}

.uninstall-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--dark);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    border: 1px solid var(--gray-dark);
    overflow: hidden;
}

.uninstall-dropdown-content a {
    color: var(--light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--gray-dark);
    transition: background 0.3s ease;
}

.uninstall-dropdown-content a:hover {
    background: var(--gray-dark);
}

.uninstall-dropdown-content a.warning {
    color: #f59e0b;
    font-weight: 600;
}

.uninstall-dropdown-content a.danger {
    color: #ef4444;
    font-weight: 600;
}

.uninstall-dropdown:hover .uninstall-dropdown-content {
    display: block;
}

/* Uninstall Button Styles */
.btn-uninstall-device {
    background: #DC2626;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-right: 8px;
}

.btn-uninstall-device:hover {
    background: #B91C1C;
    transform: translateY(-1px);
}

.btn-delete-device {
    background: #6B7280;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-delete-device:hover {
    background: #4B5563;
}

.device-list-actions {
    display: flex;
    gap: 8px;
}

/* Uninstall Modal Specific Styles */
.btn-modal-confirm.uninstall {
    background: #DC2626;
}

.btn-modal-confirm.uninstall:hover {
    background: #B91C1C;
}

.warning-notice {
    background: #451A03;
    border: 1px solid #7C2D12;
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
}

.warning-notice strong {
    color: #F97316;
    display: block;
    margin-bottom: 8px;
}

.warning-notice ul {
    margin: 8px 0;
    padding-left: 20px;
    color: #FDBA74;
}

.warning-notice li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Uninstall Status Styles */
.uninstall-status {
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.uninstall-status.pending {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.uninstall-status.success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
}

.uninstall-status.error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* Uninstall Card Styles */
.card-uninstall {
    border: 2px solid #DC2626;
}

.uninstall-warning {
    background: #451A03;
    border: 1px solid #7C2D12;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.uninstall-warning strong {
    color: #F97316;
    display: block;
    margin-bottom: 8px;
}

.uninstall-requirements {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.uninstall-requirements ul {
    margin: 8px 0;
    padding-left: 20px;
}

.uninstall-requirements li {
    margin-bottom: 4px;
    color: #CBD5E1;
}

.uninstall-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-uninstall-full {
    background: #DC2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-uninstall-full:hover {
    background: #B91C1C;
    transform: translateY(-1px);
}

.btn-delete-only {
    background: #6B7280;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-only:hover {
    background: #4B5563;
}

/* Uninstall Card Styles */
.card-uninstall {
    border: 2px solid #DC2626;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.card-uninstall .card-header {
    border-bottom: 1px solid #7F1D1D;
}

.uninstall-warning {
    background: #451A03;
    border: 1px solid #7C2D12;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.uninstall-warning strong {
    color: #F97316;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.uninstall-warning p {
    color: #FDBA74;
    margin: 0;
    line-height: 1.5;
}

.uninstall-requirements {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.uninstall-requirements strong {
    color: #F1F5F9;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.uninstall-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.uninstall-requirements li {
    margin-bottom: 6px;
    color: #CBD5E1;
    font-size: 14px;
}

.uninstall-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-uninstall-full {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.btn-uninstall-full:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

.btn-delete-only {
    background: #6B7280;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-delete-only:hover {
    background: #4B5563;
    transform: translateY(-1px);
}

.uninstall-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.uninstall-status.pending {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.uninstall-status.success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
}

.uninstall-status.error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* Tag styles */
.tag-danger {
    background: #DC2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.basic-info-card {
    background: #0f172a;
    color: #e5e7eb;
    max-width: 420px;
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid #1e293b;
    font-family: Arial, sans-serif;
}

.basic-info-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #38bdf8;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #1e293b;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-size: 13px;
    color: #94a3b8;
}

.value {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    max-width: 220px;
    text-align: right;
    word-break: break-word;
}