:root {
  --rc-red: #0f4c81;
  --ink-900: #0f172a;
  --ink-700: #334155;
}
body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 76, 129, 0.1), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(15, 23, 42, 0.08), transparent 30%),
    #f2f5f9;
}
.brand-logo {
  background: linear-gradient(120deg, #ffffff 0%, #f8fafc 70%, #eaf3ff 100%);
}
.sidebar-item:hover, .sidebar-item.active {
  background: #eef6ff;
  color: var(--rc-red);
  border-right: 4px solid var(--rc-red);
}
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e8eef6;
  border-radius: 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: 220ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.modal-backdrop { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(6px); }
.modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.6rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}
.premium-input {
  width: 100%;
  height: 48px;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.premium-input:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid transparent;
}
.topbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}
.header-profile-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.header-profile-avatar i {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.95;
}
.primary-btn {
  background: linear-gradient(92deg, #0f4c81, #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.32);
  transition: 180ms ease;
}
.primary-btn:hover { transform: translateY(-1px); filter: saturate(1.05); }
.ghost-btn {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  color: var(--ink-700);
}
.ghost-btn:hover { background: #0f172a; color: #fff; }
.scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

.doc-tab {
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.doc-tab-active {
  color: var(--rc-red);
  border-bottom-color: var(--rc-red);
}
.doc-preview-card {
  width: 150px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
}
.doc-upload-drop {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 14px;
}
.doc-upload-drop:hover {
  border-color: #93c5fd;
  background: #fff;
}
/* Tailwind CDN’e bağlı olmadan ilerleme alanı (canlı ortam) */
#dam_upload_progress[hidden] {
  display: none !important;
}
#dam_upload_progress:not([hidden]) {
  display: block !important;
}

.doc-upload-drop.is-upload-busy {
  pointer-events: none;
  opacity: 0.55;
}
#dam_upload_bar.dam-upload-bar-indeterminate {
  width: 100% !important;
  transition: none;
  background: linear-gradient(90deg, #0f4c81 0%, #3b82f6 40%, #0f4c81 80%);
  background-size: 200% 100%;
  animation: dam-upload-shimmer 0.9s linear infinite;
}
@keyframes dam-upload-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
