/* ===== GLOBAL MODULE INFO SYSTEM ===== */

/* Ensure all modules have relative positioning for overlay */
.module-type1 {
    position: relative;
}

/* Info Icon Styles */
.module-info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #363738, #383838);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #949494;
    font-family: Arial, sans-serif;
    user-select: none;
}

.module-info-icon:hover {
    background: linear-gradient(135deg, #5ba3f5, #4a90e2);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
}

/* Info Overlay Container */
.module-info-overlay {
    position: absolute;
    top: 50px; /* Position below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.95);
    display: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    padding: 0px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.module-info-overlay.visible {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Info Content Styles */
.module-info-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 8px;
    padding: 20px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    color: #ffffff;
}

.module-info-content h3 {
    color: #4a90e2;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.module-info-content h4 {
    color: #8cc8ff;
    margin: 12px 0 8px 0;
    font-size: 14px;
    font-weight: bold;
}

.module-info-content p {
    margin: 8px 0;
    line-height: 1.4;
    color: #cccccc;
    font-size: 13px;
}

.module-info-content ul {
    margin: 8px 0;
    padding-left: 20px;
    color: #cccccc;
    font-size: 13px;
}

.module-info-content li {
    margin: 4px 0;
    line-height: 1.4;
}

.module-info-section {
    margin-bottom: 15px;
}

/* Optional: Blur effect for module content when info is shown */
.module-type1.info-blurred > *:not(.module-info-overlay) {
    filter: blur(1px);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
/* Copy Button Styles */
.module-info-copy-btn {
    width: 50%;
    padding: 6px 10px;
    background: #000000;
    color: white;
    border: 1px solid #666666;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px auto 0 auto;
    display: block;
    text-align: center;
}

.module-info-copy-btn:hover {
    background: #222222;
    border-color: #888888;
    transform: translateY(-1px);
}

.module-info-copy-btn:active {
    transform: translateY(0);
    background: #000000;
}

.module-info-copy-btn.copied {
    background: #2d5016;
    border-color: #4a7c29;
}
