/* GUMSUDA - Custom Styles */

/* Aspect ratio polyfill for older browsers */
.aspect-w-3 {
    position: relative;
    padding-bottom: calc(4 / 3 * 100%);
}

.aspect-w-3 > :not(span) {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Allow status badge inside aspect-w-3 to keep its natural size */
.aspect-w-3 > span {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Touch optimization for mobile */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-height: 44px;
    }
    
    ::-webkit-scrollbar {
        display: none;
    }
    
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Safe area for mobile devices */
.safe-area-top {
    padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #1e293b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card hover effect */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Touch highlight removal */
* {
    -webkit-tap-highlight-color: transparent;
}
