/* assets/css/leaderboard.css */

/* Leaderboard Styles */
.mp-leaderboard {
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mp-leaderboard h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.mp-leaderboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-leaderboard ul li {
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    border-left: 5px solid #4caf50;
}

.mp-leaderboard ul li strong {
    color: #222;
}

.mp-leaderboard p {
    text-align: center;
    color: #666;
	padding: 74px 35px 50px 35px;
}

/* Member Settings Form Styles */
.mp-member-settings {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f4f8fb;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mp-member-settings input[type="text"],
.mp-member-settings input[type="number"] {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin-top: 5px;
}

.mp-member-settings input[type="submit"] {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.mp-member-settings input[type="submit"]:hover {
    background: #45a049;
}

.mp-member-settings label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}
/* indicator lights */
.mp-user-entry {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
}

.mp-user-indicators, .mp-user-quit-date {
    text-align: center;
    margin-bottom: 0.5rem;
	width: 15%;
}
 .mp-user-nickname{
	width: 20%;
}
.mp-lights {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
}
.mp-private{
	margin: 0;
	margin-top: 0 !important;
}
.non-progress-bar {
    width: 20%;
}
.progress-bar-container.mp-private, .mp-quit-date.non-progress-bar, .mp-indicators.mp-private.non-progress-bar {
    text-align: center;
}
.mp-private > small, .mp-private > span > small {
    background: #e9f0fd;
    padding: 3px 8px;
    border: 1px solid #c7dafb;
    border-radius: 5px;
}
.mp-light {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.mp-light-placeholder { background-color: #ddd; }
.mp-light-red        { background-color: #dc3545; }
.mp-light-yellow     { background-color: #ffc107; }
.mp-light-green      { background-color: #28a745; }

/******************** NEW START ****************************/

.mp-leaderboard-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 0 !important;
	list-style: none;
}
ul.mp-leaderboard-list li.mp-leaderboard-header strong{
	color: #072b69;
}
.mp-leaderboard-header,
.mp-user-entry {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	border-bottom: 1px solid #eee;
}

.mp-leaderboard-header {
	font-weight: bold;
    background: #bccef58c !important;
    border: 1px solid #4c59af61;
    border-left: 5px solid #4c59af !important;
}

.mp-leaderboard-header .mp-user-indicators {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.mp-user-indicators .mp-light {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-block;
}

.mp-light-red    { background-color: #dc3545; }
.mp-light-yellow { background-color: #ffc107; }
.mp-light-green  { background-color: #28a745; }
.mp-light-placeholder { background-color: #ccc; }

.progress-bar-container {
	width: 40%;
	position: relative;
}
.progress-bar-container.private, .mp-quit-date.private, .mp-indicators.private {
    margin: 0;
}
.progress-bar-bg {
	background: #e0e0e0;
	border-radius: 20px;
	overflow: hidden;
	height: 12px;
	position: relative;
}

/* .progress-fill-mask {
	background: #007bff;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
} */

.progress-indicator {
	position: absolute;
	top: -6px;
	width: 12px;
	height: 24px;
	background: #007bff;
	border-radius: 50%;
	transform: translateX(-50%);
}

.progress-percent {
	font-size: 0.85em;
	text-align: right;
	margin-top: 4px;
}


/**********************  END ***************************/
/* Progress Bar Styles */
.progress-bar-container {
    margin-top: 8px;
}

.progress-bar-bg {
    position: relative;
    height: 12px;
    border-radius: 15px;
	overflow: visible;
    background: linear-gradient(to right, #ff4d4d 0%, #ff8533 25%, #ffcc00 50%, #4caf50 75%);
}

.progress-fill-mask {
    position: absolute;
    top: 0;
	right: 0;
    height: 100%;
    background-color: #e0e0e0; /* Gray mask over unfilled part */
    z-index: 2;
    transition: width 0.5s ease-in-out;
}

.progress-fill {
    height: 100%;
    border-radius: 15px;
    /* background-image: linear-gradient(to right, #ff4d4d, #ff8533, #ffcc00, #85e085);*/
    transition: width 0.5s ease-in-out;
}

/* Color classes */
.progress-fill.red {
    background-color: #ff4d4d;
}

.progress-fill.orange {
    background-color: #ff8533;
}

.progress-fill.yellow {
    background-color: #ffcc00;
}

.progress-fill.green {
    background-color: #4caf50;
}
/***/

.progress-indicator {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 3px solid #4caf50;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.mp-legend{
	margin: 20px auto;
}
.progress-percent {
    font-size: 16px;
    text-align: right;
    color: #091027;
    font-weight: 500;
    margin-top: 4px;
}

.mp-legend-icons, .mp-legend-titles div{	
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 3px;
}

.mp-legend-icons .fas, .mp-legend-titles div{
	display: flex;
    justify-content: space-around;
    margin: auto;
}
.mp-legend-titles{
	display: flex;
	justify-content: space-between;	
}

.mp-legend-icons{
	font-size: 21px;
	color: #7ea0bc;
}
.mp-legend-titles div{
    color: #7ea0bc;
    font-size: 13px;
    font-weight: bold;
}
.mp-encouragement-note{
	width: 75%;
    display: block;
    margin: auto;
    color: grey;
	padding: 10px;
}
@media (max-width: 768px){
	.mp-user-nickname, .mp-user-quit-date, .mp-user-indicators, .progress-bar-container{
		width: 100%;
        text-align: center;
	}
	.mp-leaderboard ul li{
		display: block;
	}	

	ul.mp-legend li{
		margin: auto;
		width: 40%;
	}
	.mp-legend-titles div{
		font-size: 11px;
	}
	.mp-legend{
		width: 100% !important;
	}
	.mp-insights-title h3{
		font-size: 20px;
	}
	.non-progress-bar {
		width: 100% !important;
		padding: 5px !important;
	}
	.progress-bar-container.mp-private, .mp-quit-date.non-progress-bar, .mp-indicators.mp-private.non-progress-bar {
		line-height: 13px;
		margin-bottom: 4px;
	}
}

@media (max-width: 1280px){

	.progress-bar-container{
		font-size: 15px;
	}
	.progress-percent{
		font-size:unset;
	}
	.single-content .mp-leaderboard ul{
		padding: 0;
	}
	.mp-leaderboard{
		padding: 0;
	}

	.mp-test-locked, .mp-test-locked-info{
		width: 90%;
	}
	
	.mp-indicator-grid {
		max-width: 100% !important;
/* 		font-size: 13px !important;
		font-weight: bold !important;  */
	}
	.mp-section-title{
		width: 80%;
	}
	.mp-user-entry div:not(.progress-indicator):not(.progress-fill-mask){
        width: 100% !important;
        padding-top: 3px !important;
        margin-top: 4px !important;
	}

}

@media (min-width: 1281px){
	.progress-bar-container{
		width: 50%;
        display: block;
	}
	.mp-test-locked, .mp-test-locked-info{
		width: 70%;
	}
	.mp-legend{
		width: 50%;
	}
	.mp-section-title{
		width: 40%;
	}
}

.page page-id-1824 li{
	padding: 20px 0 15px 0;
    border-bottom: 1px solid #d0e3eb;
    border-top: 1px solid #d0e3eb;
}

.mp-test-locked {
    background: #fffdf0;
    border: 1px solid #f9c748;
    padding: 15px;
    border-radius: 8px;
    color: #b27c00;
    text-align: center;
    margin: auto;
}
.mp-test-locked-info{
	background: #f1fff0;
    border: 1px solid #48f94c;
    padding: 15px;
    border-radius: 8px;
    color: #00b226;
    text-align: center;
    margin: 20px auto;
}
.mp-test-unlocked {
    background: #f0fff0;
    border: 1px solid #5cb85c;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.mp-quiz-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
/* Members Area */
.entry-content.mp-members-area{
    padding: 40px 25px !important;
}
.welcome-heading{
	text-align: center;
	padding: 10px;
	color: #0099ff;
}
.entry-content.mp-members-area ul{
	list-style: none;
}
.entry-content.mp-members-area ul li {
    padding-top: 20px;
}
.page-template-page-eass-premium-members-area.loggen-in{
	background-color: #e5f1ff !important;
}	
.welcome-note-row{
	text-align: center;
    background-color: #e4effd;
    border: 1px solid #6d9dfd;
	border-radius: 5px;
	margin-bottom: 0;
	padding: 5px 10px;
}

.welcome-note-row h1{
	color: #072b69;
}
p.welcome-note{
    font-size: 18px;
    color: #072b69;
    margin-bottom: 5px;
    margin-top: 5px;
}


/* Indicators */
.mp-insights-title h3 {
	/* color: #5375d1; */
	color: #072b69;
    font-weight: 100;
    font-size: 24px;
    padding: 12px;
    font-weight: bold;
}
.mp-section-title{
	gap: 15px;
    margin: 30px auto;
}
.mp-section-title h4{
    margin: 10px auto 0;
    color: #072b69;
    font-size: 20px;
}
.mp-section-title::before, .mp-section-title::after{
	content: '';
    flex: 1;
    border-bottom: 1px solid #5375d1;
    width: 30%;
	margin-top: 10px;
}
.mp-insights-title{
  margin: 30px 0;	
}
.mp-insights-title, .mp-section-title{
  display: flex;
  align-items: center;
  text-align: center;
}

.mp-insights-title::before,
.mp-insights-title::after {
	content: '';
    flex: 1;
    border-bottom: 2px solid #9dafe6;
    margin: 0 15px; /* space between line and text */
}

.mp-insights-title span {
  font-weight: bold;
  font-size: 20px;
  color: #333;
}
.mp-indicator-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.mp-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.mp-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 6px;
    border: 2px solid #ccc;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.mp-indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin: 20px auto 0 auto;
    border: 1px solid #8e7eda;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.mp-indicator-grid .fa-solid, .mp-indicator-grid .fas{
	font-weight: 900;
    font-size: 25px;
    padding: 5px;
    color: #072b69;
}
.mp-leaderboard-header .fas{
	color: #072b69;
}
.mp-leaderboard-header i{
	    font-size: 18px !important;
}
.mp-leaderboard-header .progress-bar-container {
    margin: 0;
    text-align: center;
}
.mp-header-row{
    display: contents; /* Keeps grid structure intact */
}
.mp-header-row .header{
	background-color: #ceceef;
	display: inline-grid;
	font-size: 15px;
}
.mp-user-quit-header {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin: 15px auto 50px auto;
    border: 1px solid #9fe59b;
    border-radius: 8px;
    font-size: 18px;
    background-color: #d9ffeb;
    padding: 10px;
    color: #00a31d;
}
/* Apply border-radius only to top corners */
.mp-header-row .header:first-child {
    border-top-left-radius: 8px;
}
.mp-header-row .header:last-child {
    border-top-right-radius: 8px;
}
.mp-indicator-grid div {
    padding: 0 6px;
}
.mp-indicator-grid .header {
    border-bottom: 1px solid #8e7eda;
	padding: 3px;
}
.mp-indicator-grid .value {
    font-size: 25px;
    color: #949494;
	padding-top: 5px;
}

.header img.emoji{
	display: inline !important;
    border: none !important;
    box-shadow: none !important;
	height: 40px !important;
	margin: 0 auto 5px auto !important;
    width: 3em !important;
    vertical-align: -14px !important;
    background: none !important;
    padding: 0 !important;
    text-align: center;
    align-items: center;
}

.value.no-value {
    opacity: 0.3;
    color: #949494;
}

.mp-light-circle {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 10px auto 0 auto;
}
.mp-light-circle.gray {
    background-color: #6c7c86;
}
.mp-light-circle.red {
    background-color: #e74c3c; 
}
.mp-light-circle.yellow {
    background-color: #f1c40f; 
}
.mp-light-circle.green {
    background-color: #2ecc71;
}

/* CSS for MP settings page */
        .mp-tabs { display: flex;}
        .mp-tab-button {
			position: relative;
			padding: 10px 20px;
			border: 1px solid #bbd0fd;
			margin: 0px 4px;
			font-weight: bold;
			background-color: #d6dfed;
			cursor: pointer;
			border-radius: 5px 5px 0 0;
			margin-right: 5px;
			transition: background 0.3s, color 0.3s;
			color: #072b69;
			border-bottom: 0;
        }
		.mp-tab-button.active::after {
			content: "";
			position: absolute;
			bottom: -2px; /* Adjust to match border thickness */
			left: 0;
			width: 100%;
			height: 2px; /* Same as .mp-tab-content border */
			background: #f2f7ff;; /* Same as button background */
		}
		.mp-tab-button:hover{
			background: #ebf2ff;
			border-color: #ccc #ccc #fff;
			font-weight: bold;
			/* border-bottom: 3px solid #0194fc;*/

		}
        .mp-tab-button.active {
			background: #f2f7ff;
			border-color: #ccc #ccc #fff;
			font-weight: bold;
			/* border-bottom: 3px solid #0194fc;*/
			}

		.mp-tab-content {
			display: none;
			width: 100%;
			margin: 0 auto;
		}
		.mp-tab-content.active {
			display: block;
		}
        .mp-settings-form,
        .s2member-profile-form {
			max-width: 90%;
			padding: 15px;
			background: #f2f7ff;
			border: 1px solid #cdd4ea;
			border-radius: 8px;
        }
		form.mp-settings-form{
			margin: auto;
		}
        .mp-settings-form p,
        .s2member-profile-form p {
            margin-bottom: 1em;
        }

        .mp-settings-form label,
        .s2member-profile-form label {
            display: block;
            margin-bottom: 5px;
        }
		
		.mp-settings-form label.mp-label-title, .s2member-profile-form label{
			font-weight: bold;
		}

        .mp-settings-form input[type="text"],
        .mp-settings-form input[type="number"],
        .mp-settings-form input[type="submit"],
        .s2member-profile-form input[type="text"],
        .s2member-profile-form input[type="email"],
        .s2member-profile-form input[type="password"],
        .s2member-profile-form select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }

        .mp-settings-form input[type="checkbox"] {
            margin-right: 5px;
        }

        .mp-save-msg {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            padding: 10px;
            margin-bottom: 10px;
            color: #155724;
            border-radius: 5px;
            max-width: 500px;
			margin: 20px auto 30px auto;
        }
		.mp-settings-wrapper {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}
		.mp-save-msg {
			transition: opacity 1s ease;
		}
		.mp-save-msg.fade-out {
			opacity: 0;
		}
