/*CSS for Provider Dashboard */
.main-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    height: 169px;
    border-radius: 10px;
    background-color: #043259;
    box-shadow: 0 4px 4px 0 #60A699;
    align-items: center;
    margin: 40px auto;
    font-family: "Nunito Sans";
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    box-sizing: border-box;
    
}

.main-dashboard h4 {
    color: #043259;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;

}

.provider-avatar {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    border: 1px solid #036A6F;
    background: linear-gradient(206deg, #FFF 4.06%, #CAE1DD 34.79%, #97C5BC 64.03%, #60A699 95.94%);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: 40px;
}


.provider-avatar img {
    width: 85%;
    height: 85%;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 20px;
    padding: 5px;
    display: block;
    margin: auto;
    
}

.info-name h2 {
    color: #FFF;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 24px;
    
}

.info-specialty {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
}

.info-npi {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
    margin-top: 0;
}

.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr; /* Sidebar width + remaining space */
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    justify-self: flex-start;
    box-sizing: border-box;
}

.side-action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;   
    margin-left: 0; 
}

.action-card {
    width: 140px;
    height: 140px;
    background-color: rgba(176, 217, 205, 0.35);
    border-radius: 10px;
    border: 3px solid #60A699;
    margin-bottom: 40px;
    text-align: center;
    padding: 10px;
    padding-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(96, 166, 153, 0.3);
    border: 3px solid #60A699;
    background-color: #B0D9CD;
}

a {
    text-decoration: none;
}

.action-label {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 20px;
    font-weight: 600;
    display: block;
}

.action-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

/*START RIGHT DASHBOARD SESSION */

.dashboard-container {
    border-radius: 10px;
    background: rgba(176, 217, 205, 0.35);
    display: grid;
    grid-template-columns: 1fr 447px;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    margin-bottom: 40px;
}

.left-section {
    /* Placeholder for chart */
    grid-column: 1;
    grid-row: 1;
    height: 462px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 110%;
}

.medseek-pro {
    grid-column: 2;
    grid-row: 1;
    height: 462px;
    border-radius: 10px;
    background: #FFF;
    font-family: "Nunito Sans";
    color: #043259;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-left: 60px;

}

.medseek-pro h2 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.pro-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pro-item {
    border-radius: 10px;
    background-color: #D6F3EE;
    width: 300px;
    height: 48px;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;

}

.pro-item img {
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
}

.medseek-pro h4 {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ver-planes-btn {
    border-radius: 5px;
    background: linear-gradient(90deg, #E7964F 0%, #F0C06E 77.88%, #EBAB5E 88.94%, #E7964F 100%);
    color: #FFF;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin: 16px auto 0 auto;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 0px;
    padding: 12px 24px;
}


.ver-planes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 150, 79, 0.4);
    transition: all 0.2s ease;
}

.dashboard-subtitle {
    color: #80A4AE;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: "Nunito Sans";
}


.chart-placeholder h3 {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #B0D9CD;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    gap: 12px;
    color: #80A4AE;
    text-align: center;
}

.empty-state img {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: #4d6F8C;
    margin: 0;
}

.empty-state span {
    font-size: 13px;
    color: #80A4AE;
    max-width: 240px;
}

/* bottom-action-container Session */

.bottom-action-container {
    grid-column: 1 / -1;
    grid-row: 2;
    border-radius: 10px;
    background-color: #FFF;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    width: 95%;
    max-width: 957px;
    align-items: center;
    padding: 20px;
    gap: 0 !important;
    margin: 0 auto 40px auto; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}

.action-card-b {
    width: 120px;
    height: 120px;
    background-color: rgba(176, 217, 205, 0.35);
    border-radius: 10px;
    border: 3px solid #60A699;
    margin: 0 auto 0 auto;
    text-align: center;
    padding: 10px;
    padding-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-card-b:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(96, 166, 153, 0.3);
    border: 3px solid #60A699;
    background-color: #B0D9CD;
}

.pro-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(90deg, #E7964F 0%, #F0C06E 77.88%, #EBAB5E 88.94%, #E7964F 100%);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 10;
}

.action-card-b.locked {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

.action-card-b.locked:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(176, 217, 205, 0.35);
}

.action-label-b {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.action-card-b img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

/* Hide dropdown wrapper on desktop — show original buttons */
.avatar-dropdown-wrapper {
    display: none;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.stat-card {
    background: #f0f9f9;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
}

.stat-number {
    font-size: 28px;
    font-weight: 500;
    color: #0d2b3e;
    margin: 0;
}

.stat-sublabel {
    font-size: 11px;
    margin: 2px 0 0 0;
}

.competition-card {
    background: #f0f9f9;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 3px solid #036A6F;
}

.competition-number {
    font-size: 22px;
    font-weight: 500;
    color: #0d2b3e;
    margin: 4px 0 6px 0;
}

.competition-detail {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.competition-cta {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.pro-link {
    color: #036A6F;
    text-decoration: none;
    font-weight: 500;
}

.share-card {
    background: #f0f9f9;
    border-radius: 8px;
    padding: 14px;
}

.share-title {
    font-size: 13px;
    font-weight: 500;
    color: #0d2b3e;
    margin: 0 0 12px 0;
}

.share-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.qr-container {
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 0.5px solid #d0e8e9;
    flex-shrink: 0;
}

.qr-image {
    width: 80px;
    height: 80px;
    display: block;
}

.share-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-url {
    background: white;
    border: 0.5px solid #d0e8e9;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #666;
    font-family: monospace;
    word-break: break-all;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.btn-outline {
    flex: 1;
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
    border: 0.5px solid #036A6F;
    background: white;
    color: #036A6F;
    cursor: pointer;
}

.btn-primary {
    flex: 1;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 5px;
    border: none;
    background: #036A6F;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
}

.share-hint {
    font-size: 11px;
    color: #888;
    margin: 0;
}

.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #036A6F;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.upgrade-btn-header span,
.upgrade-btn-header-text {
    display: none;
}



/* =========================================
   DASHBOARD RESPONSIVE STYLES
   Tablet: 1024px | Small Tablet: 768px | Mobile: 480px
   ========================================= */


@media (max-width: 1024px) {

    .main-container {
        margin: 20px auto;
        padding: 0 20px;
        gap: 20px;
        width: 90%;

        
    }

    .page-layout {
        grid-template-columns: 180px 1fr;
        max-width: 900px;
        overflow: hidden;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .left-section {
        width: 60%;
    }

    .qr-image {
        width: 60px;
        height: 60px;
    }

    .right-column,
    .pro-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .action-card {
        width: 120px;
        height: 120px;
    }

    .action-label {
        font-size: 16px;
    }

    .action-card img {
        width: 60px;
        height: 60px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        overflow: hidden;
    }

    .medseek-pro {
        margin-left: 0;
    }

    .pro-item {
        width: 100%;
    }

    .bottom-action-container {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        gap: 8px;
    }

    .analytics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .stat-number {
        font-size: 20px;
    }
    .stat-label {
        font-size: 11px;
    }

    .main-dashboard {
        width: 100%;
        overflow: hidden;
    }

    .share-content {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .share-url {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .share-buttons {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .btn-outline, .btn-primary {
        flex: 1;
        text-align: center;
    }

    .qr-container {
        flex-shrink: 0;
    }

    .share-actions {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }




}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* --- TABLET (768px) --- */
@media (max-width: 768px) {

    /* Provider Banner */
    .main-container {
        height: auto;
        padding: 8px 16px;
        gap: 16px;
        margin: 16px auto;
    }

    .provider-avatar {
        width: 80px;
        height: 80px;
        margin: 0;
        border-radius: 20px;
    }

    .info-name h2 {
        font-size: 18px;
        margin-top: 24px;
        margin-bottom: 6px;
    }

    .info-specialty,
    .info-npi {
        font-size: 14px;
    }

    /* Page layout — stack sidebar above content */
    .page-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        width: 100%;
        overflow-x: visible;
    }

    .side-action-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .action-card {
        flex: 1;  
        aspect-ratio: 1;
        height: auto;
        max-width: 25%; 
        margin-bottom: 0;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .action-label {
        font-size: 11px;
        text-align: center;
    }

    .action-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
    }

    /* Dashboard container — stack vertically */
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 16px;
        max-height: none;
    }

    .left-section {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        min-height: 280px;
        width: 100%;
    }

    .medseek-pro {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
    }

    .pro-item {
        width: 100%;
    }

    .bottom-action-container {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }

    .action-card-b {
        width: 80%;
        height: auto;
        margin: 0;
    }

    .action-label-b {
        margin-top: 8px;
        font-size: 14px;
    }

    .action-card-b img {
        width: 50px;
        height: 50px;
    }
}

/* --- MOBILE (480px) --- */
@media (max-width: 480px) {

    .left-section, .medseek-pro {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-primary {
        font-size: 13px;
        padding: 8px 16px;
    }
    


    .medseek-pro {
        margin: 0;
    }

    .avatar-dropdown-wrapper {
        display: inline-block;
    }


    /* Provider Banner */
    .main-container {
        width: 85%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .provider-avatar {
        width: 60px;
        height: 60px;
        margin-left: 0;
    }

    .provider-avatar img {
        width: 80%;
        height: 80%;
    }

    .info-name h2 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .info-specialty,
    .info-npi {
        font-size: 12px;
    }

    .main-dashboard {
        width: 100%;
    }

    /* Greeting */
    .main-dashboard h4 {
        font-size: 14px;
        margin-bottom: 2px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .dashboard-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
        width: 85%;
        padding: 0 16px;
    }

    /* Carousel cards smaller on mobile */
    .action-card {
        width: 60px;
        height: 60px;
        padding-right: 6px;
        padding-left: 6px;
        padding-top: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 2px solid #60A699;
    }

    .side-action-container {
        gap: 10px;
    }

    .action-label {
        font-size: 10px;
        display: block;
        text-align: center;
        line-height: 1;
        margin-top: 0;
        margin-bottom: 0;
    }

    .action-card img {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        margin-top: 0 !important;
    }

    /* Dashboard */
    .dashboard-container {
        padding: 12px;
        gap: 12px;
        margin: 0 auto 20px auto;
        box-sizing: border-box;
        text-align: center;
        height: auto;
        width: 90% !important;
    }

    .left-section {
        min-height: 220px;
    }

    /* PRO section */
    .medseek-pro h2 {
        font-size: 16px;
    }

    .pro-item {
        font-size: 14px;
        height: 40px;
        padding: 0 12px;
    }

    .pro-item img {
        width: 16px;
        height: 16px;
    }

    /* Bottom tiles — 2x2 grid */
    .bottom-action-container {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 16px !important;
        padding: 16px !important;
        box-sizing: border-box;
        margin: auto;

    }

    .action-card-b {
        height: 90px;
        padding: 8px;
        padding-top: 14px;
    }

    .action-label-b {
        font-size: 13px;
    }

    .action-card-b img {
        width: 40px;
        height: 40px;
    }

    .pro-badge {
        font-size: 7px;
        padding: 3px 6px;
    }

    .ver-planes-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .analytics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .share-content {
        flex-direction: column;
        align-items: center;
    }
    .share-buttons {
        flex-direction: column;
    }

    .stat-number {
        font-size: 18px !important;
    }

    .competition-cta {
        font-size: 11px;
    }
}

@media (max-width: 350px) {
    .left-section, .medseek-pro {
        width: 90%;
    }

    .stat-number {
        font-size: 16px !important;
    }

    .competition-number {
        font-size: 16px;
    }

    .action-card {
        width:  55px;

    }

    .action-label{
        font-size: 9px;
        font-weight: 600;
        margin-top: 8px;
    }

    .action-card img {
        margin-bottom: 8px !important;
    }
}