@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

/* Stat Card Styling Custom (Widget) */
.stat-card {
    background: white;
    border: 1px solid #f1f3f5;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.stat-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Icon Boxes with Custom Colors */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bg-orange-light { background-color: #fff7ed; color: #ea580c; }
.bg-blue-light { background-color: #eff6ff; color: #2563eb; }
.bg-purple-light { background-color: #faf5ff; color: #9333ea; }
.bg-emerald-light { background-color: #ecfdf5; color: #059669; }

/* Trend Badges */
.trend-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.trend-up { background-color: #dcfce7; color: #16a34a; }
.trend-down { background-color: #fee2e2; color: #dc2626; }

/* Helper text */
.stat-value { font-size: 1.75rem; font-weight: 700; color: #212529; margin-bottom: 0.5rem; }
.stat-label { color: #6c757d; font-size: 0.875rem; font-weight: 500; }
.stat-sub { color: #adb5bd; font-size: 0.75rem; margin-left: 8px; }

/* Content Section Styles */
.content-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f3f5;
    overflow: hidden;
    height: 100%;
}

.card-header-custom {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title, .group-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after, .group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    border-radius: 2px;
}

.group-title {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cabor-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cabor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
/* Floating Category Badge */
.cabor-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #2563eb;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}
.cabor-img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.cabor-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cabor-card:hover .cabor-img {
    transform: scale(1.1);
}

/* Floating Category Badge */
.cabor-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #2563eb;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.cabor-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cabor-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.cabor-stat {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.cabor-body .btn {
    margin-top: auto;
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #f1f3f5;
}

.skeleton-box {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    position: relative;
}

.sk-img { height: 180px; width: 100%; }
.sk-title { height: 24px; width: 70%; margin-bottom: 15px; border-radius: 6px; }
.sk-text { height: 16px; width: 40%; margin-bottom: 20px; border-radius: 4px; }
.sk-btn { height: 38px; width: 100%; border-radius: 8px; }
.not-found-container {
    padding: 3rem 1rem;
    text-align: center;
    width: 100%;
}
.not-found-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
