/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #edf0f5;

    box-shadow: 0 2px 10px rgba(0,0,0,0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* =========================================================
   DASHBOARD TYPOGRAPHY
========================================================= */

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

/* =========================================================
   STAT CARDS
========================================================= */

.stat-card {
    overflow: hidden;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;

    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;

    color: #111827;
}

.stat-subtext {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* =========================================================
   STAT CARD BACKGROUNDS & OUTLINES
========================================================= */

.stat-card-purple {
    background: #f6f1ff;
    border: 2px solid #e4d4ff;
}

.stat-card-green {
    background: #eefbf3;
    border: 2px solid #ccefd9;
}

.stat-card-blue {
    background: #eef4ff;
    border: 2px solid #d3e3ff;
}

.stat-card-orange {
    background: #fff7eb;
    border: 2px solid #ffd9ad;
}

/* =========================================================
   ICON CONTAINERS
========================================================= */

.stat-icon {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;

    flex-shrink: 0;
}

.stat-icon-purple {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.stat-icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

/* =========================================================
   CATEGORY BADGES
========================================================= */

.category-badge {
    display: inline-block;

    padding: 3px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    white-space: nowrap;
}

/* =========================================================
   CHART CENTER LABEL
========================================================= */

.chart-center-text {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.chart-total-number {
    font-size: 2rem;
    font-weight: 700;

    line-height: 1;

    color: #111827;
}

.chart-total-label {
    margin-top: 0.25rem;

    font-size: 0.9rem;

    color: #6B7280;
}

/* =========================================================
   ACTIVITY FEED (Line-Divided Design)
========================================================= */

.activity-feed {
    display: flex;
    flex-direction: column;
    /* Removed gap because border-bottom handles the separation */
}

.activity-item {
    padding: 1rem 0.5rem; /* Vertical padding for breathing room */
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f3f5; /* The divider line */
    
    transition: background-color 0.2s ease;
}

/* Removes the line from the very last item */
.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background-color: #f9fafb; /* Subtle row highlight on hover */
    /* Removed transform: translateY for a flatter, professional look */
}

/* =========================================================
   ACTIVITY ICON (Simplified)
========================================================= */

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Slightly squircle for a modern look */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.1rem;
    flex-shrink: 0;
    
    /* We keep the bg-*-soft classes for the icon background only */
}

/* =========================================================
   ACTIVITY CONTENT
========================================================= */

.activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.1rem;
}

.activity-link {
    font-size: 0.8rem;
    color: #6b7280; /* Muted by default */
    text-decoration: none;
    transition: color 0.2s ease;
}

.activity-link:hover {
    color: #2563eb; /* Blue on hover */
    text-decoration: none; /* Keep it clean without underlines */
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
}

/* =========================================================
   HEADER ICON
========================================================= */

.activity-header-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef4ff;

    color: #3b82f6;
}

/* =========================================================
   SOFT COLORS
========================================================= */

.bg-blue-soft {
    background: rgba(59, 130, 246, 0.12);
}

.text-blue {
    color: #2563eb;
}

.bg-purple-soft {
    background: rgba(124, 58, 237, 0.12);
}

.text-purple {
    color: #7c3aed;
}

.bg-green-soft {
    background: rgba(34, 197, 94, 0.12);
}

.text-green {
    color: #16a34a;
}

.bg-red-soft {
    background: rgba(239, 68, 68, 0.12);
}

.text-red {
    color: #dc2626;
}

.bg-yellow-soft {
    background: rgba(245, 158, 11, 0.12);
}

.text-yellow {
    color: #d97706;
}

.bg-orange-soft {
    background: rgba(249, 115, 22, 0.12);
}

.text-orange {
    color: #ea580c;
}

.bg-indigo-soft {
    background: rgba(99, 102, 241, 0.12);
}

.text-indigo {
    color: #4f46e5;
}

.bg-cyan-soft {
    background: rgba(6, 182, 212, 0.12);
}

.text-cyan {
    color: #0891b2;
}

.bg-gray-soft {
    background: rgba(107, 114, 128, 0.12);
}

.text-gray {
    color: #6b7280;
}

.bg-teal-soft {
    background: rgba(20, 184, 166, 0.12);
}

.text-teal {
    color: #0d9488;
}

.bg-pink-soft {
    background: rgba(219, 39, 119, 0.12);
}

.text-pink {
    color: #db2777;
}

/* =========================================================
   STORAGE CARD
========================================================= */

.storage-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(34, 197, 94, 0.12);

    color: #16a34a;

    font-size: 1rem;
}

.storage-progress {
    width: 100%;
    height: 12px;

    background: #eef2f7;

    border-radius: 999px;

    overflow: hidden;
}

.storage-progress-bar {
    height: 100%;

    border-radius: inherit;

    transition: width 0.3s ease;
}

.storage-success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.storage-warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.storage-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.storage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-percent {
    font-size: 0.85rem;
    color: #6b7280;
}

.storage-upgrade-link {
    font-size: 0.85rem;
    font-weight: 600;

    color: #2563eb;

    text-decoration: none;
}

.storage-upgrade-link:hover {
    text-decoration: underline;
}

/* =========================================================
   INSIGHTS TABS (Finance, Health, HR)
========================================================= */

.insights-tab {
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #6b7280;
    font-weight: 600;
    padding-bottom: 0.75rem;
}

.insights-tab:hover {
    color: #111827;
    text-decoration: none;
}

.insights-tab.active {
    color: #5d5fef !important; /* Brand Purple/Blue */
    border-bottom-color: #5d5fef !important;
}

/* =========================================================
   INSIGHTS METRIC CARDS
========================================================= */

.insight-metric-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s ease;
}

.insight-metric-card:hover {
    transform: translateY(-2px);
}

.insight-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.insight-subtext {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================================
   TREND & VENDOR VISUALS
========================================================= */

.chart-container-clean {
    border: none;
    background: transparent;
}

.chart-placeholder-bg {
    background-color: #f8fafc; /* Subtle slate tint */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.custom-select-sm {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}
/* =========================================================
   FOLDER MANAGEMENT (Folder Description Edit)
========================================================= */

.style-edit-trigger-inline {
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}
/* Showing the editing pencil only when hovering directly over the description box area */
.style-desc-zone:hover .style-edit-trigger-inline {
    opacity: 0.6;
}
.style-edit-trigger-inline:hover {
    opacity: 1.0 !important;
    color: #007bff !important;
}
.text-muted-light { color: #adb5bd; }

/* =========================================================
   FOLDER MANAGEMENT (Folder Title Edit)
========================================================= */

.style-title-edit-trigger {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.style-title-zone:hover .style-title-edit-trigger {
    opacity: 0.6;
}
.style-title-edit-trigger:hover {
    opacity: 1.0 !important;
    color: #007bff !important;
}