/* ============================================================
   style.css — Ana stil dosyası (Mobile-First)
   ============================================================ */

/* ---- Variables ---- */
:root {
  --navy:   #1A1A2E;
  --navy2:  #16213E;
  --orange: #E85D04;
  --orange2:#F48C06;
  --white:  #FFFFFF;
  --gray50: #F9FAFB;
  --gray100:#F3F4F6;
  --gray200:#E5E7EB;
  --gray500:#6B7280;
  --gray700:#374151;
  --gray900:#111827;
  --green:  #10B981;
  --red:    #EF4444;
  --yellow: #F59E0B;
  --blue:   #3B82F6;

  --font:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --transition: .2s ease;

  --sidebar-w: 260px;
  --header-h:  64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: clamp(15px, 2vw, 17px); }
body { font-family: var(--font); color: var(--gray900); background: var(--gray50); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; transition: all var(--transition);
  min-height: 44px; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,93,4,.35); }
.btn-ghost { border-color: var(--gray200); color: var(--gray700); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn-success { background: var(--green); color: #fff; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-xl { padding: 16px 40px; font-size: 1.1rem; border-radius: 10px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--gray700); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray200);
  border-radius: 8px; font-family: var(--font); font-size: 1rem;
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px; color: var(--gray900);
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.15); }
.form-control.is-invalid { border-color: var(--red); }
.invalid-feedback { color: var(--red); font-size: .82rem; margin-top: 4px; display: none; }
.form-control.is-invalid ~ .invalid-feedback { display: block; }
.form-text { color: var(--gray500); font-size: .82rem; margin-top: 4px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

/* ---- Cards ---- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-gray    { background: var(--gray100); color: var(--gray700); }
.badge-orange  { background: #FED7AA; color: #9A3412; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray200); transition: background var(--transition); }
tbody tr:hover { background: var(--gray50); }
tbody td { padding: 12px 14px; vertical-align: middle; }

/* ---- Progress bar ---- */
.progress { height: 8px; background: var(--gray200); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--orange); border-radius: 99px; transition: width .5s ease; }
.progress-bar.green { background: var(--green); }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--green); }
.alert-danger   { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--red); }
.alert-warning  { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--yellow); }
.alert-info     { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--blue); }

/* ---- KPI Cards ---- */
.kpi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.kpi-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 14px; border-left: 4px solid var(--orange); }
.kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.kpi-info .kpi-label { font-size: .8rem; color: var(--gray500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-info .kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.kpi-info .kpi-sub   { font-size: .8rem; color: var(--gray500); margin-top: 2px; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform var(--transition); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray200); }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray500); transition: background var(--transition); }
.modal-close:hover { background: var(--gray100); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--gray200); }

/* ---- Loading Spinner ---- */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page { background: var(--navy); color: #fff; }

/* Site Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(26,26,46,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.75); font-weight: 500; transition: color var(--transition); }
.main-nav a:hover { color: var(--orange); }
.header-cta { display: none; align-items: center; gap: 10px; margin-left: auto; }
.hamburger { margin-left: auto; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--navy2); border-top: 1px solid rgba(255,255,255,.06); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-nav.open { max-height: 400px; }
.mobile-nav a { padding: 12px 8px; color: rgba(255,255,255,.8); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 60px 16px; }
.hero-subtitle { color: var(--orange); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--orange), var(--orange2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.stat { text-align: center; }
.stat span { font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 2px; }

/* Features */
.features { background: var(--gray50); color: var(--gray900); padding: 80px 0; }
.features h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.section-desc { text-align: center; color: var(--gray500); margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { color: var(--gray500); font-size: .92rem; }

/* How It Works */
.how-it-works { background: var(--navy); padding: 80px 0; color: #fff; }
.how-it-works h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 48px; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.step-card { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,.08); }
.step-num { font-size: 2.5rem; font-weight: 900; color: var(--orange); margin-bottom: 10px; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: rgba(255,255,255,.65); font-size: .92rem; }

/* Sectors */
.sectors { background: var(--gray50); color: var(--gray900); padding: 80px 0; }
.sectors h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 48px; }
.sectors-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sector-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.sector-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.sector-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.sector-card p { color: var(--gray500); font-size: .88rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--orange), var(--orange2)); padding: 80px 16px; text-align: center; color: #fff; }
.cta-section h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.cta-section .btn-primary { background: var(--navy); color: #fff; }
.cta-section .btn-primary:hover { background: var(--navy2); }

/* Footer */
.site-footer { background: var(--navy2); color: rgba(255,255,255,.5); padding: 24px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: .87rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-nav a:hover { color: var(--orange); }

/* ============================================================
   APP LAYOUT (Dashboard, etc.)
   ============================================================ */
.app-body { min-height: 100vh; background: var(--gray100); }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--navy); color: #fff; z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s ease;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }
.sidebar-logo { padding: 20px 20px 10px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  color: rgba(255,255,255,.7); font-weight: 500; font-size: .92rem;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--orange); }
.sidebar-nav .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-section { padding: 12px 20px 4px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.3); }
.sidebar-footer { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* App Header */
.app-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.app-header .hamburger span { background: var(--gray700); }
.app-header-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; flex: 1; }
.app-header-actions { display: flex; align-items: center; gap: 10px; }
.notif-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gray500); transition: background var(--transition); }
.notif-btn:hover { background: var(--gray100); }
.notif-badge { position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; border-radius: 99px; font-size: .65rem; font-weight: 700; padding: 1px 5px; min-width: 16px; text-align: center; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--gray700); cursor: pointer; transition: background var(--transition); }
.user-chip:hover { background: var(--gray100); }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* Main Content Area */
.main-content { padding: 24px 16px; transition: margin-left .3s ease; }
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); }

/* Overlay */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; display: none; }
.sidebar-overlay.active { display: block; }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); position: relative; overflow: hidden; }
.auth-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  padding: 36px 32px; width: 100%; max-width: 460px;
  color: #fff; position: relative; z-index: 1;
}
.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 900; justify-content: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { color: rgba(255,255,255,.6); text-align: center; margin-bottom: 28px; font-size: .9rem; }
.auth-card .form-label { color: rgba(255,255,255,.8); }
.auth-card .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: #fff; }
.auth-card .form-control::placeholder { color: rgba(255,255,255,.35); }
.auth-card .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.25); }
.auth-card .btn-primary { width: 100%; position: relative; }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: .88rem; color: rgba(255,255,255,.6); }
.auth-footer-link a { color: var(--orange); font-weight: 600; }

/* Şifre güç göstergesi */
.password-strength { height: 4px; border-radius: 99px; background: var(--gray200); margin-top: 6px; overflow: hidden; }
.strength-bar { height: 100%; border-radius: 99px; width: 0; transition: width .3s, background .3s; }
.strength-text { font-size: .78rem; margin-top: 4px; font-weight: 600; }

/* ============================================================
   Gantt
   ============================================================ */
.gantt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gantt-layout { display: flex; flex-direction: column; gap: 20px; }
.gantt-task-panel { width: 100%; }
.gantt-chart-panel { min-width: 0; overflow-x: auto; }

/* ============================================================
   Calendar
   ============================================================ */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-header { text-align: center; font-size: .75rem; font-weight: 700; padding: 8px 4px; color: var(--gray500); }
.cal-day { min-height: 80px; background: #fff; border-radius: 6px; padding: 6px; border: 1px solid var(--gray200); font-size: .78rem; }
.cal-day.today { border-color: var(--orange); }
.cal-day.other-month { background: var(--gray50); opacity: .5; }
.cal-day-num { font-weight: 700; margin-bottom: 4px; }
.cal-event { border-radius: 4px; padding: 2px 5px; margin-bottom: 2px; color: #fff; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-event.red    { background: var(--red); }
.cal-event.green  { background: var(--green); }
.cal-event.blue   { background: var(--blue); }
.cal-event.orange { background: var(--orange); }
