/* ==========================================================
   style-v18.css — إضافات قسم السفر + تقسيم الصادر + الأفاتار
   ألصق هذا الملف مباشرة بعد style.css في <head>
   ========================================================== */

/* ===== Outgoing type tabs ===== */
.out-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.out-type-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-soft);
  transition: all 0.2s;
}
.out-type-tab:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}
.out-type-tab.active {
  background: var(--turq-gradient);
  color: #fff;
  border-color: var(--turquoise);
  box-shadow: var(--shadow-glow-turq);
}
.badge-out-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
  color: #fff;
}

/* ===== Travel section ===== */
.travel-dropzone {
  border: 2.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card-soft);
  margin-bottom: 16px;
}
.travel-dropzone:hover,
.travel-dropzone.drag-over {
  border-color: var(--turquoise);
  background: rgba(8, 145, 178, 0.05);
  transform: scale(1.005);
}
.tdz-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.tdz-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.tdz-hint {
  font-size: 12px;
  color: var(--muted);
}

.travel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.travel-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.tfile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: grab;
}
.tfile-item:hover {
  border-color: var(--turquoise);
  box-shadow: var(--shadow-md);
}
.tfile-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.tfile-item.drag-target {
  border-color: var(--green);
  border-style: dashed;
  background: rgba(16, 185, 129, 0.05);
}

.tfile-handle {
  font-size: 18px;
  color: var(--muted-light);
  cursor: grab;
  user-select: none;
}
.tfile-order {
  min-width: 28px;
  height: 28px;
  background: var(--navy-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.tfile-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tfile-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.tfile-info {
  flex: 1;
  min-width: 0;
}
.tfile-name {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tfile-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.tfile-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.travel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.travel-actions-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== Result box ===== */
.travel-result {
  margin-top: 20px;
  background: var(--green-gradient);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.travel-result-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tr-left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tr-icon {
  font-size: 32px;
}
.tr-title {
  font-weight: 800;
  font-size: 15px;
}
.tr-meta {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 4px;
}
.tr-actions .btn {
  background: rgba(255,255,255,0.2) !important;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  color: #fff !important;
}
.tr-actions .btn:hover {
  background: rgba(255,255,255,0.3) !important;
}

/* ===== PDF page edit modal ===== */
.pdf-page-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: var(--card);
  border-radius: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* ===== TOP BAR — profile chip with avatar ===== */
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #fff;
  font-family: 'Cairo', sans-serif;
}
.profile-chip:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--turq-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-chip-name {
  font-weight: 700;
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Profile page — big avatar upload ===== */
.profile-avatar-big {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 14px;
  position: relative;
  background: var(--turq-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 42px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 4px solid #fff;
}
.profile-avatar-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-big::after {
  content: '📷';
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  background: var(--navy);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-avatar-big:hover::after {
  opacity: 1;
}

/* Mobile */
@media (max-width: 700px) {
  .profile-chip-name { display: none; }
  .tfile-item { flex-wrap: wrap; }
  .tfile-actions { width: 100%; justify-content: flex-end; }
}
