/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@500;700&family=Montserrat:wght@500;600&display=swap');

/* =======================================================
   1. DEFAULT STYLE (ORIGINAL - FOR PRICING PAGE)
   (Ye code aapke purane design ko wapas layega)
   ======================================================= */

.my-tabs-container .my-tab-buttons {
    display: flex;
    flex-wrap: nowrap; /* Mobile/Tab: scroll */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    margin-top: 1vh; /* Mobile Space */
    position: relative; /* Fade-out cue ke liye */
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.my-tabs-container .my-tab-buttons::-webkit-scrollbar {
    display: none;
}

/* Mobile/Tab: Fade-out hint */
.my-tabs-container .my-tab-buttons::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 5px; 
    width: 60px;
    background: linear-gradient(to right, rgba(26, 26, 26, 0), rgba(26, 26, 26, 1) 90%);
    pointer-events: none;
}

.my-tabs-container .my-tab-button {
    padding: 10px 22px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background-color: transparent;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 6px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto; 
}

.my-tabs-container .my-tab-button:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.my-tabs-container .my-tab-button.active {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

.my-tabs-container .my-tab-content-area {
    margin-top: 10vh; /* Mobile Space */
}

.my-tabs-container .my-tab-pane {
    display: none;
    animation: myTabFadeIn 0.4s;
}
.my-tabs-container .my-tab-pane.active {
    display: block;
}
@keyframes myTabFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Tablet Styles --- */
@media (min-width: 768px) {
    .my-tabs-container .my-tab-buttons { margin-top: 5vh; }
    .my-tabs-container .my-tab-content-area { margin-top: 5vh; }
}

/* --- Desktop Styles --- */
@media (min-width: 1025px) {
    .my-tabs-container .my-tab-buttons {
        flex-wrap: wrap; 
        justify-content: center;
        max-width: 1200px; 
        margin-left: auto; margin-right: auto; margin-top: 5vh; 
        overflow-x: hidden; 
    }
    .my-tabs-container .my-tab-buttons::after { display: none; }
    .my-tabs-container .my-tab-button {
        flex: 1 1 18%; 
        margin: 8px 1%; 
        text-align: center;
    }
    .my-tabs-container .my-tab-content-area { margin-top: 5vh; }
}


/* =======================================================
   2. DASHBOARD STYLE (NEW - FOR ADMIN PANEL)
   (Yeh sirf tab apply hoga jab aap extra_class="dashboard-style" use karenge)
   ======================================================= */

/* Container Setup - Overriding Defaults */
.my-tabs-container.dashboard-style {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Buttons Row - Clean Line Layout with GAP */
.my-tabs-container.dashboard-style .my-tab-buttons {
    display: flex;
    justify-content: flex-start; /* Left Align */
    flex-wrap: wrap; /* Desktop par wrap karein */
    background: transparent;
    border-bottom: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 25px; /* GAP: Buttons aur Content ke beech */
    gap: 10px;
}

/* Remove Fade Effect from Dashboard */
.my-tabs-container.dashboard-style .my-tab-buttons::after {
    display: none !important;
}

/* Dashboard Button Style (Grey Pill) */
.my-tabs-container.dashboard-style .my-tab-button {
    background-color: #eef2f5; /* Light Grey */
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px; /* Soft Square */
    margin: 0;
    flex: 0 0 auto; /* Don't stretch */
    text-align: center;
    width: auto;
}

/* Hover State */
.my-tabs-container.dashboard-style .my-tab-button:not(.active):hover {
    background-color: #e0e6ed;
    color: #333;
    border-color: transparent;
}

/* Active State (Dark Theme) */
.my-tabs-container.dashboard-style .my-tab-button.active {
    background-color: #003D3F; /* Theme Color */
    color: #fff;
    border-color: #003D3F;
    box-shadow: 0 4px 12px rgba(0, 61, 63, 0.2);
}

/* Content Area - White Box Card */
.my-tabs-container.dashboard-style .my-tab-content-area {
    margin-top: 0; /* Upar wala margin hataya kyunki buttons me margin-bottom hai */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

/* --- Mobile Fixes for Dashboard Style --- */
@media (max-width: 768px) {
    .my-tabs-container.dashboard-style .my-tab-buttons {
        flex-wrap: nowrap; /* Mobile scroll */
        overflow-x: auto;
        padding-bottom: 5px;
        margin-bottom: 20px;
    }
    .my-tabs-container.dashboard-style .my-tab-button {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    .my-tabs-container.dashboard-style .my-tab-content-area {
        padding: 15px;
    }
}