/**
 * Module ID Helper Styles
 * Styles for the admin module ID button displayed on frontend modules
 * @version 1.0.0
 */

/* Module wrapper with relative positioning */
.module-wrapper.module-id-helper {
    position: relative;
}

/* The module ID button/badge */
.module-id-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #00305e; /* IFS primary blue */
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    opacity: 0.75;
    line-height: 1;
    cursor: pointer;
}

/* Hover state */
.module-id-button:hover {
    opacity: 1;
    background: #004080;
    transform: scale(1.08) translateY(-1px);
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Active/pressed state */
.module-id-button:active {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Icon styling */
.module-id-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
}

/* Text styling */
.module-id-text {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    font-size: 11px;
}

/* Module content wrapper */
.module-content {
    position: relative;
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .module-id-button {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .module-id-icon {
        font-size: 12px;
    }

    .module-id-text {
        font-size: 10px;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .module-id-button {
        top: 5px;
        right: 5px;
        padding: 3px 8px;
        font-size: 9px;
        gap: 3px;
    }

    .module-id-icon {
        font-size: 11px;
    }

    .module-id-text {
        font-size: 9px;
    }
}

/* Optional: Make button more subtle on small screens */
@media (max-width: 480px) {
    .module-id-button {
        opacity: 0.6;
    }

    .module-id-button:hover {
        opacity: 0.9;
    }
}

/* Print: Hide the button when printing */
@media print {
    .module-id-button {
        display: none !important;
    }
}

/* Focus state for accessibility */
.module-id-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    opacity: 1;
}

/* Alternative theme (optional - can be activated via body class) */
body.module-id-helper-light .module-id-button {
    background: rgba(255, 255, 255, 0.9);
    color: #00305e;
    border: 1px solid #00305e;
}

body.module-id-helper-light .module-id-button:hover {
    background: #ffffff;
    color: #004080;
}
