/* Member Dashboard Styling - Override theme conflicts */
.wmp-member-dashboard {
    max-width: 1200px !important;
    margin: 20px auto !important;
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* Reset any theme interference */
.wmp-member-dashboard * {
    box-sizing: border-box !important;
}

.wmp-member-dashboard h2,
.wmp-member-dashboard h3,
.wmp-member-dashboard h4 {
    font-family: inherit !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.wmp-member-dashboard p {
    font-family: inherit !important;
    line-height: 1.6 !important;
}

/* Ensure grid layouts work */
.wmp-member-dashboard .wmp-summary-cards,
.wmp-member-dashboard .wmp-info-grid,
.wmp-member-dashboard .wmp-months-grid {
    display: grid !important;
}

/* Force card display */
.wmp-member-dashboard .wmp-card {
    display: flex !important;
    flex-direction: row !important;
}

.wmp-member-dashboard h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.wmp-member-dashboard h3 {
    color: #34495e;
    font-size: 22px;
    margin: 30px 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-member-dashboard h3:before {
    content: "📅";
    font-size: 24px;
}

.wmp-member-dashboard p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.wmp-member-dashboard p strong {
    color: #2c3e50;
    font-weight: 600;
}

.wmp-member-dashboard hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 25px 0;
    border-radius: 1px;
}

/* Status Table Styling */
.wmp-status-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wmp-status-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.wmp-status-table th {
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmp-status-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #2c3e50;
}

.wmp-status-table tbody tr:hover {
    background-color: #f8f9fa;
}

.wmp-status-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status indicators */
.wmp-status-table td:last-child {
    font-weight: 600;
}

.wmp-status-table td:last-child:contains("✓") {
    color: #27ae60;
}

.wmp-status-table td:last-child:contains("—") {
    color: #e74c3c;
}

/* Login Form Styling */
.wmp-login-wrapper {
    max-width: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.wmp-login-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e6ed;
}

.wmp-login-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 22px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wmp-icon {
    font-size: 24px;
}

.wmp-login-card p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

#wmp-loginform {
    margin-bottom: 20px;
}

#wmp-loginform p {
    margin-bottom: 15px;
    text-align: left;
}

#wmp-loginform label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

#wmp-loginform input[type="text"],
#wmp-loginform input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#wmp-loginform input[type="text"]:focus,
#wmp-loginform input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#wmp-loginform input[type="checkbox"] {
    margin-right: 8px;
}

#wmp-loginform input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wmp-loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.wmp-login-links {
    text-align: center;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.wmp-login-links p {
    margin: 8px 0;
}

.wmp-login-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wmp-login-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.wmp-help-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 20px;
}

.wmp-help-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.wmp-login-hint {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin: 15px 0;
}

.wmp-login-hint p {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
    text-align: left;
    line-height: 1.5;
}

/* Login Form Container */
.wmp-login-form-container {
    margin: 20px 0;
}

.wmp-form-field {
    margin-bottom: 20px;
}

.wmp-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.wmp-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.wmp-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wmp-checkbox-field {
    display: flex;
    align-items: center;
}

.wmp-checkbox-field label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.wmp-checkbox-field input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.wmp-login-button {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmp-login-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.wmp-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wmp-member-dashboard {
        margin: 10px;
        padding: 20px;
    }
    
    .wmp-member-dashboard h2 {
        font-size: 24px;
    }
    
    .wmp-status-table th,
    .wmp-status-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .wmp-login-wrapper {
        padding: 0 10px;
    }
    
    .wmp-login-card {
        padding: 20px;
    }
    
    .wmp-login-card h3 {
        font-size: 20px;
    }
}

/* Success/Error Messages */
.wmp-message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.wmp-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wmp-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Password Change Section */
.wmp-password-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.wmp-password-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.wmp-password-section h3:before {
    content: "";
}

.wmp-password-form {
    max-width: 400px;
}

.wmp-form-row {
    margin-bottom: 20px;
}

.wmp-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.wmp-form-row input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wmp-form-row input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wmp-form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.wmp-change-password-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmp-change-password-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.wmp-change-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Password Strength Indicator */
.wmp-password-strength {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmp-password-strength.weak {
    background: #f8d7da;
    color: #721c24;
}

.wmp-password-strength.medium {
    background: #fff3cd;
    color: #856404;
}

.wmp-password-strength.strong {
    background: #d4edda;
    color: #155724;
}

/* Dashboard Header */
.wmp-dashboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    flex-wrap: wrap !important;
}

.wmp-header-content h2 {
    margin: 0 0 10px 0 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: white !important;
    line-height: 1.2 !important;
}

.wmp-welcome {
    margin: 0 !important;
    font-size: 18px !important;
    opacity: 0.9 !important;
    color: white !important;
}

.wmp-profile-section {
    text-align: center;
}

.wmp-profile-picture {
    position: relative;
    display: inline-block;
}

.wmp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.wmp-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.wmp-upload-btn {
    display: block;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wmp-upload-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Summary Cards */
.wmp-summary-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

.wmp-card {
    background: white !important;
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid #e0e6ed !important;
    margin: 0 !important;
    width: auto !important;
    min-height: 100px !important;
}

.wmp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.wmp-card-icon {
    font-size: 32px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.wmp-card-primary .wmp-card-icon { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.wmp-card-success .wmp-card-icon { background: linear-gradient(135deg, #27ae60, #229954) !important; }
.wmp-card-info .wmp-card-icon { background: linear-gradient(135deg, #8e44ad, #7d3c98) !important; }
.wmp-card-warning .wmp-card-icon { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }

.wmp-card-content h3 {
    margin: 0 0 5px 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    line-height: 1.2 !important;
}

.wmp-card-content p {
    margin: 0 !important;
    color: #7f8c8d !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

/* Member Info Section */
.wmp-member-info-section {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e0e6ed !important;
    margin-bottom: 25px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    display: block !important;
}

.wmp-member-info-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.wmp-info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Export Section */
.wmp-export-section {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e0e6ed !important;
    margin-bottom: 25px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    display: block !important;
}

.wmp-export-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-export-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wmp-export-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-export-options label {
    font-weight: 600;
    color: #2c3e50;
}

.wmp-export-options select {
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
}

.wmp-export-buttons {
    display: flex;
    gap: 10px;
}

.wmp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.wmp-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.wmp-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.wmp-btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.wmp-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.3);
}

/* Payment History */
.wmp-payment-history {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e0e6ed !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 25px !important;
}

.wmp-payment-history h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-no-payments {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.wmp-no-payments-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.wmp-no-payments h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.wmp-year-section {
    margin-bottom: 30px;
}

.wmp-year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.wmp-year-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.wmp-paid-count {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wmp-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.wmp-month-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wmp-month-card.paid {
    background: #d4edda;
    border-color: #27ae60;
}

.wmp-month-card.unpaid {
    background: #fff3cd;
    border-color: #f39c12;
}

.wmp-month-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wmp-month-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.wmp-month-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wmp-status-icon {
    font-size: 16px;
}

.wmp-status-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmp-month-card.paid .wmp-status-text {
    color: #155724;
}

.wmp-month-card.unpaid .wmp-status-text {
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wmp-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .wmp-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .wmp-export-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wmp-export-buttons {
        justify-content: center;
    }
    
    .wmp-months-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .wmp-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Logout Section */
.wmp-logout-section {
    text-align: center !important;
    margin-top: 40px !important;
    padding: 20px !important;
    border-top: 2px solid #e0e6ed !important;
}

.wmp-logout-btn {
    display: inline-block !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

.wmp-logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.wmp-logout-btn:focus,
.wmp-logout-btn:active {
    color: white !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wmp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}