/* ========================================
   AEXOPE ERP — 3D LOGO SYSTEM
   Professional CSS 3D depth effects
   ======================================== */

/* ─── 3D Logo Container ──────────────── */
.logo-3d {
    perspective: 600px;
    display: inline-block;
    position: relative;
}
.logo-3d-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 300ms ease;
}
.logo-3d:hover .logo-3d-inner {
    transform: rotateY(-3deg) rotateX(2deg);
}

/* ─── 3D Logo Image ──────────────────── */
.logo-3d-img {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 300ms ease;
}
.logo-3d-img img {
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 255, 0.3));
    transition: filter 300ms ease, transform 300ms ease;
}
.logo-3d:hover .logo-3d-img img {
    filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.5));
    transform: translateZ(6px);
}

/* ─── 3D Logo Text ───────────────────── */
.logo-3d-text {
    position: relative;
    transform-style: preserve-3d;
}
.logo-3d-text h5 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}
.logo-3d-text h5::after {
    content: attr(data-text);
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: -1;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(0, 212, 170, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0;
    transition: opacity 300ms ease;
}
.logo-3d:hover .logo-3d-text h5::after {
    opacity: 1;
}

/* ─── 3D Badge (Role Level) ──────────── */
.logo-3d-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #0066FF, #00D4AA);
    color: #fff;
    transform: translateZ(4px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
    transition: box-shadow 300ms ease, transform 300ms ease;
}
.logo-3d:hover .logo-3d-badge {
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.6);
    transform: translateZ(8px);
}

/* ─── 3D Login Logo ──────────────────── */
.login-logo-3d {
    perspective: 800px;
    display: inline-block;
    margin-bottom: 20px;
}
.login-logo-3d-inner {
    transform-style: preserve-3d;
    animation: logo3dFloat 6s ease-in-out infinite;
}
@keyframes logo3dFloat {
    0%, 100% { transform: rotateX(0) rotateY(0) translateZ(0); }
    25% { transform: rotateX(2deg) rotateY(-3deg) translateZ(4px); }
    50% { transform: rotateX(0) rotateY(0) translateZ(8px); }
    75% { transform: rotateX(-2deg) rotateY(3deg) translateZ(4px); }
}
.login-logo-3d-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 170, 0.1));
    border: 2px solid rgba(0, 102, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 16px rgba(0, 102, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease;
    transform: translateZ(0);
}
.login-logo-3d:hover .login-logo-3d-img {
    transform: translateZ(12px) rotateX(5deg);
    box-shadow: 
        0 8px 32px rgba(0, 102, 255, 0.3),
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.login-logo-3d-img img {
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.4));
}
.login-logo-3d-reflection {
    width: 80px;
    height: 40px;
    margin: 4px auto 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.08), transparent);
    filter: blur(4px);
    opacity: 0.5;
    animation: logo3dReflect 6s ease-in-out infinite;
}
@keyframes logo3dReflect {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 0.5; transform: scaleX(0.95); }
}

/* ─── 3D Module Icons ────────────────── */
.mod-icon-3d {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 300ms ease, box-shadow 300ms ease;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
.mod-icon-3d::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
    z-index: 1;
    pointer-events: none;
}
.mod-icon-3d::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    filter: blur(4px);
    transition: all 300ms ease;
}
.mod-icon-3d:hover {
    transform: translateY(-4px) translateZ(8px) rotateX(5deg);
}
.mod-icon-3d:hover::after {
    bottom: -10px;
    filter: blur(8px);
    opacity: 0.5;
}

/* ─── 3D Card Header ─────────────────── */
.card-3d-header {
    position: relative;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    overflow: hidden;
}
.card-3d-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #00D4AA, #0066FF);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── 3D Floating Badge ──────────────── */
.badge-3d {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transform-style: preserve-3d;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.badge-3d:hover {
    transform: translateY(-2px) translateZ(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ─── 3D Status Indicator ────────────── */
.status-3d {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
}
.status-3d::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.4;
    animation: status3dPulse 2s ease-in-out infinite;
}
@keyframes status3dPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* ─── 3D Progress Bar ────────────────── */
.progress-3d {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.progress-3d-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, #0066FF, #00D4AA);
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 102, 255, 0.4);
}
.progress-3d-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 4px 4px 0 0;
}

/* ─── Reduced Motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .login-logo-3d-inner,
    .login-logo-3d-reflection,
    .card-3d-header::before,
    .status-3d::before {
        animation: none !important;
    }
    .logo-3d:hover .logo-3d-inner,
    .logo-3d:hover .logo-3d-img img,
    .mod-icon-3d:hover {
        transform: none !important;
    }
}
