/* 
   Moondap Admin Form Common Styles 
   Used for: Balance Game Registration, Test Registration, etc.
*/

.leadership-slider {
    margin-bottom: 25px;
}

/* Expansion Button Style */
.expand-btn {
    width: 40px; 
    height: 40px;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border: none;
    white-space: nowrap;
}

.expand-btn i {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: -5px;
}

.expand-btn:hover, .expand-btn:active {
    width: 150px;
}

.expand-btn:hover .btn-text, .expand-btn:active .btn-text {
    opacity: 1;
    max-width: 110px;
    margin-left: 0px;
    padding-right: 15px;
}

/* Drop-zone Component */
.drop-zone.active-upload {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background: #1a1b2e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.upload-guide-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: background 0.3s, opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.has-image .upload-guide-layer {
    opacity: 0;
}

.drop-zone:hover .upload-guide-layer {
    opacity: 1;
    background: rgba(82, 79, 208, 0.6);
}

.guide-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.guide-sub-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes dash-move {
    to { stroke-dashoffset: -20; }
}

.drop-zone.drag-over {
    border: 2px dashed #ffffff;
    transform: scale(0.98);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.2);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Input Fields */
.custom-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333447;
    border-radius: 20px;
    color: #fff;
    padding: 8px 20px;
    transition: all 0.3s;
}


.custom-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* Card Style */
.leader-card.selection-card {
    background: transparent;
    border: none;
    padding: 0;
}

/* Common Form Select Styling */
.form-select option {
    background: #1a1b2e;
    color: #fff;
}

/* Call to Action (CTA) Section */
.admin-cta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 85%) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.admin-cta-box .cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(134, 94, 244, 0.15);
}

.admin-cta-box .cta-icon i {
    font-size: 2rem;
}

.admin-cta-box .cta-content {
    position: relative;
    z-index: 2;
}

.admin-cta-box .cta-content h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.admin-cta-box .cta-content p {
    font-size: 1.05rem;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.admin-cta-box .cta-content .cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .admin-cta-box .cta-content .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .admin-cta-box .cta-content .cta-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* CTA Buttons are now managed via .btn.rounded-pill classes below */

/* Question Dynamic Management Styles */
.question-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

/* Base Animations (as alternative to Animate.css) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate__fadeInUp {
    animation: fadeInUp 0.4s ease-out forwards;
}

.animate__fadeOutDown {
    animation: fadeOutDown 0.3s ease-in forwards;
}

.question-index-label {
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ───────────── New Premium Admin UI Components ───────────── */

/* Premium Dark Card Style */
.item-card-dark {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.item-card-dark:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Label Pill Style */
.label-pill {
    background: rgba(99, 102, 241, 0.15);
    color: #a5a0ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Standardized Buttons (Rounded Pill & Global Transition) */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-2px);
}

.check-btn:hover, .check-btn:active, .check-btn:focus {
    transform: none !important;
}

.btn.rounded-pill {
    border-radius: 50px !important;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-primary.rounded-pill {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary.rounded-pill:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff !important;
}

.btn-outline-light.rounded-pill {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light.rounded-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

/* Stepper Indicator Styles */
.registration-stepper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}
.stepper-track {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: -1;
}
.stepper-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}
.step-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}
.step-item.active .step-icon {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.step-item.active .step-label {
    color: white;
}
.step-item.completed .step-icon {
    border-color: #00d2ff;
    color: #00d2ff;
}

/* Action Buttons (Trash, etc.) */
.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
}

.action-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-danger.action-btn {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.btn-danger.action-btn:hover {
    background: #ff6b6b;
    color: #fff;
}
