/**
 * Member Dashboard Styles
 */

/* Dashboard Container */
.nef-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Override Elementor global styles with high specificity */
.nef-dashboard-container .nef-dashboard-header,
.nef-dashboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px 30px !important;
    border-bottom: 2px solid #e5e7eb !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.nef-dashboard-container .nef-dashboard-header h2,
.nef-dashboard-header h2 {
    margin: 0 !important;
    font-size: 28px !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
}

.nef-dashboard-welcome {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.nef-dashboard-role {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Tab Navigation */
.nef-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.nef-dashboard-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.nef-dashboard-tab:hover {
    color: #D5B22A;
    border-bottom-color: #D5B22A;
}

.nef-dashboard-tab.active {
    color: #D5B22A;
    border-bottom-color: #D5B22A;
    font-weight: 600;
}

/* Tab Content */
.nef-dashboard-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nef-tab-section {
    margin-bottom: 40px;
}

.nef-tab-section:last-child {
    margin-bottom: 0;
}

.nef-section-title {
    font-size: 22px;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* Event Cards */
.nef-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nef-event-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nef-event-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nef-event-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.nef-event-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.nef-event-card-title a:hover {
    color: #D5B22A;
}

.nef-event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.nef-event-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Buttons - Override Elementor styles */
.nef-dashboard-container .nef-btn,
.nef-btn {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.nef-dashboard-container .nef-btn-primary,
.nef-dashboard-container a.nef-btn-primary,
.nef-btn-primary,
a.nef-btn-primary {
    background: #D5B22A !important;
    color: #ffffff !important;
}

.nef-dashboard-container .nef-btn-primary:hover,
.nef-dashboard-container a.nef-btn-primary:hover,
.nef-btn-primary:hover,
a.nef-btn-primary:hover {
    background: #919281 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nef-dashboard-container .nef-btn-secondary,
.nef-dashboard-container a.nef-btn-secondary,
.nef-btn-secondary,
a.nef-btn-secondary {
    background: #919281 !important;
    color: #ffffff !important;
}

.nef-dashboard-container .nef-btn-secondary:hover,
.nef-dashboard-container a.nef-btn-secondary:hover,
.nef-btn-secondary:hover,
a.nef-btn-secondary:hover {
    background: #7a7b6e !important;
    color: #ffffff !important;
}

.nef-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Empty States */
.nef-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.nef-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.nef-empty-state h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 18px;
}

.nef-empty-state p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

/* Membership Badge */
.nef-membership-badge {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: #4f4f4f !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Membership Cards */
.nef-dashboard-container .nef-membership-card,
.nef-membership-card {
    background: #919281 !important;
    color: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
}

.nef-dashboard-container .nef-membership-card h3,
.nef-membership-card h3 {
    margin: 0 0 20px 0 !important;
    font-size: 24px !important;
    color: #ffffff !important;
}

.nef-membership-tier {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.nef-membership-status {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.nef-membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.nef-plan-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.nef-plan-card:hover {
    border-color: #D5B22A;
    box-shadow: 0 4px 12px rgba(213, 178, 42, 0.2);
}

.nef-plan-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.nef-plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #D5B22A;
    margin: 0 0 20px 0;
}

.nef-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.nef-plan-features li {
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.nef-plan-features li:last-child {
    border-bottom: none;
}

/* Profile Section */
.nef-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.nef-profile-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.nef-profile-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1f2937;
}

.nef-profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nef-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.nef-profile-row:last-child {
    border-bottom: none;
}

.nef-profile-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.nef-profile-value {
    color: #1f2937;
    font-size: 14px;
}

/* Facilitator Stats */
.nef-facilitator-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nef-stat-card {
    background: linear-gradient(135deg, #D5B22A 0%, #919281 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.nef-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.nef-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Event Management Table */
.nef-events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.nef-events-table th,
.nef-events-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.nef-events-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.nef-events-table td {
    color: #6b7280;
    font-size: 14px;
}

.nef-events-table tr:hover {
    background: #f9fafb;
}

.nef-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.nef-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.nef-status-publish {
    background: #d1fae5;
    color: #065f46;
}

/* Saved Events */
.nef-saved-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* WooCommerce Integration */
.nef-woocommerce-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.nef-woo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
}

.nef-woo-link:hover {
    background: #D5B22A;
    color: #ffffff;
    border-color: #D5B22A;
}

/* ===== Main Dashboard Layout ===== */
.nef-member-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.nef-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e5e7eb;
}

.nef-dashboard-header h2 {
	margin: 0;
	font-size: 28px;
	color: #1f2937;
}

.nef-membership-badge {
	display: inline-block;
	padding: 8px 16px;
	background: #D5B22A;
	color: #ffffff;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
}

.nef-dashboard-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	border-bottom: 2px solid #e5e7eb;
	overflow-x: auto;
}

.nef-tab-link {
	padding: 12px 24px;
	text-decoration: none;
	color: #6b7280;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.nef-tab-link:hover {
	color: #D5B22A !important;
	background: #f9fafb;
}

.nef-tab-link.active {
	color: #D5B22A;
	border-bottom-color: #D5B22A;
}

.nef-dashboard-content {
	background: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== Event Cards ===== */
.nef-event-card {
	display: flex;
	gap: 20px;
	padding: 20px;
	margin-bottom: 20px;
	background: #f9fafb;
	border-radius: 8px;
	border-left: 4px solid #D5B22A;
	transition: all 0.3s ease;
}

.nef-event-card:hover {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.nef-event-image {
	flex-shrink: 0;
}

.nef-event-image img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
}

.nef-event-details {
	flex-grow: 1;
}

.nef-event-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #1f2937;
}

.nef-event-title a {
	color: #1f2937;
	text-decoration: none;
}

.nef-event-title a:hover {
	color: #D5B22A;
}

.nef-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 10px;
	color: #6b7280;
	font-size: 14px;
}

.nef-event-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.nef-event-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

/* ===== Buttons ===== */
.nef-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.nef-btn-primary {
	background: #D5B22A;
	color: #ffffff;
}

.nef-btn-primary:hover {
	background: #c4a225;
}

.nef-btn-secondary {
	background: #919281;
	color: #ffffff;
}

.nef-btn-secondary:hover {
	background: #7a7b6e;
}

/* ===== Empty States ===== */
.nef-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #6b7280;
}

.nef-empty-state-icon {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.3;
}

.nef-empty-state h3 {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #1f2937;
}

.nef-empty-state p {
	margin: 0 0 20px 0;
}

/* ===== Membership Card ===== */
.nef-membership-card {
	background: linear-gradient(135deg, #D5B22A 0%, #919281 100%);
	color: #ffffff;
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 30px;
}

.nef-membership-card h3 {
	margin: 0 0 20px 0;
	font-size: 24px;
}

.nef-membership-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.nef-membership-detail-item {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 8px;
}

.nef-membership-detail-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.8;
	margin-bottom: 5px;
}

.nef-membership-detail-value {
	display: block;
	font-size: 18px;
	font-weight: 600;
}

.nef-upgrade-section {
	background: #ffffff;
	color: #1f2937;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
}

.nef-upgrade-section h3 {
	margin: 0 0 15px 0;
	color: #1f2937;
}

.nef-upgrade-section p {
	margin: 0 0 20px 0;
	color: #6b7280;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nef-dashboard-container {
        padding: 15px;
    }

    .nef-dashboard-header {
        padding: 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
    }

    .nef-dashboard-welcome {
        font-size: 22px;
    }

    .nef-dashboard-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .nef-dashboard-tab {
        border-bottom: 1px solid #e5e7eb;
        border-left: 3px solid transparent;
        top: 0;
    }

    .nef-dashboard-tab.active {
        border-left-color: #D5B22A;
        border-bottom-color: #e5e7eb;
    }

    .nef-dashboard-content {
        padding: 20px;
    }

	.nef-event-card {
		flex-direction: column;
	}

	.nef-event-image img {
		width: 100%;
		height: 200px;
	}

    .nef-events-grid,
    .nef-membership-plans,
    .nef-profile-grid,
    .nef-facilitator-stats {
        grid-template-columns: 1fr;
    }

    .nef-events-table {
        font-size: 12px;
    }

    .nef-events-table th,
    .nef-events-table td {
        padding: 8px;
    }
}

/* Loading States */
.nef-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Alerts */
.nef-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.nef-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.nef-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.nef-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ==========================================================================
   New Profile Tab Styles
   ========================================================================== */

/* Facilitator Public Profile Card */
.nef-facilitator-profile-card {
    background: #919281 !important;
    color: #ffffff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

.nef-facilitator-profile-card h4 {
    margin: 0 0 15px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.nef-facilitator-profile-card p {
    margin: 0 0 20px 0 !important;
    opacity: 0.9 !important;
    color: #ffffff !important;
}

.nef-facilitator-profile-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
}

.nef-facilitator-profile-card .nef-btn-primary {
    background: #ffffff !important;
    color: #919281 !important;
}

.nef-facilitator-profile-card .nef-btn-primary:hover {
    background: #f0f0f0 !important;
    color: #919281 !important;
}

/* Account Settings Cards */
.nef-account-settings {
    display: grid !important;
    gap: 15px !important;
}

.nef-account-setting-card {
    padding: 20px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.nef-account-setting-info h4 {
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    color: #1f2937 !important;
}

.nef-account-setting-info p {
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
}

/* ==========================================================================
   Events Management Tab Styles
   ========================================================================== */

/* Stats Cards */
.nef-dashboard-container .nef-stat-card,
.nef-stat-card {
    background: linear-gradient(to bottom right, #f4f0e8, #ffffff) !important;
    color: #272727 !important;
    padding: 25px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.nef-stat-card h3 {
    color: #272727 !important;
}

/* Past Events - 4 Column Grid */
.nef-past-events-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

/* Past event cards should be vertical (image on top, content below) */
.nef-past-events-grid .nef-event-card {
    flex-direction: column !important;
    gap: 0 !important;
}

.nef-past-events-grid .nef-event-image {
    width: 100% !important;
    margin-bottom: 15px !important;
}

.nef-past-events-grid .nef-event-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
}

.nef-past-events-grid .nef-event-details {
    width: 100% !important;
    padding: 15px !important;
}

@media (max-width: 1200px) {
    .nef-past-events-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .nef-past-events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .nef-past-events-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Form Styles - Consistent with Registration
   ========================================================================== */

.nef-form-row {
    margin-bottom: 20px !important;
}

.nef-form label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.nef-form input[type="text"],
.nef-form input[type="number"],
.nef-form input[type="email"],
.nef-form input[type="url"],
.nef-form input[type="password"],
.nef-form input[type="search"],
.nef-form input[type="tel"],
.nef-form input[type="date"],
.nef-form select,
.nef-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    line-height: 15px !important;
    color: #111827 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.nef-form input[type="text"]:focus,
.nef-form input[type="number"]:focus,
.nef-form input[type="email"]:focus,
.nef-form input[type="url"]:focus,
.nef-form input[type="password"]:focus,
.nef-form input[type="search"]:focus,
.nef-form input[type="tel"]:focus,
.nef-form input[type="date"]:focus,
.nef-form select:focus,
.nef-form textarea:focus {
    outline: none !important;
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

/* Edit Event Form - Numerical Inputs */
.nef-event-edit-form input[type="number"] {
    max-width: 200px !important;
    min-height: 36px !important;
}

.woocommerce-js .nef-event-edit-form input[type="number"] {
    max-width: 200px !important;
    min-height: 36px !important;
}

/* Search Input Fix */
.nef-search-input,
.nef-form .nef-search-input {
    flex: 1 !important;
    padding: 14px 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px 0 0 8px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    min-width: 300px !important;
}
