/* Custom Styles for CIB Construction Mobile App */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Splash Screen Background */
.splash-bg {
    background: linear-gradient(to bottom, #ffffff 50%, #0B3B8B 50%);
}

.splash-curve {
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    transform: scaleX(1.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.splash-curve > * {
    transform: scaleX(0.666);
}

/* Floating label inputs */
.floating-input {
    position: relative;
}
.floating-input input {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 0.75rem 0.5rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #f9fafb;
}
.floating-input input:focus {
    border-color: #0B3B8B;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(11, 59, 139, 0.2);
}
.floating-input label {
    position: absolute;
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s;
    pointer-events: none;
}
.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    top: 0.25rem;
    font-size: 0.7rem;
    color: #0B3B8B;
}

/* Bottom Nav active state */
nav a.text-primary {
    position: relative;
}
nav a.text-primary::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background-color: #0B3B8B;
    border-radius: 0 0 4px 4px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
