// @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

// form[formGroup] {
//   // font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
//   //   'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
//   font-size: 1.875rem;
//   line-height: 1.5rem;
//   color: #0f172a;
// }

/* Apply to everything inside the form */
// form[formGroup] * {
//   font-family: inherit;
// }

.gb-ticketactivity {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gb-ticketactivity,
.gb-ticketactivity * {
  font-family: inherit;
}

// #completionModal,
// #completionModal * {
//   font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
//     'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
//   -webkit-font-smoothing: antialiased;
//   -moz-osx-font-smoothing: grayscale;
// }

:host ::ng-deep gb-textarea,
:host ::ng-deep gb-newpicklist {
  // font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
  //   'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 12px !important;
  /* force override */
  // display: block !important;
  height: auto !important;
  // font-size: 20px;

  :host ::ng-deep gb-newpicklist .mat-mdc-floating-label {
    font-size: 16px !important; // change size
    font-weight: 600 !important; // optional
    color: #111827 !important; // optional
  }

  @media (max-width: 600px) {

    /* pierce shadow DOM of Angular component */
    :host ::ng-deep gb-newpicklist .ng-select {
      padding-bottom: 0px !important;
      margin-top: -12px !important;
      color: red !important;
      /* for testing */
    }
  }
}





/* Dialog Header */
.dialog-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  margin: 0;
}

.ticket-id {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.badges-section {
  display: flex;
  align-items: flex-end;
  /* keeps vertical alignment at bottom */
  justify-content: flex-end;
  /* moves items to right end */
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.status-icon {
  font-size: 1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #374151;
}





/* Tabs */
.tabs-container {
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
}

/* Tab trigger */
.tab-trigger {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.tab-trigger:hover {
  color: #334155;
  background-color: #e2e8f0;
}

/* Active tab trigger */
.tab-trigger.active {
  color: #0f172a;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tabs-content {
  padding: 1rem 0;
}

.tab-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.tab-trigger.active .tab-icon {
  opacity: 1;
}

/* Tab Content Layout */
.tab-content {
  display: flex;
  flex-direction: column;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md-grid-cols-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.justify-center {
  justify-content: center;
}

/* Card Components */
.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  margin-bottom: 1.5rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  // font-family: 'Inter', 'Arial', sans-serif;
  /* Better readable font */
  font-size: 0.875rem;
  /* Slightly smaller font, adjust if needed */
  line-height: 1.5rem;
  /* Adds spacing between lines */
}

.worklogcard-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  // font-family: 'Inter', 'Arial', sans-serif;
  font-size: 0.875rem;
  line-height: 0.25rem;
  /* reduced line height */
}

// .worklogcard-content gb-textarea,
// .worklogcard-content gb-time,
// .worklogcard-content gb-newpicklist {
//   margin-bottom: 4px !important; /* smaller bottom margin */
// }

// .worklogcard-content > .grid + .grid {
//   margin-top: 0.25rem !important; /* less spacing between grids */
// }


.ticket-box {
  background-color: #f8f9fa;
  /* light grey like in your screenshot */
  border-radius: 8px;
  /* rounded corners */
  padding: 12px 16px;
  /* space inside the box */
  border: 1px solid #e5e7eb;
  min-height: 266px;
  /* subtle border like the card in your image */
}

.ticket-box>div:not(:last-child) {
  margin-bottom: 1rem;
  /* Adds vertical spacing between each grid/flex block */
}

/* Typography */
.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  display: block;
  margin-bottom: 0.25rem;
}

.value {
  color: #0f172a;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.label-small {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
}

.value-small {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.capitalize {
  text-transform: capitalize;
}

/* Flex Layout */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Status Indicators */
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.status-dot-green {
  background-color: #10b981;
}

.status-dot-yellow {
  background-color: #f59e0b;
}

.status-dot-red {
  background-color: #ef4444;
}

/* Icons */
.icon-muted {
  font-size: 1rem;
  opacity: 0.6;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {

  // background-color: #2563eb;
  // border-color: #2563eb;


  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);

}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.btn-icon {
  margin-right: 8px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.w-full {
  width: 100%;
}

.justify-between {
  justify-content: space-between;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

/* Form Components */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
  margin-top: 0.25rem;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 80px;
}

/* Work Log History - Table Style with Ticket List Appearance */
.no-entries {
  text-align: center;
  padding: 3rem 0;
  color: #64748b;
  font-style: italic;
}

.work-log-table {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #ffffff;
  // font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #111827;
}

.work-log-header {
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  // grid-template-columns: 1.2fr 1fr 2fr 1.5fr 2fr 1fr;
  gap: 1rem;
  font-size: 14px; //0.875rem;
  font-weight: 600;
  color: #374151;
}

.work-log-header>div {
  color: #6b7280;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px; //0.875rem;
  text-transform: none;
  // font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.work-log-entry {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  // grid-template-columns: 1.2fr 1fr 2fr 1.5fr 2fr 1fr;
  gap: 1rem;
  transition: background-color 0.2s ease;
  align-items: start;
}

.work-log-header,
.work-log-entry {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1.5fr 1.3fr 1fr 0.5fr;
  gap: 1rem;
}

.work-log-entry:hover {
  background-color: rgba(248, 250, 252, 0.5);
}

.work-log-entry:last-child {
  border-bottom: none;
}

/* Individual Entry Field Styles - Updated to match ticket list */
.entry-date {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.entry-time {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

.entry-person {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.entry-activity {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.entry-particular {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

.entry-status {
  display: flex;
  align-items: center;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  border: 1px solid transparent;
  background-color: #ffffff;
  color: #374151;
  width: fit-content;
  white-space: nowrap;
  line-height: 1rem;
}

/* Status-specific badge colors using dynamic classes - matching image exactly */

/* Pending Status - Gray outline like "new" in image */
.status-pending {
  background-color: #d1d5db;
  color: black;
  border: 1px solid #e5e7eb;
}

/* Alloted Status - Blue solid like "in progress" in image */
.status-alloted {
  background-color: #6366f1 !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;

}

/* Completed Status - Green solid like "on-track" */
.status-completed {
  background-color: #34d399 !important;
  color: #ffffff !important;
  border: 1px solid #10b981 !important;
}

/* PostPoned Status - Orange solid */
.status-postponed {
  background-color: #fbbf24 !important;
  color: #ffffff !important;
  border: 1px solid #f59e0b !important;
}

/* CallBack Status - Purple solid */
.status-callback {
  background-color: #a78bfa !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}

/* Closed Status - Gray outline like "new" */
.status-closed {
  background-color: #9ca3af !important;
  color: black !important;
  border: 1px solid #e5e7eb !important;
}

/* Cancel Status - Red solid like "critical" and "high" in image */
.status-cancel {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}

/* Request For Cancellation - Red solid */
.status-request-for-cancellation {
  background-color: #f43f5e !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}

/* Waiting For Spares - Cyan solid */
.status-waiting-for-spares {
  background-color: #38bdf8 !important;
  color: #ffffff !important;
  border: 1px solid #06b6d4 !important;
}

.status-Reopen {
  background-color: #a78bfa !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}

.status-Acknowledge {
  background-color: #a78bfa !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}

.status-Pick {
  background-color: #a78bfa !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}


.entry-actions {
  display: flex;
  gap: 0.25rem;
}

.action-btn {
  padding: 0.25rem;
  border: none;
  background: transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background-color: #f1f5f9;
  color: #374151;
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Work Log Button Enhancement */
.work-log-btn {
  margin-top: 1rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.work-log-btn:hover {
  background-color: #2563eb;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.work-log-btn .btn-icon {
  font-size: 1.1rem;
}

// Ticket Close Style

/* === Modal Overlay === */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* top:0 right:0 bottom:0 left:0 */
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  /* black with opacity */
  padding: 1rem;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
  /* show when .open is added */
}

/* === Modal Box === */
.modal {
  background: #ffffff;
  /* white card */
  border-radius: 1rem;
  /* 16px rounded corners */
  padding: 1.5rem;
  /* 24px padding */
  width: 100%;
  max-width: 600px;
  /* same as Tailwind max-w-lg */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* === Header === */
.modal-title {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: #16a34a;
  /* green-600 */
}

.modal-description {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  /* 14px */
  color: #6b7280;
  /* gray-500 */
}

/* === Ticket Card === */
.ticket-card {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  /* gray-200 */
  border-radius: 0.50rem;
  background: #fdfdfd;
  /* gray-50 */
  overflow: hidden;
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-title {
  font-size: 1rem;
  font-weight: 600;
}

.ticket-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  /* 12px */
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}

.ticket-card-body {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 1rem;
}


/* === Form === */
.form-group {
  margin-top: 1.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.5rem;
  /* 8px */
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  resize: vertical;
}

/* === Info Box === */
.info-box {
  background: rgba(243, 244, 246, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: -1rem;
}

.info-box h4 {
  font-weight: 500;
  /* font-medium */
  margin-bottom: 0.5rem;
  /* mb-2 */
  display: flex;
  /* flex items-center gap-2 */
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  /* default heading size */
}

.info-box .icon {
  width: 1rem;
  /* h-4 */
  height: 1rem;
  /* w-4 */
  stroke: #111827;
  /* same as heading text */
  flex-shrink: 0;
}

.info-box p {
  font-size: 0.875rem;
  /* text-sm */
  color: #6b7280;
  /* muted-foreground (gray-500) */
}

.info-box span {
  font-size: 0.875rem;
  /* text-sm */
  color: #6b7280;
  /* muted-foreground (gray-500) */
}

/* === Footer === */
.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* === Buttons === */
.btn-primary {
  background: #2563eb;
  /* blue-600 */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
  /* blue-700 */
}

.btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f9fafb;
  /* gray-50 */
}

button.btn-primary:disabled {
  background-color: rgb(59 130 246 / 0.5);
  /* light blue */
  color: #fff;
  /* keep text white */
  opacity: 1;
  /* subtle dim */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;
}

// History
/* Main history wrapper */
.history-wrapper {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  // font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
  // 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;


  // * {
  //   font-family: inherit;   //all children inherit the font
  // }
}

/* Header */
.history-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb; //hr line
}

.history-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

/* Content section */
.history-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each history row */
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

/* Colored dot */
.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.history-dot--green {
  background: #22c55e;
  /* green-500 */
}

.history-dot--blue {
  background: #3b82f6;
  /* blue-500 */
}

/* Texts */
.history-row-title {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.history-row-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 2px 0 0;
}

gb-textarea {
  ::ng-deep textarea.mdc-text-field__input {
    min-height: 130px !important;
    height: 130px !important;
  }
}

.ticket-box {
  background-color: #f8f9fa;
  /* light grey like in your screenshot */
  border-radius: 8px;
  /* rounded corners */
  padding: 12px 16px;
  /* space inside the box */
  border: 1px solid #e5e7eb;
  /* subtle border like the card in your image */
}

// /* Add this to your component's CSS file */
:host ::ng-deep gb-newpicklist .formlabel {
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

:host ::ng-deep gb-textarea .formlabel {
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

:host ::ng-deep gb-time .formlabel {
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
  overflow-y: auto;
  scrollbar-width: thin;
  background-color: rgba(0, 0, 0, 0.6);
  /* soft black background */

}


.lightbox-content {
  background-color: #fff;
  border-radius: 0.5rem;
  max-width: 1155px;
  /* width of modal */
  width: 100%;

  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;


  max-height: 85vh;
  /* Responsive height */
  overflow-y: auto;
  /* Enable scrolling */
  scrollbar-width: thin;
  /* Firefox small scrollbar */
  scrollbar-color: #666 transparent;
  /* Firefox color */
  scrollbar-gutter: stable both-edges;
}

.lightbox-content::-webkit-scrollbar {
  width: 4px;
  /* thinner scrollbar */
}

.lightbox-content::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-content::-webkit-scrollbar-thumb {
  background-color: #666;
  /* scrollbar color */
  border-radius: 10px;
}

.closeicon {
  // padding-left: 749px;

  cursor: pointer;
}

.closeicon mat-icon {
  position: absolute;
  color: #333;
  /* change icon color */
  // vertical-align: middle;
  margin-bottom: 8px;
}


// attachment class
.attachment-container {
  width: 8rem;
  /* same as w-32 */
  height: 8rem;
  /* same as h-32 */
  background-color: #e5e7eb;
  /* gray-200 */
  border-radius: 0.5rem;
  /* rounded */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0.5rem;
  /* spacing between boxes */
}

.attachment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* make image fill container without stretching */
  border-radius: 0.5rem;
}

.attachment-pdf {
  width: 8rem;
  height: 8rem;
  background-color: #f3f4f6;
  /* gray-100 */
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
}

// attachment preview
.Previewmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* dimmed backdrop */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.Previewmodal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 1200px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* Preview Styles */
.preview-image {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f4f4f4;
}

.preview-pdf,
.preview-text {
  width: 100%;
  height: 700px;
  border: none;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}




.ParticularModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content box */
.ParticularModal-content {
  background-color: #ffffff;
  /* white background */
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 400px;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  /* lighter shadow */
}

/* Close button */
.previewclose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #475569;
  /* Teams blue */
  cursor: pointer;
  transition: color 0.2s;
}

.previewclose:hover {
  color: #475569;
  /* darker blue on hover */
}

.datetime-container-inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

.datetime-label {
  font-weight: 600;
  color: #000;
  /* blue labels */
}

.datetime-value {
  font-weight: 600;
  color: #475569;
  /* black value text */
}

.Activityhead {
  font-size: 20px;
  font-weight: 700;
  color: #475569;
  /* slightly lighter black/dark grey */
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  /* soft light bluish gradient */
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* center heading text */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin: -20px -30px 16px;
  position: relative;
  /* needed for close button */
  box-sizing: border-box;
}

/* Close button inside header */
.Activityhead+.previewclose {
  position: absolute;
  right: 1rem;
  /* fixed right inside header */
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #475569;
  /* subtle grey */
  cursor: pointer;
  transition: color 0.2s;
}

.Activityhead+.previewclose:hover {
  color: #111827;
  /* dark on hover */
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 650;
}

.badge-secondary {
  background: #1e40af;
  /* blue-100 */
  color: white;
  /* blue-800 */
  font-weight: 500;
  border-radius: 16px;
  padding: 0.25rem 0.75rem;
  font-size: 0.80rem;
}

.badge-success {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  // text-transform: capitalize;
  background-color: #16a34a;
  color: #ffffff;
}

.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #ffffff;
}

.priority-high {
  background-color: #ef4444;
}

.priority-medium {
  background-color: #f59e0b;
}

.priority-low {
  background-color: #10b981;
}

.priority-critical {
  background-color: #dc2626;
}

.Particular-btn {

  // width: 100px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #ffffff;



}

.Particular-btn:hover {

  background: linear-gradient(135deg, #2563eb, #1e40af);
  /* darker blue gradient */
  transform: translateY(-2px);
  /* slightly lift */
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
  /* stronger shadow */


}

.Acknowledge-box {
  position: fixed;
  bottom: 30px;
  right: 30px;

  background: linear-gradient(145deg, rgba(173, 216, 230, 0.6), rgba(176, 224, 230, 0.4));

  backdrop-filter: blur(10px);
  /* glass effect */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  font-size: 15px;
  /* slightly smaller, more minimalist */
  font-weight: 500;
  /* medium weight for modern look */
  line-height: 1.4;

  color: #34495e;
  /* dark gray instead of pure black */
  /* soft dark gray-blue text for contrast */
  padding: 16px 24px;
  border-radius: 20px 20px 20px 6px;


  /* rounded chat bubble shape */

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  animation:
    slideUp 0.4s ease-out,
    fadeOut 0.2s ease-in 6s forwards;
  z-index: 9999;
  width: 360px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

/* gentle highlight overlay for a more 3D, glossy look */
.info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* animations */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.comment-row {
  direction: rtl; //right to left alignment
  padding: 20px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.comment-row .history-dot {
  margin: 0;
  /* remove default margin */
}

#CloseModal .modal {
  max-height: 85vh;
  overflow-y: auto;
}

.rating-wrapper {
  // background: #dce8f5;
  background-color: e0e0e0;
  border-radius: 18px;
  padding: 24px 20px 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 500px;
}

.stars {
  display: flex;
  gap: 10px;
  padding-left: 2px;
}

.star {
  font-size: 48px;
  cursor: pointer;
  transition: transform 0.1s;
  user-select: none;
  line-height: 1;
}

.star:hover {
  transform: scale(1.12);
}

.star.filled {
  color: #F5C842;
  filter: drop-shadow(2px 3px 0px #b8860b);
}

.star.empty {
  color: #b0b0b0;
  filter: drop-shadow(2px 3px 0px #999);
}

// .textarea-wrapper {
//   width: 100%;
//   border-radius: 12px;
//   background: #f0f4fb;
//   box-shadow:
//     inset 2px 2px 5px rgba(160, 180, 210, 0.45),
//     inset -2px -2px 5px rgba(255, 255, 255, 0.85);
//   box-sizing: border-box;
// }
.textarea-wrapper {
  width: 100%;
  border-radius: 12px;
  background: #e0e0e0;
  box-shadow:
    inset 2px 2px 5px rgba(160, 180, 210, 0.25),
    inset -2px -2px 5px rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

.feedback-box {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  // color: #aab4c8;
  color: #b0b0b0;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  min-height: 100px;
}

.feedback-box:focus {
  color: #555;
}

.feedback-box::placeholder {
  color: #555;
}


.feedback-label {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  color: #252525;
  margin-bottom: 0.25rem;
}