/*
Theme Name: Qwsain Theme
Theme URI:  https://www.wpserveur.net
Author:     Adel Abobaker
Author URI: https://www.behance.net/adelabobaker
Template:   blocksy
Version:    1.0
License:    GNU General Public License v2 or later
*/


.wrap {
    margin: 0px !important;
}

.owl-carousel .item {

    text-align: center;
}

#personal {
    padding: 5vw 7vw;
}

#update-btn {
    padding: 7px 34px;
    margin-top: 20px !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white;
}

.custom-login-form {
    max-width: 520px;
    margin: 24px auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(17, 17, 26, .05), 0 8px 32px 0 rgba(17, 17, 26, .05);
    border: 0;
    padding: 30px;
    margin-top: 3vh !important;
    margin-bottom: 7vh !important;
    text-align: right
}

.custom-login-form label {
    font-weight: bold;
    color: #55A630;
    margin-bottom: 7px;
}

.custom-login-form [type=submit],
.custom-login-form input {
    width: 100%;
}

.custom-login-form h3 {
    font-size: 16px;
    text-align: center;
}

/* تغليف الحقل مع الأيقونة */
.input-icon-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* الحقول نفسها */
.input-icon-wrapper input[type="text"],
.input-icon-wrapper input[type="password"] {
    width: 100%;
    padding-right: 50px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    direction: rtl;
    box-sizing: border-box;
}

/* الأيقونات داخل الحقول */
.input-icon-wrapper .input-icon {
    position: absolute;
    top: 70%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon-wrapper .input-icon img {
    width: 20px;
    height: 20px;
}

#dashboardTabs,
.list-group {
    padding-right: 0px;
}

.new-post-btn {
    background-color: #007f5f !important;
}

/* Table styling */
.table {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse;
    direction: rtl;
    /* Ensures right-to-left alignment */
    text-align: right;
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}

.table tbody tr td:first-child::before {
  content: "#";
}

/* Header styles */
.table th {
    background-color: #eef6ea !important;
    color: red ;
    text-align: right;
    padding: 12px;
    border: 0px !important;
}

/* Cell styles */
.table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* Badge styles */
.badge {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 5px;
}

/* Buttons */
.btn-warning {
    font-weight: bold;
    padding: 6px 12px;
}

.btn-success {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    background: #28a745;
    color: white;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-success:hover {
    background: #218838;
}

.post-update {
    padding: 0px 20px;
}

/* References section */
.references-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.references-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.references-list li {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.post-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.post-cancel {
    border-radius: 3px !important;
    padding: 7px 30px !important;
}

.alert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.custom-reset-form {
    width: 45% !important;
    margin: 50px 0px;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(17, 17, 26, .05), 0 8px 32px 0 rgba(17, 17, 26, .05);
    padding: 30px;
    margin-top: 50px !important;
}

.custom-new-password-form {
    width: 45% !important;
    margin: 50px 0px;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(17, 17, 26, .05), 0 8px 32px 0 rgba(17, 17, 26, .05);
    padding: 30px;
    margin-top: 50px !important;
}

/* Dashboard CMS Start*/
.writer-dashboard {
    display: flex;
    min-height: 100vh;
    direction: rtl;
	padding-top: 2rem;
}

.sidebar {
	position: sticky;
	top: 0;
	border-radius: 12px 0 0 12px;
    width: 240px;
	height: 800px;
    background-color: #FFFFFF;
    color: #1E1E1E;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) -1.95px 1.95px 2.6px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) -1.95px 1.95px 2.6px;
    -moz-box-shadow: rgba(0, 0, 0, 0.15) -1.95px 1.95px 2.6px;
	z-index: 10;
}

.sidebar img.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.sidebar a span {
    margin-left: 5px;
}

.sidebar a {
    color: #55A630;
    text-decoration: none;
    padding: 10px;
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
}

.sidebar .active {
    background-color: #55A630;
    color: white;
	border-right: 5px solid #D0B54B;
}

.sidebar .active:hover {
    color: white;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background-color: white;
}

.nav-tabs {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: start;
}

.nav-tabs .nav-link.active {
    background-color: #004d26;
    color: white;
}

/* تغيير ألوان البادجات */
.badge.bg-success {
    background-color: #55A630 !important;
    /* أخضر داكن */
}

.badge.bg-warning {
    background-color: #D0B54B !important;
    /* أصفر */
    color: #000 !important;
}

.badge.bg-secondary {
    background-color: #BDBDBD !important;
    /* رمادي فاتح */
    color: #000 !important;
}

.badge.bg-info {
    background-color: #81D4FA !important;
    /* أزرق فاتح */
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #EF5350 !important;
    /* أحمر */
}

/* ألوان الأزرار */
.btn-warning {
    background-color: #F9A825 !important;
    border: none;
}

.btn-info {
    background-color: #007F5F !important;
    color: white !important;
    border: none !important;
}

.btn-success {
    background-color: #43A047 !important;
    border: none;
}

.btn-primary {
    background-color: #1976D2 !important;
    border: none;
}

.nav-link img {
    filter: grayscale(100%) brightness(0);
    transition: 0.3s ease;
}

.nav-link.active img {
    filter: none;
}

#header-top {
    display: flex;
	flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

/* تحسين المظهر العام */
.table thead.table-dark {
    background-color: #eef6ea;
    border: 1px solid #EFEFEF !important;
}
.table thead.table-dark th {
	color: #032B21;
}
.table tbody tr {
	border-bottom: 2px solid #55A630;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: white !important;
}

.dashboard-content label {
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 5px;
    display: block;
    color: #192C27;
}

.dashboard-content input[type="text"],
.dashboard-content input[type="file"],
.dashboard-content select,
.dashboard-content textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #F9F9F9;
    font-size: 16px;
}

.dashboard-content .wp-editor-wrap {
    min-height: 200px;
}

.page-buttons {
    display: flex;
	justify-content: space-between;
    gap: 20px;
}

.page-buttons .btn-primary {
    background-color: #55A630 !important;
    border: none;
    padding: 7px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0px;
}

.page-buttons .btn-secondary {
    background-color: #D0B54B !important;
    border: none;
    padding: 7px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0px;
    color: white;
}

.upload-box {
	border:2px dashed #55A630;
	padding:14px 10px;
	text-align:center;
	cursor:pointer;
	border-radius:12px;
	height: 100%;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	max-width: 60vw;
	min-height: 400px;
	width: 100%;
	margin: 0;
}

.logout-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 50%;
    z-index: 10;
    transform: translateX(50%);
	width: 80%;
	font-size: 14px;
}

.logout-btn a {
    background-color: #FE2C2C;
    color: white;
    padding: 10px 30px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
    display: block;
    text-align: center;
}

.row-icon {
    display: table-cell;
}

.logout-btn a:hover {
    color: white !important;
    background-color: black;
}

.add-new-post-btn {
    width: 100%;
    margin-bottom: 10px;
}
.top-header
{
    display: flex;
    justify-content: space-between;
}
.back-btn {

}
.back-btn a {
    padding: 7px 20px;
    background-color: #D0B54B;
    color: white;
    font-style: normal;
    text-decoration: none;
    border-radius: 8px;
}

.back-btn a:hover {
    background-color: #55A630;
    color: white;
}
.list-items {
    width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.post-section {
    display: flex;
    flex-direction: column;
    background: #f9f9f996;
    border-radius: 8px;
    margin-bottom: 15px;
}
.post-section h4
{
   background-color: #55A630;
    color: white!important;
    padding: 10px;
}
.post-row {
    display: flex;
    justify-content: flex-start;
    padding: 8px;
    border-bottom: 1px dashed #ccc;

}

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

.post-row strong {
    width: 30%;
    color: #333;
}

.post-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold !important;
}

.post-section p {
    margin: 5px 0;
    font-size: 16px;
}

.image-preview img {
    max-width: 300px;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    background: white;
}

/* Dashboard CMS End*/
#writerTabs {
    padding-right: 0px;
}

.text-center {
    vertical-align: middle;
}

.more-btn a {
    text-decoration: underline;
    color: #C72F2F;
}

#others-posts {
    margin-bottom: 30px;
}

#load-more-posts {
    background-color: #007f5f;
    border-color: #007f5f;
}

.diff-box del {
    background: #ffd6d6;
    color: #a00;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-box ins {
    background: #d6ffd6;
    color: #060;
    padding: 2px 4px;
    border-radius: 3px;
}

#revisionTabs {
    padding-right: 0px !important;
}

.conainter-text {
    height: 100%;
}

/*body[lang="ar"] {*/
/*    font-family: 'Noto Kufi Arabic' !important;*/
/*    font-weight: 400;*/
    /* Ensure the correct font weight is applied */
/*}*/

/*.arabic-text {*/
/*    font-family: 'Noto Kufi Arabic' !important;*/
/*    font-weight: 400;*/
    /* Ensure the correct font weight is applied */
/*}*/

/* Example: Targeting specific paragraphs */
/*p[lang="ar"] {*/
/*    font-family: 'Noto Kufi Arabic' !important;*/
/*    font-weight: 400;*/
    /* Ensure the correct font weight is applied */
/*    font-size: 30px;*/
/*    line-height: 125%;*/
/*    letter-spacing: 0%;*/
/*    text-align: right;*/
/*}*/

/* Example: Targeting specific headings */
/*h1[lang="ar"],*/
/*h2[lang="ar"],*/
/*h3[lang="ar"],*/
/*h4[lang="ar"],*/
/*h5[lang="ar"],*/
/*h6[lang="ar"] {*/
/*    font-family: 'Noto Kufi Arabic' !important;*/
/*    font-weight: 400;*/
    /* Ensure the correct font weight is applied */
/*}*/
/*body[lang="ar"] {*/
/*  font-family: 'Noto Kufi Arabic'!important;*/
  font-weight: 400; /* Ensure the correct font weight is applied */
/*}*/

/*.arabic-text {*/
/*  font-family: 'Noto Kufi Arabic'!important;*/
  font-weight: 400; /* Ensure the correct font weight is applied */
/*}*/

/* Example: Targeting specific paragraphs */
/*p[lang="ar"] {*/
/*  font-family: 'Noto Kufi Arabic'!important;*/
  font-weight: 400; /* Ensure the correct font weight is applied */
/*  font-size: 30px;*/
/*  line-height: 125%;*/
/*  letter-spacing: 0%;*/
/*  text-align: right;*/
/*}*/
/*h1, h2, h3, h4, h5, h6, p, a, body*/
/*{*/
/*	font-family: 'Noto Kufi Arabic'!important;*/
/*}*/
/* Example: Targeting specific headings */
/*h1[lang="ar"], h2[lang="ar"], h3[lang="ar"], h4[lang="ar"], h5[lang="ar"], h6[lang="ar"] {*/
/*  font-family: 'Noto Kufi Arabic'!important;*/
  font-weight: 400; /* Ensure the correct font weight is applied */
/*}*/
@media (max-width: 768px) {
    .drawer-header {
        background-color: white;
    }

    .drawer-content {
        background-color: white;
    }

}

@media (max-width: 768px) {
    .mobile-drawer-logo {
        text-align: center;
        padding: 15px 0 10px;
    }

    .mobile-drawer-logo img {
        max-width: 120px;
        height: auto;
    }

    .drawer-content .site-header-item:first-child {
        position: absolute;
        top: -20px;
    }
}