/**
 * Core CSS Styles
 * Generic utility classes used across the application
 */

/* Universal Loading Overlay System */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: max(20vh, 100px);
    z-index: 1000;
    backdrop-filter: blur(1px);
    transition: opacity 0.3s ease-in-out;
}

.loading-overlay img {
    width: 124px;
    height: 85px;
    opacity: 0.8;
}

/* Ensure containers can be positioned relative for overlay */
.loading-container {
    position: relative;
}

/* Checkerboard background pattern */
.checkerboard-bg {
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Drag handle cursor */
.drag-handle {
    cursor: row-resize;
}

/* Glass effect for modal backgrounds */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Enhanced modal text readability */
.glass-effect h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.glass-effect p,
.glass-effect li {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
