/* ===== COMPLETE SKELETON CSS - EXACT IMAGE COLORS ===== */

.skeleton-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #f0f2f5;
    display: flex;
}

.sk {
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #ebebeb 37%,
        #e0e0e0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ---- SIDEBAR ---- */
.sk-sidebar {
    width: 210px;
    min-width: 210px;
    background: white;
    height: 100%;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sk-sidebar-logo {
    width: 180px;
    height: 60px;
    border-radius: 6px;
    margin: 0 auto 20px auto;
    background: linear-gradient(
        90deg,
        #d5d5d5 25%,
        #e2e2e2 37%,
        #d5d5d5 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

.sk-menu-item {
    width: 100%;
    height: 28px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #d5d5d5 25%,
        #e2e2e2 37%,
        #d5d5d5 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

.sk-menu-item.active {
    background: linear-gradient(
        90deg,
        #457b9d 25%,
        #6a9bb7 37%,
        #457b9d 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

/* ---- MAIN CONTENT AREA ---- */
.sk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Top navbar */
.sk-topbar {
    width: 100%;
    height: 50px;
    background: #457b9d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 16px;
    flex-shrink: 0;
}

.sk-topbar-item {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #eeeeee 25%,
        #f8f8f8 37%,
        #eeeeee 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    flex-shrink: 0;
}

/* Content area */
.sk-content {
    flex: 1;
    padding: 20px 25px;
    background: #f0f2f5;
    overflow: hidden;
}

/* Breadcrumb */
.sk-breadcrumb {
    width: 320px;
    max-width: 100%;
    height: 18px;
    margin-bottom: 18px;
}

/* Tabs */
.sk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sk-tab {
    width: 130px;
    height: 34px;
    border-radius: 4px;
}

.sk-tab.active {
    background: linear-gradient(
        90deg,
        #2d7fc1 25%,
        #3d8fd1 37%,
        #2d7fc1 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

/* Cards row */
.sk-cards-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.sk-card-left {
    flex: 0 0 62%;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px 18px 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    min-width: 0;
}

.sk-card-right {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px 18px 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    min-width: 0;
}

.sk-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
}

.sk-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sk-card-title {
    width: 170px;
    max-width: 100%;
    height: 22px;
}

.sk-stats-bar {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #fde8c8 25%,
        #fef0d8 37%,
        #fde8c8 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

.sk-foreign-bar {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #fde8c8 25%,
        #fef0d8 37%,
        #fde8c8 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

/* Bottom row */
.sk-bottom-row {
    display: flex;
    gap: 18px;
}

.sk-chart-card {
    flex: 0 0 62%;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    min-width: 0;
}

.sk-chart-title {
    width: 160px;
    max-width: 100%;
    height: 18px;
    margin-bottom: 18px;
}

.sk-chart-body {
    width: 100%;
    height: 240px;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    padding: 10px 6px 0 6px;
    border-bottom: 2px solid #e0e0e0;
    border-left: 2px solid #e0e0e0;
    box-sizing: border-box;
    background: #fafafa;
}

.sk-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #ebebeb 37%,
        #e0e0e0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    min-width: 0;
}

.sk-table-card {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    min-width: 0;
}

.sk-table-title {
    width: 130px;
    max-width: 100%;
    height: 18px;
    margin-bottom: 14px;
}

.sk-table-header {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #d5d5d5 25%,
        #e2e2e2 37%,
        #d5d5d5 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

.sk-table-row {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ========================================
   TABLET - 768px se kam
   ======================================== */
@media (max-width: 768px) {

    /* Sidebar hide on tablet/mobile */
    .sk-sidebar {
        display: none;
    }

    .sk-content {
        padding: 14px 14px;
    }

    .sk-breadcrumb {
        width: 200px;
    }

    .sk-tab {
        width: 90px;
        height: 30px;
    }

    /* Cards stack vertically */
    .sk-cards-row {
        flex-direction: column;
        gap: 12px;
    }

    .sk-card-left {
        flex: none;
        width: 100%;
    }

    .sk-card-right {
        flex: none;
        width: 100%;
    }

    /* Bottom row stack vertically */
    .sk-bottom-row {
        flex-direction: column;
        gap: 12px;
    }

    .sk-chart-card {
        flex: none;
        width: 100%;
    }

    .sk-chart-body {
        height: 180px;
        gap: 4px;
    }

    .sk-table-card {
        flex: none;
        width: 100%;
    }

    /* Topbar - kam items dikhao */
    .sk-topbar {
        gap: 10px;
        padding: 0 12px;
    }

    .sk-topbar-item:nth-child(1),
    .sk-topbar-item:nth-child(2) {
        display: none;
    }
}

/* ========================================
   MOBILE - 480px se kam
   ======================================== */
@media (max-width: 480px) {

    .sk-content {
        padding: 10px 10px;
    }

    .sk-breadcrumb {
        width: 160px;
        height: 14px;
    }

    .sk-tabs {
        gap: 6px;
    }

    .sk-tab {
        width: 70px;
        height: 28px;
    }

    .sk-topbar {
        height: 44px;
        gap: 8px;
        padding: 0 10px;
    }

    /* Topbar pe sirf 3 items */
    .sk-topbar-item:nth-child(1),
    .sk-topbar-item:nth-child(2),
    .sk-topbar-item:nth-child(3) {
        display: none;
    }

    .sk-chart-body {
        height: 150px;
        gap: 3px;
    }

    /* Thode bars hide karo mobile pe */
    .sk-bar:nth-child(n+12) {
        display: none;
    }

    .sk-card-left,
    .sk-card-right {
        padding: 14px 14px 12px 14px;
    }

    .sk-stats-bar,
    .sk-foreign-bar {
        height: 36px;
    }

    .sk-table-header,
    .sk-table-row {
        height: 30px;
    }
}