/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

#wpcontent {
    padding-left: 0px;
}

/* == Dashboard page Style == */

.ybh-blur {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.ybh-header {
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ybh-logo {
    color: #4285f4;
    font-size: 18px;
    font-weight: 600;
}

.ybh-header-bothright {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ybh-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    background: #F5F5F5;
}

.ybh-header-right span {
    align-items: center;
    display: flex;
}

.ybh-header-outright {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ybh-header-outright a:focus {
    outline: 0;
    box-shadow: none;
}

.ybh-status-indicator {
    display: flex;
    align-items: center;
    color: #5cb85c; /* Green text */
    font-size: 14px;
    font-weight: 500;
}

.ybh-status-dot {
    width: 10px;
    height: 10px;
    background-color: #5cb85c;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2); /* light green halo */
}

.ybh-red-dot {
    background-color: #ff415c !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.ybh-red-text {
    color: #ff415c !important;
}

.ybh-balance {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ybh-balance-link {
    text-decoration: none;
    color: #000;
}

.ybh-balance-link:hover {
    text-decoration: none;
}

.ybh-main-container {
    padding: 20px;
    margin: 0 auto;
}

.ybh-account-info {
    text-align: left;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ybh-account-avatar-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ybh-account-avatar-link:hover {
    opacity: 0.8;
}

.ybh-account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.ybh-account-avatar img {
    max-width: 100%;
    height: auto;
}

.ybh-account-details h3 {
    font-size: 14px;
    color: #4285f4;
    margin-bottom: 2px;
    margin-top: 0px;
}

.ybh-account-status {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ybh-stats-grid {
    display: flex;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    flex-display: row;
}

.ybh-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.ybh-flex-cards {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
}

/* Responsive breakpoints for smaller screens */
@media screen and (max-width: 1590px) {
    .ybh-account-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ybh-account-details {
        margin: 8px 0 !important;
    }
    
}

/* Responsive breakpoints for mobile devices */
@media screen and (max-width: 768px) {
    .ybh-stats-grid {
        flex-direction: column;
    }
    
    .ybh-flex-box-1 {
        width: 100%;
        min-width: 100%;
    }
    
    .ybh-flex-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .ybh-flex-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .ybh-flex-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.ybh-flex-box-1 {
    min-width: 23.5%;
    max-width: 100%;
    box-sizing: border-box;
}

.ybh-flex-box-2 {
    min-width: 11%;
}

.ybh-stat-card h4 {
    font-size: 14px;
    color: #424242;
    font-weight: 600;
    margin-bottom: 8px;
    font-weight: normal;
}

.ybh-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#ybh-account-balance {
    font-weight: 600;
}

.ybh-account-details {
    margin: 0px 15px;
}

.ybh-orders-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.ybh-orders-header {
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #eaeaea;
}

.ybh-orders-title {
    font-size: 16px;
    font-weight: 500;
}

.ybh-refresh-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    color: #4285f4;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.ybh-refresh-btn:hover {
    background: #e8f0fe;
    border-color: #4285f4;
    text-decoration: none;    
}

.ybh-refresh-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.ybh-refresh-btn img {
    width: 14px;
    height: 14px;
}

.ybh-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.ybh-empty-illustration {
    margin-bottom: 20px;
}

.ybh-empty-illustration svg {
    width: 120px;
    height: 120px;
}

.ybh-empty-message {
    color: #666;
    font-size: 14px;
}

.ybh-orders-table {
    width: 100%;
    border-collapse: collapse;
    /*display: none;*/
}

.ybh-orders-table th,
.ybh-orders-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.ybh-orders-table th {
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

.ybh-orders-table td {
    font-size: 14px;
    border: 10px solid #fff;
}

.ybh-orders-table tr:hover {
    background: #fafafa;
}

.ybh-orders-table tr:nth-child(odd) {
    background-color: #F5F5F5;
}

.ybh-order-link {
    color: #4285f4;
    text-decoration: none;
}

.ybh-order-link:hover {
    text-decoration: underline;
}

.ybh-show-table .ybh-orders-table {
    display: table;
}

.ybh-show-table .ybh-empty-state {
    display: none;
}

.ybh-show-table .ybh-stat-card .ybh-stat-value {
    color: #333;
}

.ybh-fullpage-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ybh-fullpage-loading .spinner {
    visibility: visible;
    float: none;
    margin: 0;
    width: 70px;
    height: 70px;
    border-width: 5px;
}

.ybh-token-hdng {
    font-size: 20px;
}

.ybh-token-txt{
    font-size: 12px;
    font-weight: 400;
}

.ybh-token-settings{
    background: #fff;
    padding: 20px 10px;
}

.ybh-token-settings form label{
    font-weight: 400;
    font-size: 16px;
}

#ybhd_token{
    width: 100% !important;
    height: 51px;
    gap: 4px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 4px;
    padding: 16px;
    border-width: 1px;
    margin: 10px 0px;
    border-color: #BDBDBD;
}

p.submit{
    margin: 0px;
}
.ybh-token-settings form p input[type="submit"]{
    width: 86px;
    height: 35px;
    gap: 8px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 4px;
    background: #0957E8;
}

.ybh-logo-token {
    margin: 10px 0px;
}

#ybhd_logout {
    cursor: pointer !important;
}