/* 1. Structure */
.aismartbase-dashboard-container {
	display: flex;
    flex-wrap: wrap;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    overflow: hidden;
}
.aismartbase-sidebar {
	width: 250px;
    background: #F8FAFD;
    padding: 25px 20px;
    border-right: 1px solid rgb(229, 231, 235);
}
.aismartbase-sidebar h4 {
	font-size: 18px;
	margin-bottom: 20px;
	color: #343a40;
}
.aismartbase-sidebar ul {
	list-style: none;
	padding-left: 0px!important;
}
.aismartbase-sidebar ul li {
	margin: 2px 0;
	list-style:none!important;
}
.aismartbase-sidebar ul li a {
	color: #000000;
	text-decoration: none;
	font-weight: 500;
	display: block;
	padding: 10px 15px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.aismartbase-sidebar ul li a:hover,
.aismartbase-sidebar ul li a.active {
	background-color: #D3E3FD;
    color: #000000;
}
.aismartbase-content {
	flex: 1;
	padding: 30px;
	background-color: #F2F4F7;
}
.aismartbase-section.active {
	display: block;
}
.aismartbase-section h3 {
	font-size: 28px;
    padding-bottom: 8px;
    margin-bottom: 20px;
    padding-top: 0px !important;
    margin-top: 0px;
}
.aismartbase-nav svg.icon {
    vertical-align: middle;
    margin-right: 8px;
    fill: currentColor;
}

@media (max-width: 768px) {
	.aismartbase-dashboard-container {
		flex-direction: column;
	}

	.aismartbase-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #dee2e6;
	}

	.aismartbase-content {
		padding: 20px;
	}
}

/*NOTIFICATION*/

	.aismartbase-notifications {
		background: #fff9c4;
		padding: 16px 20px;
		border: 1px solid #f0c00063;
		margin-bottom: 20px;
		border-radius: 10px;
		position: relative;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
		font-size: 15px;
		font-weight: 500;
		color: #444;
		transition: all 0.3s ease-in-out;
	}
	#aismartbase-dismiss-notification {
		position: absolute;
		top: 10px;
		right: 10px;
		background: #f0c000;
		color: #000;
		border: none;
		padding: 6px 8px;
		cursor: pointer;
		font-size: 14px;
		font-weight: bold;
		line-height: 1;
		transition: background 0.3s ease, transform 0.2s ease;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}
	#aismartbase-dismiss-notification:hover {
		background: #e6b800;
		transform: scale(1.1);
	}






/* 2. Bookmark*/
.aismartbase-section {
  border-radius: 10px;
}

.aismartbase-bookmark-item {
  border-bottom: 1px solid #eee;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.aismartbase-bookmark-item:hover {
  background-color: #f9f9f9;
}

.bookmark-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.aismartbase-content .aismartbase-bookmark-title a {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
}

.aismartbase-content .aismartbase-bookmark-title a:hover {
  color: #0073aa;
}

.aismartbase-bookmark-controls {
  display: none;
  align-items: center;
}

.aismartbase-bookmark-item:hover .aismartbase-bookmark-controls {
  display: flex;
}

.remove-bookmark, .remove-flagged {
  color: #dc3545;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.remove-bookmark:hover, .remove-flagged:hover {
  color: #a71d2a;
  text-decoration: underline;
}


.aismartbase-pagination {
  text-align: center;
  margin-top: 20px;
}

.aismartbase-pagination-link, 
.aismartbase-flagged-pagination-link,
.aismartbase-rated-pagination-link {
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #0073aa;
  border-radius: 4px;
  text-decoration: none;
  color: #0073aa;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.aismartbase-pagination-link:hover, 
.aismartbase-flagged-pagination-link:hover,
.aismartbase-rated-pagination-link:hover {
  background-color: #0073aa;
  color: #fff;
}

.aismartbase-pagination-link.current, 
.aismartbase-flagged-pagination-link.current,
.aismartbase-rated-pagination-link.current {
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

.aismartbase-bookmark-title a::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml;utf8,%3Csvg fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.aismartbase-bookmark-item:last-child {
    border-bottom: none;
}


/* Flagged */
.aismartbase-bookmark-item {
	position: relative;
	border-bottom: 1px solid #eee;
	background: #ffffff;
}
.aismartbase-bookmark-controls {
	position: absolute;
	right: 10px;
	display: none;
}
.bookmark-inner:hover .aismartbase-bookmark-controls {
	display: block;
}
.flagged_time {
	opacity: 0.2;
    padding-left: 25px;
}


.aismartbase-notifications ul {
	padding: 7px 0px 0px 0px!important;
    margin: 0px!important;
}

.aismartbase-notifications ul li {
	list-style:none!important;
}

.vote-label.badge {
	padding: 4px 10px;
	border-radius: 5px;
	font-size: 0.85em;
	font-weight: bold;
	color: #fff;
	display: inline-block;
	margin-right: 10px;
}

.voted-like .vote-label.badge {
	background-color: #28a745; /* green */
}

.voted-dislike .vote-label.badge {
	background-color: #dc3545; /* red */
}

.remove-vote {
	cursor: pointer;
	color: #0073aa;
	text-decoration: underline;
}

.remove-vote:hover {
	color: #005177;
}

/*Guest Post*/
.aikb-form-wrapper label {
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
	color: #222;
}
.aikb-form-wrapper input[type="text"],
.aikb-form-wrapper textarea,
.aikb-form-wrapper select {
	width: 100%;
	padding: 8px 10px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
}
.aikb-form-wrapper textarea {
	resize: vertical;
}
.aikb-form-wrapper input[type="submit"] {
	background-color: #0073aa;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
}
.aikb-form-wrapper input[type="submit"]:hover {
	background-color: #005177;
}
/*Dashboard*/
.stat-card {
	background: #fff;
	border: 1px solid #ddd;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: 0.3s;
}
.stat-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.stat-card h4 {
	font-size: 16px;
	color: #444;
	margin-bottom: 10px;
}
.stat-card p {
	font-size: 24px;
	font-weight: bold;
	color: #020202;
	margin: 0;
}
.form-group {
	margin-bottom: 20px;
	position: relative;
}
.form-group input[type="password"] {
	padding-right: 40px;
}
.eye-icon {
	position: absolute;
	right: 10px;
	top: 38px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	fill: #888;
}
.profile-box {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
	position: relative;
	margin-bottom: 5px;
}

.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="email"] {
	width: 100%;
	padding: 10px 40px 10px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.eye-icon {
	position: absolute;
	top: 35px;
	right: 10px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	fill: #888;
}

.success {
	color: green;
	margin-bottom: 10px;
}

.error {
	color: red;
	margin-bottom: 10px;
}

button[type="submit"] {
	background-color: #0073aa;
	color: white;
	padding: 10px 18px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

button[type="submit"]:hover {
	background-color: #005f8d;
}

/*LOGIN*/
.cdlc-container {
	max-width: 400px;
	margin: 60px auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
	padding: 40px 35px 50px;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: #333;
}

/* Title */
.cdlc-title {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
	letter-spacing: 0.02em;
}

/* Error */
.cdlc-error {
	background-color: #ffe6e6;
	color: #cc0000;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 25px;
	box-shadow: 0 0 6px rgba(204,0,0,0.3);
}

/* Input group */
.cdlc-input-group {
	position: relative;
}
.cdlc-input-group svg {
	position: absolute;
	top: 40%;
	left: 14px;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	fill: #777;
	pointer-events: none;
}
.cdlc-input-group input[type="text"],
.cdlc-input-group input[type="password"] {
	width: 100%;
	padding: 12px 15px 12px 45px;
	border-radius: 8px;
	border: 1.8px solid #ccc;
	font-size: 16px;
	font-family: inherit;
	outline-offset: 2px;
	outline-color: transparent;
	transition: border-color 0.3s ease;
}
.cdlc-input-group input[type="text"]:focus,
.cdlc-input-group input[type="password"]:focus {
	border-color: #0073aa;
	outline-color: #0073aa;
}

/* Password toggle */
.cdlc-password-toggle {
	position: absolute;
	right: 15px;
	top: 40%;
	transform: translateY(-50%);
	cursor: pointer;
	font-weight: 600;
	color: #0073aa;
	user-select: none;
	font-size: 14px;
	background: transparent;
	border: none;
	padding: 0;
}
.cdlc-password-toggle:hover {
	color: #005a87;
}

/* Remember me */
.cdlc-remember {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	font-size: 14px;
	color: #555;
}
.cdlc-remember input[type="checkbox"] {
	margin-right: 8px;
	cursor: pointer;
}

/* Submit button */
.cdlc-submit {
	width: 100%;
	background-color: #0073aa;
	border: none;
	border-radius: 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	padding: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,115,170,0.35);
	letter-spacing: 1px;
	font-family: inherit;
}
.cdlc-submit:hover {
	background-color: #005a87;
	box-shadow: 0 6px 18px rgba(0,90,135,0.6);
}

/* Footer links */
.cdlc-footer {
	text-align: center;
	margin-top: 30px;
	font-size: 15px;
}
.cdlc-footer a {
	color: #0073aa;
	text-decoration: none;
	margin: 0 8px;
	font-weight: 600;
	transition: color 0.3s ease;
}
.cdlc-footer a:hover {
	text-decoration: underline;
	color: #005a87;
}

/*Dashboard*/

.aismartbase-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.stat-card {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px;
	border-radius: 16px;
	background: #f9fafe;
	border: 1px solid #e0e6ed;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.stat-card h4 {
	margin: 0;
	font-size: 17px;
	padding: 0!important;
	text-align: left;
	margin-right: 15px;
	font-weight: 600;
}

.stat-card p {
	margin: 14px 0 0;
	font-size: 30px;
	font-weight: bold;
	text-align: left;
}

.stat-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-bookmarked { background: #007BFF; }
.icon-flagged    { background: #FF4136; }
.icon-ratings    { background: #FFC107; }
.icon-votes      { background: #e83e8c; }
.icon-guest      { background: #6F42C1; }

.stat-icon svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.aismartbase-content .wp-switch-editor {
	min-height: 23px !important;
    padding: 5px 8px;
    margin: 0px 1px 0px 0px;
    border-radius: 0px;
}

.aismartbase-content .mce-container {
    padding: 0px;
}


/************************************
* For Having Child Post inside post 
*************************************/
.aismartbase-children-tree {
    padding: 20px 30px;
    border-radius: 12px;
    background: #f9f9f9;
}

.aismartbase-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.aismartbase-children-tree ul.aismartbase-tree {
	margin-bottom: 0px!important;
}

.aismartbase-tree li {
    position: relative;
    list-style: none!important;
	margin: 0px!important;
}

.aismartbase-tree li:hover {
    border-radius: 6px;
}

.aismartbase-tree .toggle {
    cursor: pointer;
    display: inline-flex;        
    align-items: center;        
    justify-content: center;    
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 50%;
    border: 1px solid #202020;
    background-color: #fff;     
	vertical-align: middle;
}

.aismartbase-tree .icon-plus,
.aismartbase-tree .icon-minus {
    display: none;
    width: 5px;  
    height: 5px;
    stroke: #000000; 
}

.aismartbase-tree .icon-plus,
.aismartbase-tree .icon-minus {
    margin: 0;
}

.aismartbase-tree .toggle.collapsed .icon-plus { display: inline; }
.aismartbase-tree .toggle.expanded .icon-minus { display: inline; }

.aismartbase-tree a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.aismartbase-tree a:hover {
    color: #0073aa;
}

.aismartbase-tree .child-content {
    padding-left: 19px;
    border-left: 1px dashed #ddd;
	margin: 10px 0px 10px 2px;
}
.aismartbase-tree .child-content .post-content {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.aismartbase-tree li:not(:has(.toggle)) > a {
    position: relative;
    padding-left: 22px;
}

.aismartbase-tree li:not(:has(.toggle)) > a::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    top: 58%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;

    /* SVG as mask */
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'><path d='M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 26 26' xmlns='http://www.w3.org/2000/svg'><path d='M5 10.02h6m-6 4h6m2 5H3a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707v9.586a2 2 0 0 1-2 2z'/></svg>");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;

    /* Now CSS color applies */
    background-color: #8d8d8d;
}
