/* request/assets/css/request.css */
/* Bağımsız Modern Müşteri & Proje Talep Portalı Stili */

:root {
  --req-bg: #f8fafc;
  --req-card-bg: #ffffff;
  --req-card-border: #e2e8f0;
  --req-text: #0f172a;
  --req-text-muted: #64748b;
  --req-text-subtle: #94a3b8;
  --req-primary: #0f172a;
  --req-primary-hover: #1e293b;
  --req-accent: #2563eb;
  --req-accent-soft: #eff6ff;
  --req-accent-border: #bfdbfe;
  --req-danger: #ef4444;
  --req-success: #10b981;
  --req-warning: #f59e0b;
  --req-radius-sm: 8px;
  --req-radius-md: 12px;
  --req-radius-lg: 16px;
  --req-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --req-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --req-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08);
  --req-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--req-font);
  background-color: var(--req-bg);
  color: var(--req-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.req-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.req-header {
  background: #ffffff;
  border-bottom: 1px solid var(--req-card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--req-shadow-sm);
}

.req-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.req-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--req-text);
}

.req-logo-badge {
  width: 38px;
  height: 38px;
  background: var(--req-primary);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.req-brand-text {
  display: flex;
  flex-direction: column;
}

.req-brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--req-text);
}

.req-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--req-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.req-nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--req-radius-sm);
  gap: 4px;
}

.req-nav-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--req-text-muted);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.req-nav-btn:hover {
  color: var(--req-text);
}

.req-nav-btn.active {
  background: #ffffff;
  color: var(--req-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Hero Section */
.req-hero {
  padding: 40px 0 24px;
  text-align: center;
}

.req-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--req-accent-soft);
  color: var(--req-accent);
  border: 1px solid var(--req-accent-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.req-hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--req-text);
  margin-bottom: 8px;
}

.req-hero-desc {
  font-size: 15px;
  color: var(--req-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Main Card */
.req-card {
  background: var(--req-card-bg);
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-lg);
  box-shadow: var(--req-shadow-md);
  padding: 32px;
  margin-bottom: 40px;
}

/* Sections inside card */
.req-section {
  margin-bottom: 28px;
}

.req-section:last-of-type {
  margin-bottom: 0;
}

.req-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.req-section-num {
  width: 24px;
  height: 24px;
  background: var(--req-primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.req-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--req-text);
}

/* Form Controls */
.req-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.req-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.req-field:last-child {
  margin-bottom: 0;
}

.req-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.req-required {
  color: var(--req-danger);
  margin-left: 2px;
}

.req-optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--req-text-subtle);
}

.req-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.req-input-icon {
  position: absolute;
  left: 12px;
  color: var(--req-text-subtle);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.req-input, .req-textarea {
  width: 100%;
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-sm);
  background: #ffffff;
  color: var(--req-text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px 10px 38px;
  transition: all 0.15s ease;
  outline: none;
}

.req-input.no-icon {
  padding-left: 14px;
}

.req-textarea {
  padding: 12px 14px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.req-input:focus, .req-textarea:focus {
  border-color: var(--req-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.req-field-hint {
  font-size: 11px;
  color: var(--req-text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

/* Category Grid */
.req-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.req-type-card {
  position: relative;
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  transition: all 0.15s ease;
  user-select: none;
}

.req-type-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.req-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.req-type-card.active {
  border-color: var(--req-accent);
  background: var(--req-accent-soft);
}

.req-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.req-type-card.active .req-type-icon {
  background: var(--req-accent);
  color: #ffffff;
}

.req-type-info {
  display: flex;
  flex-direction: column;
}

.req-type-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--req-text);
}

.req-type-sub {
  font-size: 11px;
  color: var(--req-text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Priority Segments */
.req-priority-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--req-radius-sm);
}

.req-priority-pill {
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--req-text-muted);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.req-priority-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.req-priority-pill.active {
  background: #ffffff;
  color: var(--req-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.req-priority-pill[data-priority="low"].active .dot { background: #10b981; }
.req-priority-pill[data-priority="normal"].active .dot { background: #3b82f6; }
.req-priority-pill[data-priority="high"].active .dot { background: #f59e0b; }
.req-priority-pill[data-priority="urgent"].active .dot { background: #ef4444; }

/* Upload Dropzone */
.req-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--req-radius-sm);
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.req-dropzone:hover, .req-dropzone.dragover {
  border-color: var(--req-accent);
  background: var(--req-accent-soft);
}

.req-drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--req-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: var(--req-shadow-sm);
}

.req-drop-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--req-text);
}

.req-drop-sub {
  font-size: 11px;
  color: var(--req-text-muted);
  margin-top: 4px;
}

.req-file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-sm);
  margin-top: 10px;
}

.req-file-preview.visible {
  display: flex;
}

.req-file-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.req-file-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.req-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--req-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.req-file-size {
  font-size: 11px;
  color: var(--req-text-muted);
}

.req-file-remove {
  background: none;
  border: none;
  color: var(--req-danger);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.req-file-remove:hover {
  background: #fef2f2;
}

/* Agreement Checkbox */
.req-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  cursor: pointer;
  user-select: none;
}

.req-check-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--req-primary);
  margin-top: 3px;
  cursor: pointer;
}

.req-check-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

/* Submit Button */
.req-submit-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.req-btn {
  border: none;
  background: var(--req-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--req-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

.req-btn:hover {
  background: var(--req-primary-hover);
  transform: translateY(-1px);
}

.req-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
  transform: none;
}

.req-btn-outline {
  background: #ffffff;
  color: var(--req-text);
  border: 1px solid var(--req-card-border);
}

.req-btn-outline:hover {
  background: #f8fafc;
}

/* Success View */
.req-success-card {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.req-success-card.visible {
  display: block;
  animation: reqFadeIn 0.25s ease-out;
}

.req-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--req-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.req-success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--req-text);
  margin-bottom: 8px;
}

.req-success-desc {
  font-size: 14px;
  color: var(--req-text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.req-track-box {
  background: #f8fafc;
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-md);
  padding: 20px;
  max-width: 420px;
  margin: 0 auto 28px;
  text-align: center;
}

.req-track-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--req-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.req-track-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--req-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.req-copy-btn {
  border: 1px solid var(--req-card-border);
  background: #ffffff;
  color: #334155;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.req-copy-btn:hover {
  border-color: var(--req-accent);
  color: var(--req-accent);
}

/* Status Query View */
.req-query-wrap {
  display: none;
}

.req-query-wrap.visible {
  display: block;
}

.req-query-box {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.req-query-result {
  display: none;
  background: #ffffff;
  border: 1px solid var(--req-card-border);
  border-radius: var(--req-radius-md);
  padding: 24px;
  margin-top: 20px;
  animation: reqFadeIn 0.2s ease-out;
}

.req-query-result.visible {
  display: block;
}

.req-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Footer */
.req-footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--req-card-border);
  background: #ffffff;
  text-align: center;
  font-size: 12px;
  color: var(--req-text-muted);
}

/* Animations */
@keyframes reqFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 680px) {
  .req-grid-2 {
    grid-template-columns: 1fr;
  }
  .req-card {
    padding: 20px 16px;
  }
  .req-type-grid {
    grid-template-columns: 1fr;
  }
  .req-priority-group {
    grid-template-columns: repeat(2, 1fr);
  }
  .req-hero-title {
    font-size: 22px;
  }
}
