/* Frontend Styles for Custom Membership - COMPLETE */
.custom-membership-dashboard {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.custom-membership-dashboard h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.dashboard-welcome {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.dashboard-section h3 {
    margin-top: 0;
    color: #495057;
    font-size: 18px;
}

.dashboard-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.dashboard-section li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-section li:last-child {
    border-bottom: none;
}

.dashboard-section li strong {
    display: inline-block;
    width: 120px;
    color: #666;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-action {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.dashboard-action:hover {
    background: #005a87;
    color: white;
}

.dashboard-action.logout {
    background: #dc3545;
}

.dashboard-action.logout:hover {
    background: #c82333;
}

/* Profile styles */
.custom-membership-profile {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.profile-avatar-container {
    margin-bottom: 20px;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e9ecef;
    overflow: hidden;
    margin: 0 auto;
}

.avatar-initials {
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.profile-role {
    margin: 10px 0 20px 0;
}

.role-badge {
    display: inline-block;
    background: #e6f2ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.profile-stats {
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.stat-item {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-action-btn {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-action-btn:hover {
    background: #005a87;
    color: white;
}

.profile-action-btn.logout {
    background: #dc3545;
}

.profile-action-btn.logout:hover {
    background: #c82333;
}

/* Restricted content */
.custom-membership-restricted-message {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
}

.restricted-content {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.restricted-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.restricted-actions .button {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.restricted-actions .login-button {
    background: #0073aa;
    color: white;
}

.restricted-actions .register-button {
    background: #f0f0f0;
    color: #333;
}

/* Not logged in message */
.custom-membership-not-logged-in {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Logout link */
.custom-membership-logout-link {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.custom-membership-logout-link:hover {
    background: #c82333;
    color: white;
}

.custom-membership-mini-dashboard {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.custom-membership-mini-dashboard.detailed {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar {
    flex-shrink: 0;
}

.mini-info {
    flex-grow: 1;
}

.mini-actions {
    flex-shrink: 0;
}

.button-small {
    padding: 5px 10px !important;
    font-size: 12px !important;
}
/* Responsive */
@media (max-width: 768px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .custom-membership-dashboard,
    .custom-membership-profile,
    .custom-membership-restricted-message {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-action-btn {
        width: 100%;
        text-align: center;
    }
    
    .restricted-actions {
        flex-direction: column;
    }
    
    .restricted-actions .button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dashboard-action {
        width: 100%;
        text-align: center;
    }
}