@font-face {
  font-family: 'IRANSansWeb';
  src: url('../fonts/IRANSansWeb.eot');
  src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype');
  src: local('☺'), url('../fonts/IRANSansWeb.woff') format('woff'),
    url('../fonts/IRANSansWeb.ttf')  format('truetype'),
    url('../fonts/IRANSansWeb.svg#IRANSansWeb') format('svg');
  font-weight: 400;
  font-style: normal;
}
@keyframes placeholderGlow{
    0%{box-shadow:0 0 0 rgba(102,126,234,0);}
    50%{box-shadow:0 0 12px rgba(102,126,234,.35);}
    100%{box-shadow:0 0 0 rgba(102,126,234,0);}
}

.typing-placeholder{
    animation:placeholderGlow 2s ease-in-out 2;
}
.title-pro{
    display:block;
    color:#088451;
    font-size:15px;
    font-weight:700;
    padding:4px 6px;
    margin:15px 0;
    border-right:5px solid #088451;
    border-bottom:1px solid #dcdcdc;
    background:#fdfcfc;
}

h3 ,h2 {padding-right:20px;
   line-height:45px;
   color:#123456;
  border-radius:10px;
   border-bottom: 1px solid rgba(224,213,213, 0.3);
  box-shadow: 
  rgba(224,213,213, 0.3) 5px 5px, 
  rgba(224,213,213, 0.1) 10px 10px,
  rgba(224,213,213, 0.05) 15px 15px;
}

.comment-card{
    border:1px solid #e5e5e5;
    border-radius:8px;
    margin-bottom:10px;
    overflow:hidden;
}

.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 15px;
    background:#498FAD;
    cursor:pointer;
}

.comment-header:hover{
    background:#74CFA7;
}

.comment-title{
    font-weight:600;
    color:#fff;
}
.comment-title:hover{
    font-weight:600;
     color:#123456 !important;
}
.comment-actions{
    display:flex;
    gap:6px;
}
.comment-body{
    padding:15px;
}

/* استایل کلی جدول‌ها */
.table {
    border-collapse: collapse;
    width: 100%;
    font-family: Vazir, Tahoma, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* هدر جدول */
.table thead {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color:#334155;
    font-weight:700;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* هدر جدول */
.table tfoot {
    background: linear-gradient(90deg, #2c2cf7, #b6b6ed);
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* سطرهای جدول یکی در میان رنگ */
.table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* ستون‌ها */
.table td, .table th {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
/*کلاس نظر */
.comment-box{
    padding:15px;
    margin-bottom:15px;
    border-radius:6px;
    border:2px;
    background:#fcfdfd;
}

.admin-reply{
    margin-top:10px;
    padding:2px 15px;
    border-right:4px solid #28a745;
    background:#f8f9fa;
    border-radius:4px;
}
.comment-box p{
  text-align:right !important;
  margin-right:15px !important;
}

.admin-reply p{
  text-align:right !important;
  margin-right:15px !important;
}
/* وضعیت کاربر */
.badge {
    padding: 5px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
}
.badge-success {
    background-color: #28a745;
}
.badge-danger {
    background-color: #dc3545;
}

/* هاور روی ردیف */
.table tbody tr:hover {
    background-color: #f1f1f1;
}

/* input */
input:focus{
    outline: 0 none;
}
textarea{
  float:right;  
  height: 135px;
  padding: 2px 15px;
  margin: 8px 0px;
  display: inline-block;
  border:none;
  border-bottom: 3px solid #007f3f;
  border-radius: 8px;
  box-sizing: border-box;
  background:#fcfbf7;
}
input[type=text]::placeholder {
  font-size: 17px; 
  color:#123456;
  opacity: 1;
}

input[type=text] ::-webkit-input-placeholder {
    font-size: 17px;
    color: #123456;
}

input[type=text] {
  float:right;  
  width: 50%;
  height: 35px;
  padding: 2px 15px;
  margin: 8px 0px;
  display: inline-block;
  border:none;
  border-bottom: 3px solid #007f3f;
  border-radius: 8px;
  box-sizing: border-box;
  background:#fcfbf7;
}

ul.pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.pages-list li {
    background: #f5f5f5; /* بک‌گراند کم‌رنگ */
    margin-bottom: 10px;
    padding: 2px 15px;    height: 57px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

ul.pages-list li a {
        width: 70%;
    text-decoration: none;
    color: #333;
}
ul.pages-list li a:hover {  color: #fff;}

ul.pages-list li a.clear-logs {
    background: #82cca6;
    margin-bottom: 15px;
    line-height: 25px;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.2s;
}

ul.pages-list li a.clear-logs:hover {
    background: #369664;
}

.clear-logs {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #179e58, #37845c);
    color: #fff !important;
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.clear-logs:hover {
    background: linear-gradient(90deg, #37845c, #179e58);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}
.btn-clear-logs {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #e74a3b, #c0392b);
    color: #fff !important;
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-clear-logs:hover {
    background: linear-gradient(90deg, #c0392b, #922b21);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

.pop .main{
  float: right;
  width: 33.3%;
  margin-bottom: 10px;
}
.pop .main2{
  float: right;
  width: 100%;
  margin-bottom: 10px;
}
.main2 .field{
  float: right;
  width: 100%;
}
.main .field{
  float: right;
  width: 100%;
}
.field label{
  width: 98%;
  float: right;
  margin-top: 5px;
  font-size: 13px;
  color: #505050;
}
.field .input{
  width: 100%;
  float: right;
}
.errpop{
  width: 100%;
  margin-top: 30px;
  padding:15px;
  border-radius:10px;
  background:#640964;
  box-shadow: 
  rgba(240, 46, 170, 0.3) 5px 5px, 
  rgba(240, 46, 170, 0.1) 10px 10px,
  rgba(240, 46, 170, 0.05) 15px 15px;
}
.errpop h3{
  margin: -1px -1px 13px -1px;
  padding: 10px 7px;
  background: rgba(240, 46, 170, 0.3);
  color: #fff;
  font-size: 16px;
}
.errpop p{
  font-size: 13px;
  padding: 1px 10px;
  color: #f1f1f1;
  border-right: 10px solid rgba(240, 46, 170, 0.3);
  margin: 8px 0px;
  line-height: 23px;
}
.errpop a{
  color: #f1f1f1;
  text-decoration: none;
}
.Blocks{width:100%;float: right;border-radius: 5px;}
.icon-delete{float: left;padding:10px;} 
.icon-contact{float: left;padding:10px;}

/* Container کلی محتوا */
.contentpageaddon-container {
    max-width: 100%;
    margin: 5px auto;
    padding: 25px;
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(110,115,221);
    font-family: 'iransans', sans-serif;
    line-height:28px ;
    text-align: justify;
}

/* عنوان صفحه */
.contentpageaddon-container h2 {
    font-size: 28px;
    color: #0a2eae;
    margin-bottom: 15px;
    border-bottom: 2px solid #0a2eae;
    padding-bottom: 5px;
}

/* متن محتوا */
.contentpageaddon-container div {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
}

/* لیست صفحات */
.contentpageaddon-container ul {
    list-style: none;
    padding-left: 0;
}

.contentpageaddon-container ul li {
    margin-bottom: 8px;
}

.contentpageaddon-container ul li a {
    color: #1561e6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contentpageaddon-container ul li a:hover {
    color: #0a2eae;
    text-decoration: underline;
}

/* پیام وقتی صفحه‌ای نیست */
.contentpageaddon-container p {
    font-size: 16px;
    color: #888;
    text-align: center;
    margin-top: 30px;
}
.comment-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-form-row input {
    width: 50%;
    box-sizing: border-box;
}

.comment-form-full {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.editor-toolbar{
    margin:15px 0;
}

.editor-btn{
    padding:8px 15px;
    margin-left:5px;
    cursor:pointer;
}

.content-editor{
    width:100%;
    height:500px;
    resize:vertical;
    direction:rtl;
    text-align:right;
    padding:15px;
}


@media (max-width: 768px) {
    .comment-form-row {
        flex-direction: column;
    }

    .comment-form-row input {
        width: 100%;
    }
}
/* ===============================
   LAYOUT دو ستونه هوشمند
=================================*/

.post-layout{
    position:relative;
}

/* تصویر */
.post-image{
    float:left;
    width:45%;
    max-width:500px;
    margin-top:5px;
    margin-right: 30px;
    margin-bottom: 10px !important;
}

.post-image img{
    width:100%;
    height:350px;
    margin-bottom: 20px !important;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* متن */
.post-content-main{ 
    margin-left: 30px;
    font-size:15px;	
    line-height:2.1;
    color:#334155;
    font-family:IRANSans !important;
}

/* وقتی متن از تصویر رد شد → خودکار فول عرض */
.post-content-main::after{
    content:"";
    display:block;
    clear:both;
}

/* پاراگراف‌ها */
.post-content-main p{
    margin-bottom:18px;
}
                  
.text-col{flex:0 0 65%;text-align:right;padding:10px}                             
.img-col{flex:0 0 35%;text-align:left;padding:10px}                               
.img-col img{width:100%;height:auto;display:block;border-radius:6px}              
@media(max-width:768px){.flex-content-box{flex-direction:column}                                    
.text-col,.flex-content-box .img-col{flex:0 0 100%;text-align:center}}            
.code-block {position: relative; color: #eee; padding: 10px; border-radius: 6px; overflow-x: auto;} 
.copy-btn { position: absolute; top: 5px; right: 5px; background: #444; color: #fff;                
border: none; padding: 3px 8px; font-size: 12px; cursor: pointer; border-radius: 4px;} 
/* ===============================
   موبایل
=================================*/

@media (max-width:900px){

    .post-image{
        float:none;
        width:100%;
        max-width:100%;
        margin:0 0 20px 0;
    }

    .post-image img{
        height:auto;
    }

}