/* Custom CSS */

/* Image Uploader starts here */
.upload-area {
  /* border: 2px dashed #28292b; */
  padding: 20px;
  text-align: center;
  background-color: #2c2c2c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  /* border-radius: 8px; */
  position: relative;
  color: #ababab;
}

.upload-area:hover {
  background-color: #3a3a3a;
}

.upload-area i {
  margin-bottom: 10px;
}

.image-preview img {
  max-width: 100%;
  max-height: 150px;
  margin-top: 10px;
  
  border-radius: 6px;
}




/* Quill Editor custom CSS */
/* Override Quill default styles for dark mode */
.dark-editor .ql-toolbar,
.dark-editor .ql-container {
  background-color: #28292b;
  color: #ababab;
  border-color: #444;
}

.dark-editor .ql-toolbar button {
  color: #f1f1f1;
}

.dark-editor .ql-toolbar .ql-picker-label,
.dark-editor .ql-toolbar .ql-picker-options {
  color: #f1f1f1;
  background-color: #2a2a2a;
  border-color: #444;
}

.dark-editor .ql-container .ql-editor {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.dark-editor .ql-editor::before {
  color: #888;
}

/* Quill Edito CSS ends here */

/* Multi select drop down */
.multi-select-container {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  /* border-radius: 6px; */
  background-color: #28292b;
  padding: 6px;
  color: #fff;
}

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  cursor: text;
  padding: 0px 10px;
  font-weight: 400;
}

.tags-input:empty::before {
  content: attr(placeholder);
  text-transform: none !important;
  color: #ABABAB;
}

.tag {
  background-color: #0d6efd;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.tag .remove {
  cursor: pointer;
  font-weight: bold;
}

#dropdownList {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  display: none;
  max-height: 160px;
  overflow-y: auto;
  background-color: #28292b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  width: 100%;
}

#dropdownList .dropdown-item {
  color: #fff;
}

#dropdownList .dropdown-item:hover {
  background-color: #28292b;
}

/* Tags input box */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  border-radius: 0px !important;
  padding: 6px;
  color: #fff;
  min-height: 46px;
}

.tag {
  background-color: #0d6efd;
  color: white;
  padding: 4px 8px;
  border-radius: 0px !important;
  outline: none;
  display: flex;
  align-items: center;
  margin: 2px 4px;
  font-size: 0.85rem;
}

.tag .remove {
  cursor: pointer;
  margin-left: 6px;
  font-weight: bold;
  color: #fff;
}

.tag-input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  padding: 4px;
}

/* Social Icons list */
.social-icon {
  width: 36px;
  height: 36px;
  background-color: #f0f0f0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  font-size: 18px;
  margin-top: 10px;
}

.social-icon:hover {
  background-color: #FF0808 ;
  color: #fff;
}


.quill-content ul {
    list-style-type: disc !important;
    margin-left: 20px !important;
}

.quill-content ul li {
    font-size: 1rem;
    position: relative;
}

.quill-content img {
  width: 50%;
}

.quill-content a {
  color: #1a73e8;       /* Google blue */
  text-decoration: underline; 
  font-weight: 500; 
}

.quill-content a:hover {
  color: #d93025;       /* Red on hover */
  text-decoration: none;
}


.quill-content ul li::marker {
    color: red;
    font-size: 1.4em;
}

.post-small-img img{
  width: 100px;
  height: auto;
}


.post-medium-img img{
  width: 218px !important;
  height: auto !important;
}

.ql-size-large {
  font-size: 22px;
  color: #fff;
}

.ql-size-huge {
  font-size: 30px;
  color: #fff;
}

.ql-size-small {
  font-size: 14px;
  color: #fff;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 10px;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;             /* Limit modal height */
    display: flex;
    flex-direction: column;
}

.cropper-container {
    flex: 1 1 auto;               /* Take available vertical space */
    max-height: calc(90vh - 80px); /* Leave space for buttons + padding */
    overflow: auto;               /* Scroll inside if cropper too tall */
}

.cropper-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-shrink: 0;                /* Keep buttons visible */
}






