/* ==========================================================================
   NextEdu OTP Gateway - Icon System Styles
   Zero-dependency inline SVG icon styling
   ========================================================================== */

.ne-icon {
    display: inline-flex;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
}

/* Smooth icon transitions for theme switching */
.ne-icon {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Nav icon sizing consistency */
.nav-icon .ne-icon,
.nav-link .ne-icon {
    width: 18px;
    height: 18px;
}

/* Metric card icons */
.metric-icon .ne-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

/* Button icons */
.btn .ne-icon {
    width: 16px;
    height: 16px;
}

.btn-lg .ne-icon {
    width: 18px;
    height: 18px;
}

.btn-sm .ne-icon {
    width: 14px;
    height: 14px;
}

/* Badge icons */
.badge .ne-icon {
    width: 13px;
    height: 13px;
}

/* Alert icons */
.alert .ne-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Plan feature check icons */
.plan-features .ne-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Card title icons */
.card-title .ne-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Advanced Animations & Smoothness
   ========================================== */

/* Smooth page transition */
.page-container {
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card stagger entrance */
.card {
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Metric card entrance stagger */
.metric-card:nth-child(1) { animation-delay: 0.04s; }
.metric-card:nth-child(2) { animation-delay: 0.08s; }
.metric-card:nth-child(3) { animation-delay: 0.12s; }
.metric-card:nth-child(4) { animation-delay: 0.16s; }
.metric-card:nth-child(5) { animation-delay: 0.20s; }
.metric-card:nth-child(6) { animation-delay: 0.24s; }

.metric-card {
    animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Button press feedback */
.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Nav link smooth active indicator */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* Table row smooth hover */
.table tr {
    transition: background-color 0.15s ease;
}

/* Smooth focus ring for inputs */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Badge pulse for pending counts */
@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-warning {
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Skeleton loading placeholder */
.skeleton {
    background: linear-gradient(90deg, var(--secondary-bg) 25%, var(--surface-hover) 50%, var(--secondary-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth modal overlay transitions */
[id$="Modal"] {
    transition: opacity 0.25s ease;
}

/* Tooltip-style hover elevation for cards */
.card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
}

/* Status dot animations */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--primary-glow);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.inactive {
    background: var(--text-dim);
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px var(--primary-glow); }
    50% { box-shadow: 0 0 12px var(--primary-glow); }
}

/* Scroll smooth for internal navigation */
html {
    scroll-behavior: smooth;
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}
