/* src/css/home/dashboard.css */
/* কাজ: বিজ্ঞাপন, কুইক অ্যাকশন গ্রিড এবং সামারি ফুটারের ডিজাইন */

/* ========================================= */
/* ========= ADVERTISEMENT BANNER ========== */
/* ========================================= */

.advertisement-banner {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  /* ডার্ক মোড কালার dark-mode.css এ হ্যান্ডেল করা হয়েছে */
}

.ad-slides-container { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    height: 100%; 
}

.ad-slide { 
    min-width: 100%; 
    box-sizing: border-box;
}

.ad-slide img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 12px; 
    object-fit: cover;
}

/* স্লাইডারের নিচের ডট ইন্ডিকেটর */
.ad-dots-container { 
    position: absolute; 
    bottom: 8px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 6px; 
    z-index: 10;
}

.ad-dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background-color: rgba(255, 255, 255, 0.6); 
    cursor: pointer; 
    transition: background-color 0.3s;
}

.ad-dot.active { 
    background-color: #fff; 
}


/* ========================================= */
/* ========= QUICK ACTIONS GRID ============ */
/* ========================================= */

.quick-actions-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* ৪টি কলাম সমান ভাগে */
    gap: 10px; 
    row-gap: 15px; 
    padding: 10px 15px; 
}

.action-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    cursor: pointer; 
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.1s;
}

.action-item:active {
    transform: scale(0.95); /* ট্যাপ করলে ছোট হবে */
}

.action-item i { 
    font-size: 26px; 
    margin-bottom: 8px; 
}

.action-item span { 
    font-size: 12px; 
    color: #333; 
    font-weight: 500; 
    line-height: 1.2;
}

/* আইকনের কালার প্যালেট */
.icon-green { color: #28a745; } 
.icon-red { color: #dc3545; } 
.icon-orange { color: #fd7e14; } 
.icon-purple { color: #6f42c1; } 
.icon-green-light { color: #20c997; } 
.icon-red-light { color: #d63384; } 
.icon-orange-light { color: #ffc107; }


/* ========================================= */
/* ========= SUMMARY FOOTER ================ */
/* ========================================= */

/* এটি স্ক্রল করার সময় কুইক অ্যাকশনের নিচে থাকে */
.summary-footer { 
    display: flex; 
    margin: 5px 15px; 
    background: #fff; 
    padding: 12px 15px; 
    border-radius: 12px; 
    border: 1px solid #E0E0E0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
    align-items: center;
}

.summary-footer .summary-box { 
    flex: 1; 
    text-align: center; 
}

.summary-footer .summary-box .label { 
    font-size: 13px; 
    color: #6c757d; 
    margin-bottom: 4px; 
    display: block; 
}

.summary-footer .summary-box .amount { 
    font-size: 18px; 
    font-weight: bold; 
    white-space: nowrap;
}

/* টাকার কালার */
.summary-footer .summary-box.due .amount { color: #dc3545; }  /* লাল (পাবো) */
.summary-footer .summary-box.given .amount { color: #28a745; } /* সবুজ (দেবো) */

/* মাঝখানের দাগ */
.summary-divider { 
    border-left: 1px solid #E0E0E0; 
    height: 40px;
    margin: 0 10px; 
}

/* ========================================= */
/* ========= SKELETON LOADER (Home) ======== */
/* ========================================= */

/* হোম পেজ লোড হওয়ার আগে যে ঝাপসা বক্সগুলো দেখা যায় */
#home-skeleton { padding: 15px; background-color: #fff; display: none; }
.skeleton-box { background-color: #e0e0e0; border-radius: 4px; position: relative; overflow: hidden; }
.skeleton-box::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); animation: shimmer 1.5s infinite; }
.skeleton-banner { height: 100px; margin-bottom: 20px; border-radius: 12px; }
.skeleton-quick-actions { display: flex; justify-content: space-between; margin-bottom: 20px; }
.skeleton-action-item { width: 60px; height: 60px; border-radius: 12px; }
.skeleton-summary { height: 60px; border-radius: 12px; margin-bottom: 20px; }

@keyframes shimmer { 
    0% { left: -100%; } 
    100% { left: 100%; } 
}