/* ══════════════════════════════════════════════════════════
   Device Management Shared Styles (dm- prefix)
   Used by: Default.aspx (login flow), ChangePassword.aspx
   ══════════════════════════════════════════════════════════ */

/* ── Warning banner ── */
.dm-warning-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    animation: dmSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

@keyframes dmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dm-warning-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .dm-warning-icon-box i {
        color: #d97706;
        font-size: 0.95rem;
    }

.dm-warning-banner span {
    font-size: 0.86rem;
    color: #92400e;
    line-height: 1.6;
    font-weight: 500;
}

/* ── Message area ── */
.dm-msg-area {
    margin-bottom: 12px;
}

/* ── Device list ── */
.dm-device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-device-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: dmItemEntry 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

    .dm-device-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .dm-device-item:nth-child(2) {
        animation-delay: 0.18s;
    }

    .dm-device-item:nth-child(3) {
        animation-delay: 0.26s;
    }

    .dm-device-item:nth-child(4) {
        animation-delay: 0.34s;
    }

    .dm-device-item:nth-child(5) {
        animation-delay: 0.42s;
    }

@keyframes dmItemEntry {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .dm-device-item {
    animation-name: dmItemEntryRtl;
}

@keyframes dmItemEntryRtl {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dm-device-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Device icon box */
.dm-device-icon-box {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #e0f7f4 0%, #ccfbf1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .dm-device-icon-box i {
        font-size: 1.2rem;
        color: #0d9488;
    }

/* Device info */
.dm-device-info {
    flex: 1;
}

[dir="rtl"] .dm-device-info {
    text-align: right;
}

.dm-device-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dm-device-date {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .dm-device-date i {
        font-size: 0.75rem;
        color: #cbd5e1;
    }

/* Delete button */
.dm-btn-delete {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    text-decoration: none;
}

    .dm-btn-delete:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        transform: scale(1.08);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
    }

    .dm-btn-delete:active {
        transform: scale(0.95);
    }

    .dm-btn-delete i {
        font-size: 0.9rem;
        color: #ef4444;
    }

/* Current device badge */
.dm-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    background: linear-gradient(135deg, #e0f7f4, #ccfbf1);
    color: #0d9488;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

/* Empty state */
.dm-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

    .dm-empty-state i {
        font-size: 3rem;
        margin-bottom: 14px;
        display: block;
        color: #cbd5e1;
        opacity: 0.6;
    }

    .dm-empty-state p {
        font-weight: 500;
    }

/* Success/error messages */
.dm-msg-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dm-msg-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .dm-device-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .dm-device-icon-box {
        width: 40px;
        height: 40px;
    }
}
