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

/* Profile Widget Styles */
.wpmember-profile-widget-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.wpmember-profile-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.wpmember-profile-widget-avatar {
    position: relative;
    flex-shrink: 0;
}

.wpmember-profile-widget-avatar img {
    border-radius: 50%;
    display: block;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.wpmember-profile-widget-avatar:hover img {
    border-color: #0073aa;
}

.wpmember-profile-widget-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #46b450;
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
}

.wpmember-profile-widget-actions {
    flex-shrink: 0;
}

.wpmember-profile-widget-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-edit:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

.wpmember-profile-widget-edit .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.wpmember-profile-widget-info {
    text-align: center;
    margin-bottom: 15px;
}

.wpmember-profile-widget-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.wpmember-profile-widget-level {
    margin-bottom: 8px;
}

.wpmember-level-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpmember-profile-widget-since {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.wpmember-profile-widget-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.wpmember-profile-widget-link {
    display: block;
    padding: 8px 12px;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-link:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* Profile Widget Styles - Modern */
.wpmember-profile-widget-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-name {
    color: #fff;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-since {
    color: rgba(255, 255, 255, 0.8);
}

.wpmember-profile-widget-modern .wpmember-level-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wpmember-profile-widget-modern .wpmember-profile-widget-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.wpmember-profile-widget-modern .wpmember-profile-widget-edit {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-edit:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Profile Widget Styles - Minimal */
.wpmember-profile-widget-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 15px;
}

.wpmember-profile-widget-minimal .wpmember-profile-widget-avatar img {
    border: 2px solid #ddd;
}

.wpmember-profile-widget-minimal .wpmember-profile-widget-link {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.wpmember-profile-widget-minimal .wpmember-profile-widget-link:hover {
    background: #f6f7f7;
    color: #333;
}

/* Profile Widget Styles - Compact */
.wpmember-profile-widget-compact {
    padding: 15px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-header {
    margin-bottom: 10px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-info {
    margin-bottom: 10px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-links {
    margin-top: 10px;
    padding-top: 10px;
    flex-direction: row;
    gap: 5px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-link {
    font-size: 12px;
    padding: 6px 10px;
}

/* Login Prompt Styles */
.wpmember-profile-widget-login-prompt {
    text-align: center;
    padding: 20px;
}

.wpmember-profile-widget-login-prompt p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wpmember-profile-widget-login-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wpmember-profile-widget-login-btn,
.wpmember-profile-widget-register-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-login-btn {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.wpmember-profile-widget-login-btn:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
    text-decoration: none;
}

.wpmember-profile-widget-register-btn {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.wpmember-profile-widget-register-btn:hover {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design for Profile Widget */
@media (max-width: 480px) {
    .wpmember-profile-widget-login-buttons {
        flex-direction: column;
    }
    
    .wpmember-profile-widget-compact .wpmember-profile-widget-links {
        flex-direction: column;
    }
}

/* Login Form Styles */
.wpmember-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.wpmember-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpmember-login-form input[type="text"],
.wpmember-login-form input[type="email"],
.wpmember-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.wpmember-login-form .submit-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.wpmember-login-form .submit-button:hover {
    background: #005a87;
}

/* Registration Form Styles */
.wpmember-register-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.wpmember-register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpmember-register-form input[type="text"],
.wpmember-register-form input[type="email"],
.wpmember-register-form input[type="password"],
.wpmember-register-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.wpmember-register-form .submit-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.wpmember-register-form .submit-button:hover {
    background: #005a87;
}

/* Account Page Styles */
.wpmember-account {
    max-width: 800px;
    margin: 0 auto;
}

.wpmember-account-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpmember-account-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Membership Levels Styles */
.wpmember-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wpmember-level-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.wpmember-level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wpmember-level-card.featured {
    border-color: #0073aa;
    position: relative;
}

.wpmember-level-card.featured::before {
    content: "Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.wpmember-level-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wpmember-level-price {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.wpmember-level-duration {
    color: #666;
    margin-bottom: 20px;
}

.wpmember-level-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.wpmember-level-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.wpmember-level-features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.wpmember-level-features li:last-child {
    border-bottom: none;
}

.wpmember-level-button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.wpmember-level-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Checkout Styles */
.wpmember-checkout {
    max-width: 600px;
    margin: 0 auto;
}

.wpmember-checkout-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Messages */
.wpmember-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wpmember-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpmember-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpmember-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpmember-levels-grid {
        grid-template-columns: 1fr;
    }
    
    .wpmember-login-form,
    .wpmember-register-form {
        margin: 0 10px;
    }
}

.wpmember-profile-card-small .wpmember-profile-card-header {
    gap: 10px;
}

.wpmember-profile-card-small .wpmember-profile-card-name {
    font-size: 16px;
}

.wpmember-profile-card-small .wpmember-profile-avatar {
    width: 50px;
    height: 50px;
}

.wpmember-profile-card-medium {
    /* Default styles already applied */
}

.wpmember-profile-card-large {
    padding: 25px;
}

.wpmember-profile-card-large .wpmember-profile-card-name {
    font-size: 20px;
}

.wpmember-profile-card-large .wpmember-profile-avatar {
    width: 100px;
    height: 100px;
}

/* Profile Card Styles */
.wpmember-profile-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.wpmember-profile-card-modern .wpmember-profile-card-name {
    color: white;
}

.wpmember-profile-card-modern .wpmember-profile-card-since {
    color: rgba(255, 255, 255, 0.8);
}

.wpmember-profile-card-modern .wpmember-profile-card-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.wpmember-profile-card-modern .wpmember-profile-card-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wpmember-profile-card-minimal {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 15px 0;
}

.wpmember-profile-card-minimal .wpmember-profile-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpmember-protection-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wpmember-login-button,
    .wpmember-register-button,
    .wpmember-upgrade-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .wpmember-profile-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .wpmember-profile-card-actions {
        align-self: center;
    }
    
    .wpmember-profile-card-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wpmember-profile-card-detail-value {
        text-align: left;
        max-width: 100%;
    }
}

/* Profile Widget Styles */
.wpmember-profile-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.wpmember-profile-widget-card {
    padding: 20px;
    text-align: center;
    position: relative;
}

.wpmember-profile-widget-header {
    position: relative;
    margin-bottom: 15px;
}

.wpmember-profile-widget-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.wpmember-profile-widget-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.wpmember-profile-widget:hover .wpmember-profile-widget-avatar img {
    border-color: #007cba;
}

.wpmember-profile-widget-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #46b450;
    border-radius: 50%;
    border: 2px solid #fff;
}

.wpmember-profile-widget-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.wpmember-profile-widget-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-edit:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
    transform: rotate(90deg);
}

.wpmember-profile-widget-edit .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wpmember-profile-widget-info {
    margin-bottom: 15px;
}

.wpmember-profile-widget-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.wpmember-profile-widget-level {
    margin-bottom: 8px;
}

.wpmember-profile-widget-since {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.wpmember-profile-widget-links {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpmember-profile-widget-link {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-link:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
}

.wpmember-profile-widget-login-prompt {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.wpmember-profile-widget-login-prompt p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wpmember-profile-widget-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpmember-profile-widget-login-btn,
.wpmember-profile-widget-register-btn {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wpmember-profile-widget-login-btn {
    background: #007cba;
    color: white;
}

.wpmember-profile-widget-login-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.wpmember-profile-widget-register-btn {
    background: #00a32a;
    color: white;
}

.wpmember-profile-widget-register-btn:hover {
    background: #007a1f;
    color: white;
    text-decoration: none;
}

/* Profile Widget Styles */
.wpmember-profile-widget-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-name {
    color: white;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-since {
    color: rgba(255, 255, 255, 0.8);
}

.wpmember-profile-widget-modern .wpmember-profile-widget-edit {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-edit:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-links {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.wpmember-profile-widget-modern .wpmember-profile-widget-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.wpmember-profile-widget-modern .wpmember-profile-widget-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wpmember-profile-widget-minimal {
    background: transparent;
    box-shadow: none;
}

.wpmember-profile-widget-minimal .wpmember-profile-widget-card {
    padding: 15px 0;
}

.wpmember-profile-widget-minimal .wpmember-profile-widget-links {
    border-top: 1px solid #eee;
}

.wpmember-profile-widget-compact {
    font-size: 13px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-card {
    padding: 15px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-name {
    font-size: 14px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-since {
    font-size: 11px;
}

.wpmember-profile-widget-compact .wpmember-profile-widget-link {
    padding: 6px 10px;
    font-size: 12px;
}

/* Widget responsive adjustments */
@media (max-width: 768px) {
    .wpmember-profile-widget-card {
        padding: 15px;
    }
    
    .wpmember-profile-widget-actions {
        top: 5px;
        right: 5px;
    }
}

/* User Panel Styles */
.wpmember-user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    min-height: 80px;
}

.wpmember-user-panel:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wpmember-user-panel-avatar {
    flex-shrink: 0;
}

.wpmember-user-panel-avatar img {
    border-radius: 50%;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.wpmember-user-panel:hover .wpmember-user-panel-avatar img {
    border-color: #007cba;
}

.wpmember-user-panel-info {
    flex: 1;
    min-width: 0;
}

.wpmember-user-panel-greeting {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.wpmember-user-panel-greeting strong {
    color: #007cba;
}

.wpmember-user-panel-level {
    margin-top: 5px;
}

.wpmember-user-panel-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.wpmember-user-panel-btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wpmember-edit-btn {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.wpmember-edit-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.wpmember-logout-btn {
    background: #f7f7f7;
    color: #666;
    border-color: #ddd;
}

.wpmember-logout-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    text-decoration: none;
}

.wpmember-user-panel-login {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.wpmember-user-panel-login p {
    margin: 0 0 15px 0;
    color: #666;
}

.wpmember-login-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wpmember-login-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* User Panel Styles */
.wpmember-user-panel-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.wpmember-user-panel-modern .wpmember-user-panel-greeting {
    color: white;
}

.wpmember-user-panel-modern .wpmember-user-panel-greeting strong {
    color: rgba(255, 255, 255, 0.9);
}

.wpmember-user-panel-modern .wpmember-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.wpmember-user-panel-modern .wpmember-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.wpmember-user-panel-modern .wpmember-logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.wpmember-user-panel-modern .wpmember-logout-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border-color: rgba(220, 53, 69, 0.8);
}

.wpmember-user-panel-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 0;
}

.wpmember-user-panel-compact {
    padding: 10px 15px;
    gap: 10px;
}

.wpmember-user-panel-compact .wpmember-user-panel-greeting {
    font-size: 14px;
}

.wpmember-user-panel-compact .wpmember-user-panel-btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Responsive adjustments for user panel */
@media (max-width: 768px) {
    .wpmember-user-panel {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .wpmember-user-panel-actions {
        justify-content: center;
        width: 100%;
    }
    
    .wpmember-user-panel-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wpmember-user-panel-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* General Styles */
.wpmember-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpmember-section {
    margin-bottom: 30px;
}

.wpmember-section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wpmember-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpmember-button:hover {
    background-color: #005177;
    color: #fff;
}

.wpmember-button.secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.wpmember-button.secondary:hover {
    background-color: #eee;
    color: #333;
}

.wpmember-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wpmember-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpmember-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpmember-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.wpmember-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Form Styles */
.wpmember-form {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.wpmember-form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    text-align: center;
}

.wpmember-form-group {
    margin-bottom: 20px;
}

.wpmember-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wpmember-form-group input[type="text"],
.wpmember-form-group input[type="email"],
.wpmember-form-group input[type="password"],
.wpmember-form-group input[type="tel"],
.wpmember-form-group select,
.wpmember-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wpmember-form-group input:focus,
.wpmember-form-group select:focus,
.wpmember-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.wpmember-form-group .description {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.wpmember-form-actions {
    margin-top: 30px;
    text-align: center;
}

.wpmember-form-links {
    margin-top: 20px;
    text-align: center;
}

.wpmember-form-links a {
    color: #0073aa;
    text-decoration: none;
}

.wpmember-form-links a:hover {
    text-decoration: underline;
}

/* Login Form */
.wpmember-login-form {
    max-width: 400px;
}

.wpmember-logged-in {
    text-align: center;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 4px;
}

/* Registration Form */
.wpmember-register-form {
    max-width: 500px;
}

.wpmember-selected-level {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 5px;
}

.wpmember-selected-level h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.wpmember-selected-level .level-price {
    font-size: 16px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 5px 0;
}

.wpmember-selected-level .level-description {
    color: #666;
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Account Page */
.wpmember-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wpmember-account-welcome {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.wpmember-account-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.wpmember-account-nav-item {
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.wpmember-account-nav-item:hover {
    color: #0073aa;
}

.wpmember-account-nav-item.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.wpmember-account-section {
    margin-bottom: 40px;
}

.wpmember-account-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wpmember-membership-info {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.wpmember-membership-info-item {
    margin-bottom: 10px;
}

.wpmember-membership-info-label {
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

.wpmember-payment-history {
    width: 100%;
    border-collapse: collapse;
}

.wpmember-payment-history th,
.wpmember-payment-history td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wpmember-payment-history th {
    font-weight: 600;
    background-color: #f9f9f9;
}

.wpmember-payment-history tr:hover {
    background-color: #f5f5f5;
}

/* Membership Levels */
.wpmember-levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.wpmember-level {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpmember-level:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wpmember-level.featured {
    border-color: #0073aa;
    position: relative;
}

.wpmember-level.featured:before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.wpmember-level-header {
    text-align: center;
    margin-bottom: 20px;
}

.wpmember-level-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.wpmember-level-price {
    font-size: 36px;
    font-weight: 700;
    color: #0073aa;
    margin: 0 0 10px;
}

.wpmember-level-price-period {
    font-size: 16px;
    color: #777;
    font-weight: 400;
}

.wpmember-level-description {
    margin-bottom: 20px;
    color: #555;
}

.wpmember-level-features {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.wpmember-level-feature {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.wpmember-level-feature:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: 700;
}

.wpmember-level-actions {
    text-align: center;
}

.wpmember-level-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.wpmember-level-button:hover {
    background-color: #005177;
    color: #fff;
}

.wpmember-level-button.current {
    background-color: #4CAF50;
}

.wpmember-level-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Checkout Page */
.wpmember-checkout {
    max-width: 800px;
    margin: 0 auto;
}

.wpmember-checkout-summary {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.wpmember-checkout-summary-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.wpmember-checkout-summary-label {
    font-weight: 600;
}

.wpmember-checkout-summary-total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.wpmember-payment-methods {
    margin-bottom: 30px;
}

.wpmember-payment-method {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.wpmember-payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wpmember-payment-method-radio {
    margin-right: 10px;
}

.wpmember-payment-method-label {
    font-weight: 600;
    margin-right: 10px;
}

.wpmember-payment-method-logo {
    height: 30px;
    margin-left: auto;
}

.wpmember-payment-method-content {
    padding-left: 25px;
}

/* Restricted Content */
.wpmember-restricted-content {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.wpmember-restricted-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .wpmember-levels {
        grid-template-columns: 1fr;
    }
    
    .wpmember-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wpmember-account-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .wpmember-account-nav-item {
        border-bottom: none;
        padding: 10px 0;
    }
    
    .wpmember-account-nav-item.active {
        border-left: 2px solid #0073aa;
        padding-left: 10px;
    }
    
    .wpmember-payment-history {
        display: block;
        overflow-x: auto;
    }
}
