/* General Components - Modal/Window styling */

/* Module Window Backdrop - Blurred background */
.module-window-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

:root[data-theme="dark"] .module-window-backdrop {
    background: rgba(0, 0, 0, 0.85);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Module Window - Modal styling */
.module-window {
    display: flex !important;
    flex-direction: column !important;
    
    /* Background gradient to show glassmorphism */
    background: 
        radial-gradient(circle at 20% 30%, rgba(140, 180, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

/* Dark theme background */
:root[data-theme="dark"] .module-window {
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 170, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.module-window-header {
    flex-shrink: 0;
    margin-bottom: 24px;
}

.module-window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.module-window-content > * {
    width: 100%;
    display: flex;
    justify-content: center;
}

.module-window-content .rp {
    display: flex;
    flex-direction: column;
    align-items: center;
}
