body {
    font-family: 'Noto Sans JP', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-item {
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(255, 149, 0, 0.1);
    border-left: 4px solid #ff9500;
    padding-left: calc(1rem - 4px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.data-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.chart-container {
    min-height: 300px;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

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

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Product image styles */
.product-image-container {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table row height for images */
.product-table-row {
    min-height: 100px;
}

/* Image loading placeholder */
.image-placeholder {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%), 
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: placeholder-shimmer 2s infinite linear;
}

/* Fallback icon styling */
.fallback-icon {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.fallback-icon i {
    opacity: 0.6;
}

@keyframes placeholder-shimmer {
    0% { background-position: 0 0, 10px 10px; }
    100% { background-position: 20px 20px, 30px 30px; }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .sidebar-item span:not(.ml-auto) {
        font-size: 0.875rem;
    }
    
    .chart-container {
        min-height: 250px;
    }
    
    /* Smaller images on mobile */
    .product-image-mobile {
        width: 60px;
        height: 60px;
    }
}