/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Mobile Optimizations */
body {
    /* Prevent accidental text selection */
    user-select: none;
    -webkit-user-select: none;

    /* Disable default touch callouts (long press menu) */
    -webkit-touch-callout: none;

    /* Prevent rubber-banding effect */
    overscroll-behavior-y: none;
}

/* Hide scrollbars globally but keep functionality */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Touch Active States for Buttons */
/* Primary Buttons (using shadow-sm as proxy for buttons) */
a[class*="shadow-sm"]:active,
button[class*="shadow-sm"]:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Ensure hover doesn't stick on touch */
@media (hover: none) {
    .hover\:bg-blue-700:hover {
        background-color: #2563eb;
        /* Reset to blue-600 */
    }

    .hover\:bg-gray-50:hover {
        background-color: #ffffff;
        /* Reset to white */
    }
}

/* Liquid Glass Design System */

/* Animated Gradient Background */
@keyframes gradient-xy {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.liquid-bg {
    /* Softer, pastel gradient for better text readability */
    background: linear-gradient(-45deg, #f3e7e9, #e3eeff, #e3fdf5, #fff1eb);
    background-size: 400% 400%;
    animation: gradient-xy 20s ease infinite;
    min-height: 100vh;
}

/* Glass Utilities - Accessibility Focused */
.glass {
    /* High opacity for legibility */
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.glass-btn {
    /* Solid color for buttons to ensure text is readable */
    background: #3b82f6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    color: white;
    transition: all 0.2s ease;
    font-weight: 600;
}

.glass-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.glass-btn:active {
    transform: scale(0.97);
}

/* Text adjustments */
.text-glass-dark {
    color: #1f2937;
    /* Dark gray for reading on light glass */
}

.text-glass-light {
    color: #ffffff;
}