/* Mobilya Kesim Pro — panel teması (atölye paneli, yönetim, giriş/kayıt).
   app.css'teki sınıflar aynen kullanılır; bu dosya yalnızca görünümü değiştirir, kaldırılınca eski görünüme dönülür.
   Yazdırma etkilenmesin diye bütün kurallar ekran ortamıyla sınırlıdır. */

@media screen {
  :root {
    --pt-deep: #052523;
    --pt-deep-2: #073b38;
    --pt-teal: #0f766e;
    --pt-teal-2: #14a394;
    --pt-mint: #5fd3c2;
    --pt-amber: #f5a524;
    --pt-amber-2: #f08a0b;
    --pt-ink: #0d1b1a;
    --pt-line: #e2ebe9;
    --pt-shadow: 0 1px 2px rgba(5, 37, 35, 0.04), 0 8px 24px rgba(5, 37, 35, 0.07);
    --pt-shadow-hover: 0 2px 4px rgba(5, 37, 35, 0.05), 0 18px 40px rgba(5, 37, 35, 0.12);
    --shadow-sm: var(--pt-shadow);
    --r-lg: 16px;
    --r-sm: 9px;
    --focus: 0 0 0 4px rgba(20, 163, 148, 0.22);
  }

  body {
    -webkit-font-smoothing: antialiased;
    background:
      radial-gradient(60rem 24rem at 100% 0%, rgba(20, 163, 148, 0.1), transparent 60%),
      radial-gradient(44rem 22rem at 0% 100%, rgba(245, 165, 36, 0.07), transparent 60%),
      #eef4f3;
    background-attachment: fixed;
  }

  /* ---------- Yan menü ---------- */
  .sidebar {
    background:
      radial-gradient(22rem 14rem at 0% 0%, rgba(95, 211, 194, 0.2), transparent 70%),
      radial-gradient(18rem 16rem at 100% 100%, rgba(245, 165, 36, 0.13), transparent 70%),
      linear-gradient(180deg, #04201e 0%, #0a4743 52%, #04201e 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
  }

  .sidebar .brand-full {
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand small {
    color: var(--pt-mint);
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  .nav-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
  }

  .nav-project-name {
    margin: 0 var(--sp-2) var(--sp-1);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
  }

  .nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .nav a .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    margin: -4px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav a:hover .icon {
    background: rgba(255, 255, 255, 0.14);
  }

  .nav a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(90deg, rgba(245, 165, 36, 0.24), rgba(245, 165, 36, 0.03));
  }

  .nav a[aria-current="page"] .icon {
    background: linear-gradient(135deg, #ffd25e, var(--pt-amber-2));
    color: var(--pt-deep);
    box-shadow: 0 6px 16px rgba(240, 138, 11, 0.45);
  }

  .sidebar-foot {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .sidebar-foot .avatar {
    grid-row: span 2;
  }

  .sidebar-foot strong,
  .sidebar-foot span:not(.avatar) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-foot .btn {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd25e, var(--pt-amber-2));
    color: var(--pt-deep);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  }

  .btn-on-dark {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }

  .btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  /* ---------- Sayfa başlığı ---------- */
  .page-head h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--pt-deep-2);
  }

  .page-head > div:first-child > h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pt-teal-2), var(--pt-amber));
  }

  .page-head .lead {
    margin-top: 8px;
  }

  @keyframes pt-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  .page > .page-head,
  .grid-stats > .stat,
  .page > .card.guide,
  .ov-quick > a {
    animation: pt-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .grid-stats > .stat:nth-child(2),
  .ov-quick > a:nth-child(2) {
    animation-delay: 0.06s;
  }

  .grid-stats > .stat:nth-child(3),
  .ov-quick > a:nth-child(3) {
    animation-delay: 0.12s;
  }

  .grid-stats > .stat:nth-child(4),
  .ov-quick > a:nth-child(4) {
    animation-delay: 0.18s;
  }

  /* Genel bakışın karşılama bandı */
  .page-head.ov-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border-radius: 20px;
    color: #fff;
    background:
      radial-gradient(28rem 16rem at 100% 0%, rgba(95, 211, 194, 0.35), transparent 65%),
      radial-gradient(22rem 14rem at 0% 100%, rgba(245, 165, 36, 0.25), transparent 65%),
      linear-gradient(120deg, #052523, #0b4f49);
    box-shadow: 0 18px 40px -18px rgba(5, 37, 35, 0.6);
  }

  .page-head.ov-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    mask-image: linear-gradient(90deg, transparent 30%, #000);
    animation: pt-grid 18s linear infinite;
    pointer-events: none;
  }

  @keyframes pt-grid {
    to {
      background-position: 36px 36px;
    }
  }

  .page-head.ov-hero > * {
    position: relative;
  }

  .page-head.ov-hero h1 {
    color: #fff;
  }

  .page-head.ov-hero .lead {
    color: rgba(255, 255, 255, 0.78);
  }

  .page-head.ov-hero .btn-primary {
    background: linear-gradient(135deg, #ffd25e, var(--pt-amber-2));
    color: var(--pt-deep);
    box-shadow: 0 10px 24px -8px rgba(240, 138, 11, 0.7);
  }

  .ov-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--sp-3);
    margin: calc(-1 * var(--sp-2)) 0 var(--sp-5);
  }

  .ov-quick > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--pt-ink);
    font-weight: 650;
    text-decoration: none;
    box-shadow: var(--pt-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .ov-quick > a:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 163, 148, 0.35);
    box-shadow: var(--pt-shadow-hover);
  }

  .ov-quick small {
    display: block;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.78rem;
  }

  .ov-quick .icon,
  .stat-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--pt-teal-2), var(--pt-deep-2));
    box-shadow: 0 8px 18px -6px rgba(15, 118, 110, 0.6);
  }

  .ov-quick > a:nth-child(2) .icon,
  .grid-stats > .stat:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #ffd25e, var(--pt-amber-2));
    color: var(--pt-deep);
    box-shadow: 0 8px 18px -6px rgba(240, 138, 11, 0.6);
  }

  .ov-quick > a:nth-child(3) .icon,
  .grid-stats > .stat:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #60a5fa, #1e40af);
    box-shadow: 0 8px 18px -6px rgba(30, 64, 175, 0.5);
  }

  .ov-quick > a:nth-child(4) .icon,
  .grid-stats > .stat:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #f472b6, #9d174d);
    box-shadow: 0 8px 18px -6px rgba(157, 23, 77, 0.5);
  }

  /* ---------- Kartlar ---------- */
  .card {
    border-color: rgba(5, 37, 35, 0.06);
    box-shadow: var(--pt-shadow);
    transition: box-shadow 0.25s ease;
  }

  .card:hover {
    box-shadow: var(--pt-shadow-hover);
  }

  .card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    color: var(--pt-deep-2);
  }

  .card-head h2::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--pt-teal-2);
    box-shadow: 0 0 0 4px rgba(20, 163, 148, 0.15);
  }

  .stat {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 12px;
    padding: 20px 22px;
  }

  .grid > .card + .card {
    margin-top: 0;
  }

  .grid-stats:not(:empty) + .card {
    margin-top: var(--sp-4);
  }

  .stat::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-teal-2), var(--pt-mint));
  }

  .stat:nth-child(2)::after {
    background: linear-gradient(90deg, var(--pt-amber-2), #ffd25e);
  }

  .stat:nth-child(3)::after {
    background: linear-gradient(90deg, #1e40af, #60a5fa);
  }

  .stat:nth-child(4)::after {
    background: linear-gradient(90deg, #9d174d, #f472b6);
  }

  .stat > :not(.stat-icon) {
    grid-column: 1;
  }

  .stat-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .stat-label {
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
  }

  .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pt-deep-2);
  }

  /* ---------- Düğmeler ---------- */
  .btn {
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s ease, box-shadow 0.15s ease;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--pt-teal-2), var(--pt-teal) 55%, var(--pt-deep-2));
    box-shadow: 0 6px 16px -6px rgba(15, 118, 110, 0.65);
  }

  .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--pt-teal-2), var(--pt-teal) 40%, var(--pt-deep-2));
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(15, 118, 110, 0.75);
  }

  .btn-secondary {
    border-color: var(--pt-line);
    box-shadow: 0 1px 2px rgba(5, 37, 35, 0.05);
  }

  .btn-secondary:hover:not(:disabled) {
    border-color: rgba(20, 163, 148, 0.4);
    background: #f5fbfa;
    color: var(--pt-deep-2);
  }

  .btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
  }

  /* ---------- Sekmeler ---------- */
  .tabs {
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--pt-shadow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .tabs a {
    min-height: 38px;
    padding: 0 14px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .tabs a:hover {
    background: #eef6f5;
  }

  .tabs a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, var(--pt-teal-2), var(--pt-deep-2));
    box-shadow: 0 6px 14px -6px rgba(15, 118, 110, 0.7);
  }

  /* ---------- Tablolar, formlar, rozetler ---------- */
  .table th {
    background: #f4f9f8;
    color: #5a6d6b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .table th:first-child {
    border-top-left-radius: 10px;
  }

  .table th:last-child {
    border-top-right-radius: 10px;
  }

  .table tbody tr {
    transition: background 0.15s ease;
  }

  .table tbody tr:hover {
    background: #f1faf8;
  }

  .table a.row-link {
    font-weight: 650;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="number"]:focus,
  input[type="search"]:focus,
  input[type="tel"]:focus,
  input[type="date"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--pt-teal-2);
    box-shadow: var(--focus);
  }

  .badge {
    border-radius: 999px;
    font-weight: 700;
  }

  .notice {
    border-radius: 14px;
    border-left-width: 4px;
  }

  dialog {
    border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(5, 37, 35, 0.5);
  }

  dialog::backdrop {
    background: rgba(4, 32, 30, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(5, 37, 35, 0.22) padding-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(5, 37, 35, 0.35);
  }

  .sidebar ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* ---------- Giriş, kayıt, parola ---------- */
  .auth {
    position: relative;
    overflow: hidden;
    gap: 56px;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(16px, 5vw, 80px);
    background:
      radial-gradient(42rem 28rem at 15% 20%, rgba(95, 211, 194, 0.28), transparent 60%),
      radial-gradient(36rem 26rem at 90% 90%, rgba(245, 165, 36, 0.2), transparent 60%),
      linear-gradient(150deg, #04201e, #0a4743 55%, #052523);
  }

  .auth::before,
  .auth::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: pt-drift 16s ease-in-out infinite alternate;
  }

  .auth::before {
    width: 420px;
    height: 420px;
    left: -120px;
    bottom: -140px;
    background: #14a394;
  }

  .auth::after {
    width: 360px;
    height: 360px;
    right: -100px;
    top: -120px;
    background: #f5a524;
    opacity: 0.32;
    animation-duration: 20s;
    animation-direction: alternate-reverse;
  }

  @keyframes pt-drift {
    to {
      transform: translate(80px, -60px) scale(1.15);
    }
  }

  .auth-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 15%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 15%, transparent 70%);
    animation: pt-grid-48 22s linear infinite;
    pointer-events: none;
  }

  @keyframes pt-grid-48 {
    to {
      background-position: 48px 48px;
    }
  }

  .auth:has(.auth-side) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  }

  .auth-side,
  .auth-card {
    position: relative;
    z-index: 1;
  }

  .auth-side {
    max-width: 520px;
    justify-self: end;
    color: #fff;
  }

  .auth-side img {
    display: block;
    width: 260px;
    height: auto;
    margin-bottom: 36px;
  }

  .auth-side h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .auth-side h2 span {
    background: linear-gradient(90deg, var(--pt-mint), #c9f5ec 50%, var(--pt-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .auth-side > p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
  }

  .auth-side ul {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
  }

  .auth-side li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-weight: 600;
    animation: pt-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .auth-side li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .auth-side li:nth-child(3) {
    animation-delay: 0.2s;
  }

  .auth-side li:nth-child(4) {
    animation-delay: 0.3s;
  }

  .auth-side li svg {
    width: 32px;
    height: 32px;
    flex: none;
    padding: 7px;
    border-radius: 10px;
    fill: none;
    stroke: var(--pt-deep);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: linear-gradient(135deg, var(--pt-mint), #c9f5ec);
  }

  .auth-card {
    width: 100%;
    max-width: 460px;
    animation: pt-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .auth-card > .card,
  .auth-card > form.card {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .auth-brand {
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  }

  .auth-side ~ .auth-card .auth-brand {
    display: none;
  }

  .auth h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pt-deep-2);
  }

  .auth .btn-primary {
    min-height: 50px;
    border-radius: 12px;
    font-size: 1.02rem;
  }

  .auth-links {
    color: var(--gray-500);
  }

  @media (max-width: 900px) {
    .auth:has(.auth-side) {
      grid-template-columns: minmax(0, 460px);
    }

    .auth-side {
      display: none;
    }

    .auth-side ~ .auth-card .auth-brand {
      display: flex;
    }

    .auth-card > .card,
    .auth-card > form.card {
      padding: 24px 20px;
    }
  }

  /* ---------- Masaüstü / mobil ---------- */
  @media (min-width: 861px) {
    .nav a:hover {
      transform: translateX(3px);
    }

    .nav a[aria-current="page"]::before {
      content: "";
      position: absolute;
      left: -12px;
      top: 22%;
      bottom: 22%;
      width: 4px;
      border-radius: 0 4px 4px 0;
      background: var(--pt-amber);
      box-shadow: 0 0 12px rgba(245, 165, 36, 0.85);
    }
  }

  @media (max-width: 860px) {
    .sidebar {
      background: linear-gradient(180deg, #073b38, #04201e);
      border-right: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav a {
      border-radius: 0;
    }

    .nav a .icon {
      width: 30px;
      height: 30px;
      padding: 6px;
      margin: 0;
      background: transparent;
    }

    .nav a[aria-current="page"] {
      background: transparent;
    }

    .mobile-bar {
      background: linear-gradient(90deg, #04201e, #0a4743);
      box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.5);
    }

    .page-head h1 {
      font-size: 1.35rem;
    }

    .page-head.ov-hero {
      padding: 20px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .page > .page-head,
  .grid-stats > .stat,
  .page > .card.guide,
  .ov-quick > a,
  .auth-card,
  .auth-side li,
  .auth::before,
  .auth::after,
  .auth-grid,
  .page-head.ov-hero::before {
    animation: none !important;
  }
}
