/**
 * Member Dashboard Styles
 */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
    --ws-primary-color: #1276b3;
    --ws-primary-color-hover: #005177;
    --ws-black-color: #171717;
    --ws-grey-color: #666;
    --ws-bg-grey-color: #f5f5f5;
    --ws-bd-color: #eaeaea;
    --ws-primary-font: 'Hind Siliguri', sans-serif;
    --ws-secondary-font: 'Inter', sans-serif;
}
.ws-member-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--ws-primary-font);
}

.ws-member-dashboard .odometer.odometer-auto-theme,
.ws-member-dashboard .odometer.odometer-theme-default{
    font-family: var(--ws-secondary-font);
    line-height: 1;
}

@media (max-width: 767px){
    .ws-member-dashboard{
        padding: 10px 20px;
    }
}

.wp-site-blocks{
    padding: 0 !important;
}

.wp-block-post-content{
    display: block;
}

.ws-section {
    background: #fff;
    border: 1px solid var(--ws-bd-color);
    border-radius: 8px;
    padding: 20px;
}

.ws-member-dashboard .ws-section:not(:last-of-type) {
    margin-bottom: 30px;
}
.ws-community-total,
.ws-section h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--ws-bd-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--ws-black-color);
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 10px;
}

.ws-community-total{
    margin-bottom: 0;
    padding: 0;
    border: none;
}

.ws-community-total span.ws-community-total-amount{
    color: #86bb29;
}

@media (max-width: 650px){
    .ws-community-total,
    .ws-section h2{
        text-align: center;
    }
}

/* Profile Section */
.ws-profile {
    display: flex;
    flex-direction: column;
}

.ws-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ws-bd-color);
}

.ws-profile-header .ws-site-logo{
    width: 250px;
}

.ws-profile-header .ws-site-logo img{
    width: 100%;
}

.ws-profile-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-profile-photo-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ws-profile-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-profile-info h2 {
    border: none;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    color: var(--ws-black-color);
    margin: 0 0 5px 0;
}

.ws-member-since {
    color: var(--ws-grey-color);
    margin: 0;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
}

.ws-member-mobile {
    line-height: 1;
    margin-bottom: 0;
    font-size: 18px;
    margin-top: 10px;
}

.ws-profile-edit {
    margin-top: 20px;
}

.ws-profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ws-toggle-edit-profile,
.ws-view-rules,
.ws-logout-button,
.ws-button-primary,
.ws-view-bank-info {
    background: #fff;
    border: 1px solid var(--ws-bd-color);
    font-family: var(--ws-secondary-font);
    color: var(--ws-grey-color);
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    height: 32px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-view-bank-info:hover,
.ws-view-bank-info:focus,
.ws-toggle-edit-profile:hover,
.ws-view-rules:hover,
.ws-logout-button:hover,
.ws-toggle-edit-profile:focus,
.ws-view-rules:focus,
.ws-logout-button:focus,
.ws-toggle-edit-profile.ws-active,
.ws-button-primary:hover,
.ws-button-primary:focus {
    background: var(--ws-bg-grey-color);
    color: var(--ws-black-color);
    outline: none;
    box-shadow: none;
}

#ws-profile-form {
    margin-top: 20px;
}

.ws-form-group {
    margin-bottom: 15px;
}

.ws-form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--ws-secondary-font);
    font-size: 13px;
    line-height: 1;
    color: var(--ws-grey-color);
}

.ws-form-group input[type="text"],
.ws-form-group input[type="password"],
.ws-form-group input[type="file"] {
    font-family: var(--ws-secondary-font);
    font-size: 14px;
    line-height: 1;
    color: var(--ws-black-color);
    width: 100%;
    padding: 10px 8px;
    border: 1px solid var(--ws-bd-color);
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
}

.ws-form-group input[type="text"]:focus,
.ws-form-group input[type="password"]:focus,
.ws-form-group input[type="file"]:focus {
    border-color: #ccc;
}

.ws-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.ws-form-actions .ws-button-primary {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.ws-form-actions .ws-button-primary:not(.ws-cancel-edit-profile),
.ws-filter-group .ws-button-primary:not(.ws-reset-button) {
    background: var(--ws-black-color);
    color: #fff;
}

.ws-form-actions .ws-button-primary:not(.ws-cancel-edit-profile):hover,
.ws-form-actions .ws-button-primary:not(.ws-cancel-edit-profile):focus,
.ws-filter-group .ws-button-primary:not(.ws-reset-button):focus,
.ws-filter-group .ws-button-primary:not(.ws-reset-button):hover {
    opacity: 0.9;
}

.ws-hidden {
    display: none;
}

.ws-filter-group select:focus,
.ws-filter-group input:focus {
    border-color: #ccc;
    outline: none;
}

.ws-site-logo-mobile{
    display: none;
}

@media (max-width: 650px){
    .ws-site-logo-mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
        margin-top: 20px;
    }
    .ws-site-logo-mobile img{
        width: 200px;
        height: auto;
    }
    .ws-profile-header .ws-site-logo{
        display: none;
    }
    .ws-profile-header{
        justify-content: center;
    }
    .ws-profile-wrap{
        justify-content: center;
        flex-direction: column;
    }
    .ws-profile-info{
        text-align: center;
    }
    .ws-profile-actions{
        justify-content: center;
    }
    .ws-profile-photo-wrapper {
        width: 70px;
        height: 70px;
    }
    .ws-toggle-edit-profile,
    .ws-view-rules,
    .ws-logout-button,
    .ws-button-primary,
    .ws-view-bank-info{
        font-size: 12px;
        padding: 0 10px;
    }
}

/* My Savings Section */
.ws-my-savings {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
}

.ws-card-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ws-card-wrap.ws-advance-active {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .ws-card-wrap.ws-advance-active {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ws-card-wrap,
    .ws-card-wrap.ws-advance-active {
        grid-template-columns: 1fr;
    }
}

.ws-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
    flex: 1;
    text-align: left;
}

.ws-total-due {
    background-color: #fcf2f2;
}

.ws-total-advance {
    background-color: #f0fff4;
}

.ws-big-number {
    font-family: var(--ws-secondary-font);
    font-size: 36px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0;
}

.ws-currency{
    margin-right: -5px;
}

.ws-total-due .ws-big-number {
    color: #fff;
}

.ws-label {
    color: #fff;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 767px){
    .ws-card {
        text-align: center;
    }
}

/* Tables */
.ws-table-responsive {
    overflow-x: auto;
}

.ws-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--ws-bd-color);
}

.ws-table th,
.ws-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--ws-bd-color);
}

.ws-table th {
    background-color: var(--ws-bg-grey-color);
    font-size: 16px;
    font-weight: 500;
    color: var(--ws-black-color);
    line-height: 1;
    border-bottom: 0px solid var(--ws-bd-color);
}

.ws-table td{
    font-family: var(--ws-secondary-font);
    font-size: 15px;
    line-height: 1;
    color: var(--ws-grey-color);
    letter-spacing: -0.2px;
}

.ws-all-members .ws-table td{
    font-weight: 500;
}

.ws-table td.ws-positive{
    font-weight: 400;
}

.ws-table tr:last-child td {
    border-bottom: none;
}

.ws-positive {
    color: #86bb29;
    font-weight: 600;
}

.ws-negative {
    color: #dc3232;
    font-weight: 600;
}

/* Filters */
.ws-filters-form {
    background: var(--ws-bg-grey-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ws-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ws-filter-group select, 
.ws-filter-group input {
    padding: 8px;
    border: 1px solid var(--ws-bd-color);
    border-radius: 4px;
    box-sizing: border-box;
    height: 38px;
}

.ws-filter-group input[type="month"] {
    -webkit-appearance: none;
    appearance: none;
    height: 38px;
    line-height: 38px;
    padding: 0 8px;
    width: 160px;
}

.ws-filter-group button,
.ws-filter-group .ws-button-primary {
    padding: 8px 15px;
    height: 38px;
    box-sizing: border-box;
}

.ws-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    font-size: 16px;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ws-pagination{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.ws-pagination .ws-page-info{
    font-family: var(--ws-secondary-font);
    font-size: 14px;
    line-height: 1;
    color: var(--ws-black-color);
}

.ws-pagination .ws-button-primary[disabled="disabled"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* All Members Table */
.ws-all-members .ws-section-header{
    border-bottom: 1px solid var(--ws-bd-color);
    padding-bottom: 10px;
}
.ws-all-members .ws-section-header h2{
    border: none;
}

@media screen and (max-width: 767px) {
    .ws-all-members .ws-section-header{
        flex-direction: column;
        align-items: center!important;
    }
    .ws-filter-group{
        justify-content: center;
    }
    .ws-filter-group select, 
    .ws-filter-group input[type="month"]{
        height: 38px;
        box-sizing: border-box;
        color: var(--ws-black-color);
        font-size: 16px;
        line-height: 1;
    }
    .ws-filter-group .ws-button-primary,
    .ws-filter-group button{
        height: 38px;
    }
    
    /* Horizontal scrolling for tables on mobile */
    .ws-table th, 
    .ws-table td {
        white-space: nowrap;
    }
}

@media screen and (max-width: 600px) {
    .ws-table th, 
    .ws-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Login Page */
.ws-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
}

.ws-login-container {
    width: 100%;
    max-width: 350px;
    margin: -30px auto 0;
}

@media screen and (max-width: 600px) {
    .ws-login-container {
        width: 90%;
    }
}

.ws-login-container .login-logo{
    text-align: center;
    margin: 0 0 25px;
}

.ws-login-container .login-logo img{
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-left: -20px;
}

.ws-login-inner{
    padding: 30px;
    border: 1px solid rgba(219,218,222,0.9);
    border-radius: 8px;
}

.ws-login-container h2 {
    font-family: var(--ws-secondary-font);
    font-size: 22px;
    line-height: 1;
    color: var(--ws-black-color);
    font-weight: 600;
    text-align: center;
    margin: 0 0 25px;
}

.ws-login-container .ws-form-group {
    margin-bottom: 20px;
}

.ws-login-container label {
    font-family: var(--ws-secondary-font);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ws-black-color);
}

.ws-login-container input[type="text"],
.ws-login-container input[type="password"] {
    font-family: var(--ws-secondary-font);
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--ws-bd-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    color: var(--ws-black-color);
    height: 47px;
    box-sizing: border-box;
}

.ws-login-container input[type="text"]::placeholder,
.ws-login-container input[type="password"]::placeholder {
    color: #999;
}

.ws-login-container input[type="text"]:focus,
.ws-login-container input[type="password"]:focus {
    border-color: rgba(158, 158, 167, 0.7);
    outline: none;
    box-shadow: 0px 4px 4px 0px rgba(6, 3, 24, 0.03);
}

.ws-login-actions {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 20px;
}

.ws-login-container input[type="submit"] {
    background-color: var(--ws-black-color);
    border: none;
    padding: 0 24px;
    height: 48px;
    border-radius: 8px;
    font-family: var(--ws-secondary-font);
    font-size: 16px;
    line-height: 1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    margin-top: 0;
}

.ws-login-container input[type="submit"]:hover {
    opacity: 0.9;
}

.ws-login-links{
    text-align: center;
    line-height: 1;
}

.ws-link-btn{
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #666;
}

.ws-link-btn:focus{
    outline: none;
    box-shadow: none;
}

.ws-link-btn:hover{
    color: #0d0c22;
    text-decoration: underline;
}

.ws-description {
    font-size: 16px;
    line-height: 1.4;
    color: #666;
    text-align: center;
    margin: 0 0 25px;
}

.ws-login-message {
    text-align: center;
    padding: 40px;
}

.ws-message{
    margin-bottom: 10px;
}

/* Popup Styles */
.ws-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ws-popup-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: wsFadeIn 0.3s ease;
}

@keyframes wsFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ws-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-popup-header h2 {
    font-family: var(--ws-secondary-font);
    margin: 0;
    font-size: 24px;
    line-height: 1;
    color: var(--ws-black-color);
    border: none;
    padding: 0;
    font-weight: 600;
}

.ws-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.ws-popup-close:hover {
    color: var(--ws-black-color);
}

.ws-popup-close:focus{
    outline: none;
    box-shadow: none;
}

.ws-popup-body {
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
    color: #666;
    font-size: 18px;
}

.ws-popup-body p{
    margin-bottom: 20px;
    margin-top: 0;
}

.ws-popup-body strong {
    font-weight: 600;
    color: var(--ws-black-color);
}

.ws-popup-body p {
    margin-bottom: 15px;
}

.ws-popup-body ul, .ws-popup-body ol {
    margin: 0 0 0 15px;
    padding: 0;
}

.ws-popup-body ul li:not(:last-of-type), .ws-popup-body ol li:not(:last-of-type) {
    margin-bottom: 15px;
}

.ws-profile-edit .ws-message.ws-error {
    margin: 20px 0 0;
}

.ws-password-match-message.ws-error {
    margin-top: 15px;
}

.ws-ov-bg{
    background-image: url('../img/us-total-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

.ws-ov-bg:before{
    background-color: var(--ws-primary-color);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    z-index: -1;
}

.ws-total-personal-savings.ws-ov-bg:before{
    background-color: #845adf;
}

.ws-total-due.ws-ov-bg:before{
    background-color: #fd5c63;
}

.ws-total-advance.ws-ov-bg:before{
    background-color: #26bf94;
}

/* Copy Icon Styles */
.ws-copy-action {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.ws-copy-icon,
.ws-check-icon {
    display: flex;
    align-items: center;
}

.ws-check-icon {
    color: #48bb78;
}

.ws-popup-body .ws-bank-info{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ws-popup-body .ws-bank-info li:not(:last-of-type){
    margin-bottom: 5px;
}

.ws-member-name-cell{
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-member-list-avatar{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}