/* Import Google Fonts: Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ---------- Genel Reset & Temel Ayarlar ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #F4F6F9;
  color: #333;
  font-size: 14px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #2C3E50;
  color: #ECF0F1;
  padding: 24px;
  transition: transform 0.3s ease;
  z-index: 1000;
}
.sidebar.closed {
  transform: translateX(-240px);
}
.sidebar-header {
  /* Güncellenmiş sidebar başlığı */
  margin-bottom: 32px;
}
.logo-container {
  background-color: #34495E; /* Sidebar rengiyle uyumlu, biraz farklı ton */
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}
.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #ECF0F1;
  margin: 0;
  text-transform: uppercase;
}
.logo-text p {
  font-size: 12px;
  color: #BDC3C7;
  margin: 4px 0 0;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li {
  margin: 16px 0;
}
.sidebar-menu li a {
  text-decoration: none;
  color: #ECF0F1;
  font-size: 14px;
  display: block;
  padding: 6px 0;
}

/* ---------- Header ---------- */
.header {
  transition: margin-left 0.3s ease;
  margin-left: 240px;
  background-color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.header.full-width {
  margin-left: 0;
}
.header-left {
  display: flex;
  align-items: center;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 16px;
}
.header h2 {
  font-size: 18px;
  color: #2C3E50;
}
.header-right .logout-icon {
  font-size: 24px;
  color: #E74C3C;
  text-decoration: none;
}

/* ---------- Main Content ---------- */
.main-content {
  transition: margin-left 0.3s ease;
  margin-left: 240px;
  padding: 24px;
}
.main-content.full-width {
  margin-left: 0;
}

/* ---------- Table Container ---------- */
.table-container {
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.table-container table {
  width: 100%;
  border-collapse: collapse;
}
.table-container th,
.table-container td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #EAECEE;
  font-size: 13px;
}
.table-container th {
  background-color: #F8F9FA;
  font-weight: 500;
  color: #2C3E50;
}

/* ---------- Butonlar ---------- */
.btn-edit,
.btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s ease;
}
.btn-edit {
  background-color: #27AE60;
  color: #fff;
}
.btn-edit:hover {
  background-color: #219150;
}
.btn-delete {
  background-color: #E74C3C;
  color: #fff;
}
.btn-delete:hover {
  background-color: #CF3C33;
}

/* ---------- Login Sayfası ---------- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #ECF0F1;
  padding: 20px;
}
.login-card {
  background-color: #FFFFFF;
  width: 360px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: center;
}
.login-logo img {
  width: 80px;
  margin-bottom: 12px;
}
.login-logo h2 {
  font-size: 22px;
  color: #2C3E50;
  margin-bottom: 6px;
}
.login-logo p {
  font-size: 16px;
  color: #7F8C8D;
  margin-bottom: 24px;
}
.login-form {
  text-align: left;
}
.login-form label {
  font-size: 13px;
  color: #2C3E50;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  font-size: 13px;
}
.login-button {
  width: 100%;
  padding: 12px;
  background-color: #2980B9;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-button:hover {
  background-color: #1F6391;
}
.login-footer {
  margin-top: 24px;
  font-size: 13px;
  color: #7F8C8D;
}

/* ---------- Raporlar Sayfası (Liste Butonları) ---------- */
.reports-container {
  padding: 20px;
  background-color: #F7F7F7;
  min-height: calc(100vh - 60px);
}
.report-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
}
.report-item {
  background-color: #FFFFFF;
  border: 1px solid #EAECEE;
  border-radius: 6px;
  padding: 12px 20px;
  min-width: 180px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.report-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.report-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2C3E50;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  .sidebar.closed {
    transform: translateX(-200px);
  }
  .header,
  .main-content {
    margin-left: 200px;
  }
}
/* Login Sayfası İçin Ek Stil Ayarları */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #ECF0F1;
  padding: 20px;
}

.login-card {
  background-color: #FFFFFF;
  width: 360px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: center;
}

.logo-container {
  background-color: #34495E;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #ECF0F1;
  margin: 0;
  text-transform: uppercase;
}

.logo-text p {
  font-size: 12px;
  color: #BDC3C7;
  margin-top: 4px;
}

.login-form label {
  font-size: 13px;
  color: #2C3E50;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  font-size: 13px;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #34344E;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #1F6391;
}

.login-footer {
  margin-top: 24px;
  font-size: 13px;
  color: #7F8C8D;
}
/* ---------- Fark İstatistikleri (Dashboard) ---------- */
.fark-section {
  margin-top: 40px;
}

.fark-section h3 {
  font-size: 16px;
  color: #2C3E50;
  margin-bottom: 16px;
  text-align: center;
}

.fark-tables {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.fark-table {
  flex: 1;
  min-width: 300px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow-x: auto;
  padding: 16px;
}

.fark-table h4 {
  font-size: 15px;
  color: #2C3E50;
  margin-bottom: 12px;
  text-align: center;
}

.fark-table table {
  width: 100%;
  border-collapse: collapse;
}

.fark-table th,
.fark-table td {
  padding: 10px 12px;
  border: 1px solid #EAECEE;
  text-align: left;
  font-size: 13px;
}

.fark-table th {
  background-color: #F8F9FA;
  font-weight: 500;
  color: #2C3E50;
}
.stats-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stat-card {
  flex: 1;
  min-width: 200px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-card h3 {
  font-size: 16px;
  color: #2C3E50;
  margin-bottom: 10px;
}
.stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: #2980B9;
  margin: 0;
}

/* --- Barkod Arama Sayfası Özel Stilleri --- */
.search-container {
  max-width: 600px;
  margin: 20px auto;
  position: relative;
}
.search-container input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
}
.results-container {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #EAECEE;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
  z-index: 1001;
}
.result-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #EAECEE;
}
.result-item:last-child {
  border-bottom: none;
}
.result-item:hover {
  background-color: #F8F9FA;
}
.detail-container {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #EAECEE;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
}
.detail-info {
  margin-bottom: 20px;
}
.detail-info h3 {
  font-size: 18px;
  color: #2C3E50;
  margin-bottom: 10px;
}
.detail-info p {
  font-size: 14px;
  color: #333;
  margin: 4px 0;
}
.qr-code {
  text-align: center;
  margin-bottom: 20px;
}
.stock-table {
  width: 100%;
  border-collapse: collapse;
}
.stock-table th,
.stock-table td {
  padding: 8px 10px;
  border: 1px solid #EAECEE;
  font-size: 13px;
  text-align: left;
}
.stock-table th {
  background: #F8F9FA;
  color: #2C3E50;
  font-weight: 500;
  
}

/* Tab yapısı */
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #eaecee;
  margin-bottom: 20px;
}

.tabs button {
  background: none;
  border: none;
  outline: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #2C3E50;
  transition: color 0.3s;
  flex: 1;
  text-align: center;
}

.tabs button.active {
  border-bottom: 3px solid #2980B9;
  color: #2980B9;
}

/* Tab içerikleri */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Yeni görev ekleme kartı */
.new-task-form {
  background-color: #FFFFFF;
  border: 1px solid #EAECEE;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.new-task-form h2 {
  margin-bottom: 15px;
  color: #2C3E50;
  font-size: 20px;
}
.new-task-form textarea {
  width: 100%;
  padding: 8px;
  min-height: 80px;
  margin-bottom: 10px;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

/* Görev kartı */
.task-card {
  background-color: #FFFFFF;
  border: 1px solid #EAECEE;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.task-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #2C3E50;
}
.task-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}
.task-actions a {
  margin-right: 10px;
  text-decoration: none;
  color: #2980B9;
  font-weight: bold;
  font-size: 14px;
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
  .tabs button {
    font-size: 14px;
    padding: 8px 10px;
  }
  .new-task-form h2 {
    font-size: 18px;
  }
  .task-card h3 {
    font-size: 16px;
  }
  .task-card p {
    font-size: 13px;
  }
  .new-task-form textarea {
    min-height: 100px;
  }
}
/* SKU Ekle Sayfası Stil Ayarları */
.sku-form-container {
    max-width: 500px;
    margin: 20px auto;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sku-form-container h2 {
    margin-bottom: 20px;
    color: #2C3E50;
    text-align: center;
    font-size: 22px;
}

.sku-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.sku-form-container input[type="text"],
.sku-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #BDC3C7;
    border-radius: 4px;
    font-size: 14px;
}

.sku-form-container textarea {
    resize: vertical;
    min-height: 80px;
}

.sku-form-container button {
    width: 100%;
    padding: 10px;
    background-color: #2980B9;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sku-form-container button:hover {
    background-color: #1F6391;
}

.message {
    text-align: center;
    margin-bottom: 15px;
    color: #2980B9;
    font-size: 16px;
}
/* Rapor Detayları Sayfası Stil Ayarları */
.report-details-container {
    padding: 20px;
    background-color: #F7F7F7;
    min-height: calc(100vh - 60px);
}

table.report-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.report-details th,
table.report-details td {
    padding: 10px 14px;
    border: 1px solid #EAECEE;
    text-align: left;
    font-size: 13px;
}

table.report-details th {
    background-color: #F8F9FA;
    font-weight: 500;
    color: #2C3E50;
}

/* Pagination Styles */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background-color: #2980B9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #1F6391;
}

.pagination a:hover {
    background-color: #1F6391;
}

/* Limit Selection */
.limit-select {
    margin-bottom: 10px;
    text-align: right;
}

.limit-select select {
    padding: 5px;
    font-size: 14px;
}
/* Raporlar Sayfası */
.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.report-item {
  background-color: #fff;
  margin: 10px 0;
  padding: 10px 15px;
  border: 1px solid #eaecee;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.3s;
}
.report-item:hover {
  background-color: #f9f9f9;
}
.report-title {
  font-size: 18px;
  color: #2C3E50;
  text-decoration: none;
}
.report-item .actions {
  position: absolute;
  right: 10px;
  top: 10px;
}
.report-item .actions a {
  margin-left: 8px;
  color: #2980B9;
  text-decoration: none;
  font-size: 16px;
}
.report-item .actions a:hover {
  color: #1F6391;
}
.report-item .last-entry {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
/* Raporlar Sayfası Stil Ayarları */
.report-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-item {
    background-color: #fff;
    margin: 10px auto 20px;
    padding: 15px;
    padding-right: 60px; /* Sağda ikonlar için ekstra alan */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 800px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions a {
    color: #2980B9;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}

.actions a:hover {
    color: #1F6391;
}

.last-entry {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
.actions a svg {
    width: 16px;
    height: 16px;
    fill: #2980B9;
}
.actions a:hover svg {
    fill: #1F6391;
}
/* Rapor Detayları Sayfası Stil Ayarları */
.report-details-container {
    padding: 20px;
    background-color: #F7F7F7;
    min-height: calc(100vh - 60px);
}

table.report-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.report-details th,
table.report-details td {
    padding: 10px 14px;
    border: 1px solid #EAECEE;
    text-align: left;
    font-size: 13px;
}

table.report-details th {
    background-color: #F8F9FA;
    font-weight: 500;
    color: #2C3E50;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background-color: #2980B9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #1F6391;
}

.pagination a:hover {
    background-color: #1F6391;
}

.limit-select {
    margin-bottom: 10px;
    text-align: right;
}

.limit-select select {
    padding: 5px;
    font-size: 14px;
}

.excel-export {
    margin-top: 20px;
    text-align: right;
}

.excel-export a {
    display: inline-block;
    padding: 10px 16px;
    background-color: #27AE60;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.excel-export a:hover {
    background-color: #219150;
}

.excel-export a i {
    margin-right: 6px;
}

.button-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px; 
  margin-top: 20px;
}

.btn {
  background-color: #97b09e; 
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn:hover {
  background-color: #219150;
}

.btn i {
  margin-right: 6px;
}

/* --- Global Responsive Enhancements --- */
@media (max-width: 1024px) {
  .header, .main-content {
    margin-left: 0 !important;
  }
  .sidebar {
    transform: translateX(-240px);
  }
  .sidebar.closed {
    transform: translateX(0);
  }
  .header.full-width,
  .main-content.full-width {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .stats-container,
  .fark-tables {
    flex-direction: column;
  }

  .stat-card,
  .fark-table {
    min-width: 100% !important;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
  }

  .sidebar.closed {
    transform: translateX(0);
  }

  .menu-btn {
    font-size: 28px;
  }

  .header h2 {
    font-size: 16px;
  }

  .main-content {
    padding: 16px;
  }

  .report-list {
    flex-direction: column;
    align-items: stretch;
  }

  .report-item {
    width: 100%;
  }

  .login-card {
    width: 100%;
    max-width: 360px;
    padding: 30px 20px;
  }
}

/* Allow scroll for smaller viewports */
body {
  overflow-x: hidden;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}
.table-container th,
.table-container td {
  border: 1px solid #ccc;
  padding: 4px 8px;
  text-align: left;
}
.table-container {
  overflow-x: auto;
}
.mail-panel {
  border: 1px solid #ccc;
  background: #fefefe;
  padding: 12px;
  margin-top: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mail-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mail-header .field {
  flex: 1;
  min-width: 150px;
}
.mail-header label {
  display: block;
  font-size: 0.9em;
  margin-bottom: 4px;
  color: #333;
}
.mail-header input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #999;
  border-radius: 2px;
}
.mail-body .preview {
  border: 1px solid #999;
  background: #fff;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  margin-bottom: 8px;
}
.mail-body .btns {
  text-align: right;
  gap: 8px;
}
.mail-body .btns .btn {
  margin-left: 4px;
}
.mail-panel .preview-container {
  overflow: auto;
}
.mail-panel .preview-container canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}
.assigned-row {
  background:#f1f1f1 !important;
  opacity:.55;
}
.assigned-row .row-checkbox { visibility:hidden; }
.pending{background:#fff9d6;}   /* soluk sarı */
.done   {background:#e8f8e5;}   /* soluk yeşil */
