/* ============================================
   Modern Email Pages CSS - Redstar Hospital
   Includes Light & Dark Theme Support
   ============================================ */

/* ============================================
   Base Email Styles
   ============================================ */

.email-page-wrapper {
  background: #f5f7fa;
  min-height: calc(100vh - 60px);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme .email-card {
  border: 1px solid #3a3f4b;
}

/* ============================================
   Inbox Sidebar
   ============================================ */

.inbox-sidebar {
  background: #ffffff;
  padding: 20px;
  height: 100%;
  border-right: 1px solid #e4e7ed;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme .inbox-sidebar {
  border-right: none;
}

.compose-btn-modern {
  background: #df4d4d;
  color: white !important;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--email-transition);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.compose-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  color: white;
}

.compose-btn-modern i {
  font-size: 16px;
}

/* Navigation */
.inbox-nav-modern {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.inbox-nav-modern li {
  margin-bottom: 4px;
}

.inbox-nav-modern li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.inbox-nav-modern li a:hover {
  background: #f0f4ff;
  color: #2c3e50;
}

.inbox-nav-modern li.active a {
  background: #e8f0fe;
  color: #e74c3c;
  font-weight: 600;
}

.inbox-nav-modern li a i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.inbox-nav-modern .badge-count {
  margin-left: auto;
  background: #e74c3c;
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.inbox-nav-modern li.active .badge-count {
  background: #c0392b;
}

/* Labels Section */
.labels-section {
  padding: 20px 0;
  border-top: 1px solid #e4e7ed;
  margin-top: 10px;
}

.labels-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #95a5a6;
  margin-bottom: 15px;
  padding: 0 16px;
}

.label-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #6c757d;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.label-item:hover {
  background: #f0f4ff;
  color: #2c3e50;
}

.label-item .label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
}

.label-item .label-dot.work {
  background: #3498db;
}
.label-item .label-dot.design {
  background: #9b59b6;
}
.label-item .label-dot.family {
  background: #27ae60;
}
.label-item .label-dot.friends {
  background: #e91e63;
}
.label-item .label-dot.office {
  background: #f39c12;
}

/* ============================================
   Inbox List
   ============================================ */

.inbox-body {
  padding: 0;
}

.inbox-header-modern {
  padding: 20px 25px;
  border-bottom: 1px solid var(--email-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--email-bg-tertiary);
}

.inbox-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inbox-action-btn {
  background: var(--email-bg-secondary);
  border: 1px solid var(--email-border-color);
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--email-text-secondary);
  cursor: pointer;
  transition: var(--email-transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.inbox-action-btn:hover {
  background: var(--email-sidebar-hover);
  color: var(--email-text-primary);
  border-color: var(--email-primary-color);
}

.inbox-action-btn.active {
  background: var(--email-primary-color);
  color: white;
  border-color: var(--email-primary-color);
}

.inbox-table {
  width: 100%;
  border-collapse: collapse;
}

.inbox-table tbody tr {
  border-bottom: 1px solid var(--email-border-color);
  transition: var(--email-transition);
  cursor: pointer;
}

.inbox-table tbody tr:hover {
  background: var(--email-inbox-hover);
}

.inbox-table tbody tr.unread {
  background: var(--email-inbox-unread-bg);
}

.inbox-table tbody tr.unread td {
  font-weight: 600;
}

.inbox-table td {
  padding: 16px 12px;
  vertical-align: middle;
  color: #2c3e50;
}

.inbox-checkbox {
  width: 40px;
}

.inbox-star {
  width: 40px;
  text-align: center;
}

.inbox-star i {
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
}

.inbox-star i:hover,
.inbox-star i.starred {
  color: #ffc107;
}

.inbox-avatar {
  width: 50px;
}

.inbox-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4e7ed;
}

.inbox-avatar .avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.avatar-initial.bg-success {
  background: #27ae60;
}
.avatar-initial.bg-primary {
  background: #3498db;
}
.avatar-initial.bg-warning {
  background: #f39c12;
}
.avatar-initial.bg-danger {
  background: #e74c3c;
}
.avatar-initial.bg-info {
  background: #3498db;
}

.inbox-sender {
  min-width: 150px;
  max-width: 180px;
  font-weight: 500;
  color: #2c3e50;
}

.inbox-subject {
  color: #2c3e50;
  text-decoration: none;
}

.inbox-subject:hover {
  color: #e74c3c;
}

.inbox-preview {
  color: #6c757d;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-attachment {
  width: 40px;
  text-align: center;
  color: #95a5a6;
}

.inbox-time {
  width: 100px;
  text-align: right;
  color: #95a5a6;
  font-size: 13px;
  white-space: nowrap;
}

.mail-label {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.mail-label.work {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}
.mail-label.design {
  background: rgba(155, 89, 182, 0.15);
  color: #9b59b6;
}
.mail-label.family {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}
.mail-label.friends {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
}
.mail-label.office {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

/* ============================================
   Compose Page
   ============================================ */

.compose-container {
  padding: 25px;
}

.compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.compose-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.compose-actions {
  display: flex;
  gap: 10px;
}

.btn-send-modern {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-send-modern:hover {
  background: #219a52;
  transform: translateY(-1px);
}

.btn-discard-modern {
  background: transparent;
  color: #6c757d;
  border: 1px solid #e4e7ed;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-discard-modern:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-draft-modern {
  background: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-draft-modern:hover {
  background: #d68910;
}

/* Compose Form */
.compose-form .form-group {
  margin-bottom: 20px;
}

.compose-form label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
}

.compose-form .form-control {
  background: #f8f9fc;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  color: #2c3e50;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compose-form .form-control:focus {
  outline: none;
  border-color: #3498db;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.compose-form .form-control::placeholder {
  color: #95a5a6;
}

.compose-options {
  margin-top: 8px;
}

.compose-options a {
  color: #3498db;
  text-decoration: none;
  font-size: 13px;
  margin-right: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compose-options a:hover {
  text-decoration: underline;
}

/* Editor */
.compose-editor {
  margin-top: 20px;
}

.compose-editor .note-editor {
  background: #f8f9fc;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.compose-editor .note-toolbar {
  background: #ffffff;
  border-bottom: 1px solid #e4e7ed;
  padding: 10px;
}

.compose-editor .note-editable {
  background: #ffffff;
  min-height: 250px;
  padding: 20px;
  color: #2c3e50;
}

.compose-editor .note-statusbar {
  display: none;
}

/* File Upload */
.file-upload-wrapper {
  margin-top: 20px;
  padding: 20px;
  border: 2px dashed #e4e7ed;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-upload-wrapper:hover {
  border-color: #3498db;
  background: #f0f4ff;
}

.file-upload-wrapper i {
  font-size: 32px;
  color: #95a5a6;
  margin-bottom: 10px;
}

.file-upload-wrapper p {
  color: #6c757d;
  margin: 0;
  font-size: 14px;
}

/* ============================================
   View Mail Page
   ============================================ */

.view-mail-header {
  padding: 25px;
  border-bottom: 1px solid #e4e7ed;
  background: #f8f9fc;
}

.view-mail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-reply-modern,
.btn-forward-modern,
.btn-delete-modern,
.btn-print-modern {
  background: #ffffff;
  border: 1px solid #e4e7ed;
  padding: 10px 20px;
  border-radius: 10px;
  color: #6c757d;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reply-modern:hover,
.btn-forward-modern:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.btn-delete-modern:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-print-modern:hover {
  background: #6c757d;
  color: white;
}

/* Mail Content */
.mail-sender-info {
  padding: 25px;
  background: #ffffff;
  border-bottom: 1px solid #e4e7ed;
}

.sender-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.sender-details h4 {
  margin: 0 0 4px 0;
  color: #2c3e50;
  font-weight: 600;
}

.sender-details .sender-email {
  color: #6c757d;
  font-size: 13px;
}

.sender-details .mail-time {
  color: #95a5a6;
  font-size: 12px;
}

.mail-subject-large {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px 0;
}

.mail-body-content {
  padding: 25px;
  color: #2c3e50;
  line-height: 1.8;
}

.mail-body-content p {
  margin-bottom: 15px;
}

.mail-body-content a {
  color: #3498db;
}

/* Attachments */
.attachment-section {
  padding: 20px 25px;
  border-top: 1px solid #e4e7ed;
  background: #f8f9fc;
}

.attachment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.attachment-header span {
  font-weight: 600;
  color: #2c3e50;
}

.attachment-header a {
  color: #3498db;
  text-decoration: none;
  font-size: 13px;
}

.attachment-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.attachment-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.attachment-item:hover {
  border-color: #3498db;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.attachment-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  display: block;
  color: #2c3e50;
  font-weight: 500;
  font-size: 14px;
}

.attachment-size {
  color: #95a5a6;
  font-size: 12px;
}

.attachment-actions {
  margin-left: 12px;
  display: flex;
  gap: 8px;
}

.attachment-actions a {
  color: #6c757d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.attachment-actions a:hover {
  color: #3498db;
}

/* Reply Footer */
.reply-footer {
  padding: 20px 25px;
  border-top: 1px solid #e4e7ed;
  display: flex;
  gap: 10px;
  background: #f8f9fc;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 991px) {
  .email-page-wrapper {
    padding: 10px;
  }

  .inbox-sidebar {
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid #e4e7ed;
  }

  .inbox-table td {
    padding: 12px 8px;
  }

  .inbox-preview {
    display: none;
  }

  .inbox-sender {
    max-width: 120px;
  }
}

@media (max-width: 767px) {
  .inbox-header-modern {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .compose-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .compose-actions {
    width: 100%;
  }

  .compose-actions button {
    flex: 1;
  }

  .attachment-list {
    flex-direction: column;
  }

  .attachment-item {
    width: 100%;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-card {
  animation: fadeIn 0.4s ease-out;
}

.inbox-table tbody tr {
  animation: fadeIn 0.3s ease-out;
  animation-fill-mode: both;
}

.inbox-table tbody tr:nth-child(1) {
  animation-delay: 0.05s;
}
.inbox-table tbody tr:nth-child(2) {
  animation-delay: 0.1s;
}
.inbox-table tbody tr:nth-child(3) {
  animation-delay: 0.15s;
}
.inbox-table tbody tr:nth-child(4) {
  animation-delay: 0.2s;
}
.inbox-table tbody tr:nth-child(5) {
  animation-delay: 0.25s;
}

/* Hover Effects */
.compose-btn-modern,
.btn-send-modern,
.btn-reply-modern,
.btn-forward-modern {
  position: relative;
  overflow: hidden;
}

.compose-btn-modern::before,
.btn-send-modern::before,
.btn-reply-modern::before,
.btn-forward-modern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s,
    height 0.4s;
}

.compose-btn-modern:hover::before,
.btn-send-modern:hover::before,
.btn-reply-modern:hover::before,
.btn-forward-modern:hover::before {
  width: 300px;
  height: 300px;
}

/* Custom Checkbox */
.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.custom-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #f8f9fc;
  border: 2px solid #e4e7ed;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox:hover .checkmark {
  border-color: #3498db;
}

.custom-checkbox input:checked ~ .checkmark {
  background: #3498db;
  border-color: #3498db;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* Empty State */
.empty-inbox {
  text-align: center;
  padding: 60px 20px;
}

.empty-inbox i {
  font-size: 64px;
  color: #95a5a6;
  margin-bottom: 20px;
}

.empty-inbox h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.empty-inbox p {
  color: #6c757d;
}

/* Search in Inbox */
.inbox-search {
  padding: 15px 20px;
  border-bottom: 1px solid #e4e7ed;
}

.inbox-search .search-input {
  position: relative;
}

.inbox-search .search-input input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: #f8f9fc;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inbox-search .search-input input:focus {
  outline: none;
  border-color: #3498db;
}

.inbox-search .search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
}

/* Pagination */
.inbox-pagination {
  padding: 15px 20px;
  border-top: 1px solid #e4e7ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-info {
  color: #6c757d;
  font-size: 13px;
}

.pagination-buttons {
  display: flex;
  gap: 5px;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e4e7ed;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #6c757d;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

/* Quick Reply */
.quick-reply {
  padding: 20px;
  border-top: 1px solid #e4e7ed;
  background: #f8f9fc;
}

.quick-reply textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  background: #ffffff;
  color: #2c3e50;
  resize: none;
  min-height: 80px;
  margin-bottom: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-reply textarea:focus {
  outline: none;
  border-color: #3498db;
}

.quick-reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-reply-tools {
  display: flex;
  gap: 8px;
}

.quick-reply-tools button {
  background: transparent;
  border: none;
  color: var(--email-text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: var(--email-transition);
}

.quick-reply-tools button:hover {
  background: var(--email-sidebar-hover);
  color: var(--email-primary-color);
}

/* Online Status Indicator */
.online-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.online-status-dot.online {
  background: var(--email-success-color);
}
.online-status-dot.busy {
  background: #e74c3c;
}
.online-status-dot.away {
  background: #f39c12;
}
.online-status-dot.offline {
  background: #95a5a6;
}

/* Buddy List */
.buddy-list {
  padding: 15px 0;
  border-top: 1px solid #e4e7ed;
  margin-top: 10px;
}

.buddy-list h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #95a5a6;
  margin-bottom: 15px;
  padding: 0 16px;
}

.buddy-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #6c757d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.buddy-item:hover {
  background: #f0f4ff;
}

.buddy-item .buddy-status {
  margin-right: 10px;
}

.buddy-item .buddy-name {
  flex: 1;
  font-size: 13px;
}

.buddy-item .buddy-status-text {
  font-size: 11px;
  color: #95a5a6;
}

/* Dark Theme Overrides */
.dark-theme .email-page-wrapper {
  background: #1a1d21;
}
.dark-theme .email-card {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.dark-theme .inbox-sidebar {
  background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.dark-theme .labels-section {
  border-top: 1px solid #3a3f4b;
}
.dark-theme .labels-section h4 {
  color: #6c757d;
}
.dark-theme .label-item {
  color: #b0b3b8;
}
.dark-theme .label-item:hover {
  background: #2d323b;
  color: #e4e6ea;
}
.dark-theme .inbox-header-modern {
  background: #2d323b;
  border-bottom: 1px solid #3a3f4b;
}
.dark-theme .inbox-action-btn {
  background: #242830;
  border: 1px solid #3a3f4b;
  color: #b0b3b8;
}
.dark-theme .inbox-action-btn:hover {
  background: #2d323b;
  color: #e4e6ea;
  border-color: #3498db;
}
.dark-theme .inbox-table tbody tr {
  border-bottom: 1px solid #3a3f4b;
}
.dark-theme .inbox-table tbody tr:hover {
  background: #2d323b;
}
.dark-theme .inbox-table tbody tr.unread {
  background: #1e2a38;
}
.dark-theme .inbox-table td {
  color: #e4e6ea;
}
.dark-theme .inbox-star i {
  color: #d1d5db;
}
.dark-theme .compose-form label {
  color: #e4e6ea;
}
.dark-theme .compose-form .form-control {
  background: #2d323b;
  color: #e4e6ea;
}
.dark-theme .compose-form .form-control::placeholder {
  color: #6c757d;
}
.dark-theme .compose-editor .note-editor {
  background: #2d323b;
}
.dark-theme .view-mail-header {
  background: #1b202b;
  border-bottom: 1px solid #3a3f4b;
}
.dark-theme .btn-reply-modern,
.dark-theme .btn-forward-modern,
.dark-theme .btn-delete-modern,
.dark-theme .btn-print-modern {
  background: #242830;
  border: 1px solid #3a3f4b;
  color: #b0b3b8;
}
.dark-theme .mail-sender-info {
  background: #1f2937;
  border-bottom: 1px solid #3a3f4b;
}
.dark-theme .sender-details h4 {
  color: #e4e6ea;
}
.dark-theme .sender-details .sender-email {
  color: #b0b3b8;
}
.dark-theme .sender-details .mail-time {
  color: #6c757d;
}
.dark-theme .mail-subject-large {
  color: #e4e6ea;
}
.dark-theme .mail-body-content {
  color: #e4e6ea;
}
.dark-theme .attachment-section {
  border-top: 1px solid #3a3f4b;
  background: #2d323b;
}
.dark-theme .attachment-header span {
  color: #e4e6ea;
}
.dark-theme .attachment-header a {
  color: #3498db;
}
.dark-theme .attachment-item {
  background: #242830;
  border: 1px solid #3a3f4b;
}
.dark-theme .attachment-item:hover {
  border-color: #3498db;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.dark-theme .attachment-name {
  color: #e4e6ea;
}
.dark-theme .attachment-size {
  color: #6c757d;
}
.dark-theme .inbox-search .search-input input {
  border: 1px solid #26292d;
  background: #1b202b;
}
.dark-theme .quick-reply textarea{
  background: #242830;
  color: #e4e6ea;
}
.dark-theme .quick-reply {
  padding: 20px;
   background: #1f2937;
  border-top: 1px solid #3a3f4b;
}