/*--------------------------------------------------------------
# 1. General & Typography
--------------------------------------------------------------*/

@font-face {
font-family:"Bold";
font-weight:bold !important;
src: url( "../fonts/Bold.woff" )
format( "woff" ),
format( "truetype" );
}
@font-face {
font-family:"Light";
font-weight:normal !important;
src: url( "../fonts/Light.woff" )
format( "woff" ),
format( "truetype" );
}
@font-face {
font-family:"Medium";
font-weight:normal !important;
src: url( "../fonts/Medium.woff" )
format( "woff" ),
format( "truetype" );
}


/* Base icon styling for better spacing */
.comment-manager-wrapper i,
.comment-manager-wrapper a i {
    margin-left: 8px;
}

/*--------------------------------------------------------------
# 2. Main Panel & Headings
--------------------------------------------------------------*/
.comment-manager-wrapper{
    font-family:"Light";
    line-height: 1.6;
    color: #4a5568;
    direction: rtl;
    text-align: right;
}
.comment-manager-wrapper strong {
  font-family:"Medium";
    font-weight: normal;
    color: #252438;
    font-size: 16px
}

.comment-manager-wrapper {
    padding: 20px;
    transition: all 0.3s ease;
}

.comment-manager-wrapper h2 {
    color: #1a202c;
	font-size: 22px;
    margin-bottom: 0;
}
.comment-manager-wrapper h3 {
    color: #1a202c;
	font-size: 20px;
    margin-bottom: 0;
}
.comment-manager-wrapper h4 {
    color: #1a202c;
	font-size: 18px;
    margin-bottom: 0;
}
.comment-manager-wrapper ul li {
  list-style: none;
}
.post-title-color{
   font-size: 18px;
}
.post-title-color a{
color:#252438;
transition:all 0.2s ease 0s;
}
.post-title-color a:hover{
color: #ff5d36;
transition:all 0.2s ease 0s;
}

.comment-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/*--------------------------------------------------------------
# 3. Authentication Section
--------------------------------------------------------------*/
.comment-manager-wrapper.not-logged-in {
    text-align: center;
    padding: 60px 40px;
}

.comment-manager-wrapper.not-logged-in h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.comment-manager-wrapper.not-logged-in p {
    font-size: 16px;
    font-family:"Light";
    font-weight: normal;
    color: #718096;
    margin-bottom: 30px;
}

.auth-forms-container {
    max-width: 400px;
    margin: 0 auto;
  padding: 30px;
    font-family:"Light";
    font-weight: normal;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.auth-button {
    width: 100%;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight:normal;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family:"Medium";
}

.login-button {
    background-color: #4299e1;
    color: #fff;
	transition:all 0.2s ease 0s;
}

.login-button:hover {
    background-color: #2b6cb0;
	transition:all 0.2s ease 0s;
}

.register-button {
    background-color: #38a169;
    color: #fff;
	transition:all 0.2s ease 0s;
}

.register-button:hover {
    background-color: #2f855a;
	transition:all 0.2s ease 0s;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

.form-footer a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 300;
}

.form-message {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.logout-button {
    color: #ff5d36 !important;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 16px;
    border: 2px solid #ff5d36;
	transition:all 0.2s ease 0s;
}

.logout-button:hover {
    background-color:#fff5f0;
	transition:all 0.2s ease 0s;
}

/*--------------------------------------------------------------
# 4. Statistics Panel (Card-based Layout)
--------------------------------------------------------------*/
.statistics-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 65px;
  background-color: #f4f4f463;
  padding: 30px;
  border-radius: 4px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
}

.statistics-panel h3 {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  font-size: 20px;
  color: #0d0c22;
  font-family: "Medium";
  font-weight: normal;
}

.statistics-panel .stat-item {
  border: 1px solid #e7e7e9;
  background-color: #fff;
  border-radius: 4px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.statistics-panel .stat-label {
  margin: 0 0 15px 0;
  font-size: 15px;
  color: #9e9ea7;
  font-weight: 300;
  font-family: "Light";
}

.statistics-panel .stat-value {
  font-size: 32px;
  font-family: "Medium";
  color: #4a5568;
  line-height: 1;
}

/* Color accents for specific stat items */
.stat-item.total-comments .stat-value {
  color: #4c6ef5;
}

.stat-item.total-replies .stat-value {
  color: #ffb300;
}

.stat-item.posts-count .stat-value {
  color: #84d949;
}

.stat-item.products-count .stat-value {
  color: #e005ff;
}

.stat-item.downloads-count .stat-value {
  color: #41a5fd;
}

.stat-item.latest-comment .stat-value {
  color: #fd0505;
  font-size: 18px;
}

.stat-item.latest-reply .stat-value {
  color: #05c4f1;
  font-size: 18px;
}

/*--------------------------------------------------------------
# 5. Post List & Controls
--------------------------------------------------------------*/
.post-list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 40px;
    height: auto;
}
.post-list-controls h3{
    font-size: 18px;
    color: #0d0c22;
    font-family:"Medium";
}

.sorting-options{
   color: #9e9ea7;
  font-weight: 400;
    font-family:"Light";
}
.sorting-options a {
    text-decoration: none;
    color: #718096;
    padding: 15px 30px;
    border: 2px solid #e7e7e9;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
   font-family:"Bold";
    margin: 0 5px;
}

.sorting-options a.active {
background-color: #ff5d36;
  color: #fff;
  border-color: #ff5d36;
  transition:all 0.2s ease 0s;
}
.sorting-options a.active:hover {
    background-color:#e44226;
    color: #fff;
    border-color: #e44226;
	transition:all 0.2s ease 0s;
}
.sorting-options a:hover {
    background-color:#fafafb;
	transition:all 0.2s ease 0s;
}

.post-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list-items li {
    background-color: #ffffff;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
   color: #718096;
  padding:25px 30px;
  border:1px solid #e7e7e9;
  border-radius: 4px;
  transition:all 0.2s ease 0s;
}

.post-list-items li:hover {
    background-color: #fafafb;
	transition:all 0.2s ease 0s;
}

.post-list-items .post-link {
    text-decoration: none;
    font-weight: 500px;
    font-size: 17px;
    color: #1a202c;
}

/* New, refined color palette for post types */
.post-list-items li.post-title-orange {border-right:5px solid #ff5d36; }
.post-list-items li.post-title-green {border-right:5px solid #84d949; }
.post-list-items li.post-title-blue {border-right:5px solid #41a5fd; }
.post-list-items li.post-title-purple {border-right:5px solid #805ad5; }

.comment-count {
    color: #a0aec0;
    font-size: 14px;
    margin-right: 12px;
    float: left;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
   color: #718096;
  border: 2px solid #e7e7e9;   
    font-size: 18px;
}

.pagination a.active {
    background-color: #ff5d36;
    color: #fff;
    border-color: #ff5d36;
	transition:all 0.2s ease 0s;
}
.pagination a.active:hover {
  background-color: #e44226;
  color: #fff;
  border-color: #e44226;
  transition:all 0.2s ease 0s;
}
.pagination a:hover:not(.active) {
    background:#fafafb;
	transition:all 0.2s ease 0s;
}

/*--------------------------------------------------------------
# 6. Comment Details
--------------------------------------------------------------*/
.comment-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.back-to-list {
    text-decoration: none;
    font-weight:normal;
    color:#ff5d36 !important;
    font-family: "Medium";
    transition: color 0.2s ease;
}

.back-to-list:hover {
  color: #0d0c22 !important;
  transition:all 0.2s ease 0s;
  
}

.comment-stats-panel {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 65px;
  background-color: #f4f4f463;
  padding: 30px;
  border-radius: 4px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
}
.comment-stats-panel h4{
font-size: 18px;
  color: #0d0c22;
  font-family: "Medium";
width: 100%;
position: relative;
overflow: hidden;
}

.comment-stats-panel p {
 border: 1px solid #e7e7e9;
  background-color: #fff;
  border-radius: 4px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 margin-bottom: 0;
}


/* Comment boxes and their unique styles */
.user-comments-list {
    list-style: none;
border-right: 2px solid #e7e7e9;
  height: auto;
    padding-right: 30px;
}

.user-comment-item {
    margin-bottom: 25px;
}


.user-comment-item.author-comment {
    background-color: #fffbeb;
    border-right: 4px solid #f6ad55;
}

.user-comment-item.customer-comment {
    background-color: #e2f2ff;
    border-right: 4px solid #4299e1;
}

.comment-content {
  height: auto;
    color: #718096;
  position: relative;
}
.comment-header::before {
  content: '';
  width: 17px;
  height: 17px;
  background: #09e102;
  box-shadow: 0 2px 8px 0 rgba(1, 1, 1, 0.18);
  border: 3px solid #fff;
  display: block;
  position: absolute;
  right: -40px;
  top: 5px;
  border-radius: 100%;
  transform: scale(1);
  transition: all 0.2s ease-in-out;
}
.comment-replies .comment-header::before {
  background: #999;
}

/* New header and metadata styles */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px; /* New spacing property */
}

.author-icon i {
    font-size: 1.2rem;
    color: #2d3748;
}

.author-name {
    font-weight: bold;
    font-size: 16px;
    color: #2d3748;
}

.author-role {
    background-color: #a0aec0;
    color: #fff;
    font-size: 14px;
    padding: 0 10px;
    border-radius: 5px;
    font-weight: 500;
    height: 30px;
    line-height: 30px;
}

.comment-date {
    font-size: 14px;
    color: #718096;
}
.comment-text{    
font-size: 14px;
overflow: hidden;
background: #f4f4f463;
border-radius: 4px;
padding: 30px;
margin-bottom: 30px;
}
.comment-replies {
    font-size: 14px;
}
.comment-replies ul {
    font-size: 14px;
    margin: 0;
}
/*--------------------------------------------------------------
# 7. Form Elements & Buttons
--------------------------------------------------------------*/
.reply-button{
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px auto;
    font-size: 14px;
    font-family:"Medium";
    float: left;
}
.submit-reply-button {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    font-family:"Medium";
}

.reply-button {
background-color: #ff5d36;
  color: #fff;
 border-color: #ff5d36;
 transition:all 0.2s ease 0s;
}

.submit-reply-button {
    background: #08aeff;
    color: #fff;
	transition:all 0.2s ease 0s;
}

.reply-button:hover{
  background-color: #e44226;
  border-color: #e44226;
  transition:all 0.2s ease 0s;
}
.submit-reply-button:hover{
  background:#0e9fe6;
  transition:all 0.2s ease 0s;
}

.reply-form {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0px;
}

.reply-textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #cbd5e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.reply-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.message.success {
    color: #38a169;
    font-weight: 500;
}

.message.error {
    color: #e53e3e;
    font-weight: 500;
}

/*--------------------------------------------------------------
# 8. Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .comment-manager-wrapper {
        padding: 25px;
    }

    h2, h3, h4 {
        margin-bottom: 15px;
    }

    .post-list-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .sorting-options {
        margin-top: 15px;
    }

    .post-list-items li,
    .user-comment-item {
        padding: 20px;
    }
}