/* Payment Embed Styles */
.payment-embed-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.payment-card {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.payment-header {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
    padding: 1.5rem;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #4e54c8;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}



/* for side bar */
/* Custom sidebar animations and enhancements */
.sidebar .nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.sidebar .nav-item.active {
    background: linear-gradient(90deg, rgba(94, 114, 228, 0.1) 0%, transparent 100%);
    border-left: 4px solid #5e72e4;
}

.sidebar .nav-item.active > .nav-link {
    color: #5e72e4;
    font-weight: 600;
}

.sidebar .nav-item.active > .nav-link i {
    color: #5e72e4;
}

.sidebar .nav-link {
    position: relative;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
}

.sidebar .nav-link:hover {
    background: rgba(94, 114, 228, 0.08);
    transform: translateX(5px);
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.sidebar .nav-link.active {
    color: #5e72e4;
    background: rgba(94, 114, 228, 0.1);
}

.sidebar .nav-link.active i {
    animation: pulse 2s infinite;
}

.sidebar .collapse-inner .collapse-item {
    position: relative;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar .collapse-inner .collapse-item:hover {
    background: rgba(94, 114, 228, 0.05);
    transform: translateX(3px);
    border-left-color: rgba(94, 114, 228, 0.3);
}

.sidebar .collapse-inner .collapse-item.active {
    color: #5e72e4;
    background: rgba(94, 114, 228, 0.1);
    border-left-color: #5e72e4;
    font-weight: 600;
}

.sidebar .collapse-inner .collapse-item.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #5e72e4;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* Collapse animation */
.collapse {
    transition: all 0.35s ease !important;
}

.collapsing {
    transition: height 0.35s ease !important;
}

/* Active parent indicator */
.sidebar .nav-item.active .nav-link[data-toggle="collapse"]::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #5e72e4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.2);
}

/* Submenu indicator */
.sidebar .nav-link[data-toggle="collapse"]::after {
    font-family: 'Font Awesome 5 Free';
    content: '\f078';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.sidebar .nav-link[data-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 114, 228, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(94, 114, 228, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(94, 114, 228, 0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sidebar brand enhancement */
.sidebar-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0.5rem;
    border-radius: 8px;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-brand-icon img {
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 3px;
    background: white;
}

.sidebar-brand:hover .sidebar-brand-icon img {
    transform: rotate(5deg) scale(1.1);
}

/* Divider enhancement */
.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    position: relative;
}

.sidebar-divider::before {
    content: '';
    position: absolute;
    left: 25%;
    top: -2px;
    width: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Version indicator */
.version {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.version:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
