.fade-frame {
    transition: opacity 0.5s ease, transform 0.4s ease;
}

.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.fs-7 {
    font-size: 13px;
}

.fs-8 {
    font-size: 0.75em;
}

.fs-9 {
    font-size: 0.65em;
}

.fs-10 {
    font-size: 0.5em;
}

.h-10 {
    height: 10px !important;
}

.h-15 {
    height: 15px !important;
}

.h-20 {
    height: 20px !important;
}

.h-30 {
    height: 30px !important;
}

.h-40 {
    height: 40px !important;
}

.h-50 {
    height: 50px !important;
}

.link:hover {
    cursor: pointer;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.page-header {
    background: var(--dark-gradient);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h4 {
    color: white;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    border-left: 4px solid #60a5fa;
    font-size: 0.8rem;
}

.info-box i {
    color: #fbbf24;
}

.add-box-btn {
    background: var(--success-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(11, 163, 96, 0.3);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.add-box-btn:hover {
    box-shadow: 0 6px 20px rgba(11, 163, 96, 0.4);
}

.table-container {
    background: var(--dark-gradient);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-dark {
    margin-bottom: 0;
    font-size: 0.75rem;
}

.table-dark thead th {
    background: rgba(30, 41, 59, 0.8);
    color: #fbbf24 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.5rem;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.table-dark tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.table-dark tbody tr:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

.table-dark tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
}

.status-badge {
    padding: 0.3rem 0.7rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.badge.text-bg-success {
    background: var(--success-gradient) !important;
}

.badge.text-bg-warning {
    background: var(--warning-gradient) !important;
}

.badge.text-bg-danger {
    background: var(--danger-gradient) !important;
}

.badge.text-bg-primary {
    background: var(--info-gradient) !important;
}

.badge.text-bg-dark {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
}

.connection-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 255, 119, 0.1);
    transition: all 0.3s ease;
}

.connection-indicator.offline {
    background: rgba(99, 102, 241, 0.1);
}

.delete-btn {
    background: var(--danger-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
    font-size: 0.7rem;
}

.delete-btn:hover {
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
}

.highlight {
    animation: highlight 0.6s ease-out;
}

@keyframes highlight {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.02);
        background: rgba(102, 126, 234, 0.2);
    }
}

.sim-info {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
}

.no-sim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
}

.firmware-version {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.7rem;
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

.badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}