/* Tema Renkleri */
:root {
  --primary-color: #121212;
  --secondary-color: #e0e0e0;
  --white-color: #ffffff;
  --text-light: #666;
  --text_dark: #333;
  --background-light: #f7f7f7;
  --border-color: #f0f0f0;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --overlay-dark: rgba(18, 18, 18, 0.4);
  --hover-bg: rgba(255, 255, 255, 0.1);
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

/* Reset ve Temel Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header ve Navigasyon */
.header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.header-dark {
  background: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-medium);
}

.header.scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-medium);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-left: 2rem;
  margin-right: 2rem;
  white-space: nowrap;
}

.nav-link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--hover-bg);
  color: var(--white-color);
}

.dropdown-trigger {
  cursor: pointer;
}

/* Auth Buttons - Masaüstü */
.auth-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-btn {
  padding: 8px 16px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 2px solid var(--white-color);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 90px;
  height: 36px;
  line-height: 20px;
}

.login-btn {
  background: transparent;
  color: var(--white-color);
}

.login-btn:hover,
.login-btn.active {
  background: var(--white-color);
  color: var(--primary-color);
}

.register-btn {
  background: var(--white-color);
  color: var(--primary-color);
}

.register-btn:hover,
.register-btn.active {
  background: transparent;
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Logout Button Styling */
.logout-btn {
  background: none !important;
  border: 2px solid var(--white-color) !important;
  color: var(--white-color) !important;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 18px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  min-width: 90px;
  height: 36px;
  line-height: 20px;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
  display: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-color);
  min-width: 250px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--hover-bg);
  padding-left: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url("images/arkaplan.jpg") center / cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(18, 18, 18, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  background: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Auth Section */
.auth-section {
  min-height: 100vh;
  background: var(--background-light);
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.auth-card {
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-dark);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--border-color);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white-color);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: 12px;
  font-weight: bold;
}

.forgot-password,
.terms-link,
.auth-switch-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover,
.auth-switch-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.auth-submit-btn:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 18, 18, 0.3);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Dashboard Section */
.dashboard-section {
  min-height: 100vh;
  background: var(--background-light);
  padding: 120px 0 60px;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.welcome-message {
  color: var(--text-light);
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: var(--white-color);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-dark);
}

.dashboard-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-label {
  font-weight: 500;
  color: var(--text-dark);
}

.info-value {
  color: var(--text-light);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Buton boyutlarını standartlaştır */
.action-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  min-height: 44px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background: #0056b3;
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white-color);
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-success {
  background: var(--success-color);
  color: var(--white-color);
}

.btn-success:hover {
  background: #1e7e34;
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-warning {
  background: var(--warning-color);
  color: var(--primary-color);
}

.btn-warning:hover {
  background: #e0a800;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  display: none;
}

.success-message {
  background: #efe;
  color: #363;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  display: none;
}

/* Reports Styles */
.reports-content {
  max-width: 800px;
  margin: 0 auto;
}

.reports-card {
  background: var(--white-color);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.report-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.report-info {
  flex: 1;
}

.report-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.report-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.report-status {
  font-weight: 500;
}

.status-locked {
  color: var(--danger-color);
}

.status-unlocked {
  color: var(--success-color);
}

.report-actions {
  margin-left: 1rem;
}

.no-reports {
  text-align: center;
  padding: 3rem;
}

.no-reports-message h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.no-reports-message p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* File Upload Styles */
.file-upload-area {
  margin: 1rem 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--background-light);
}

.file-upload-label:hover {
  border-color: var(--primary-color);
  background: var(--white-color);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  color: var(--text-light);
  font-weight: 500;
}

#receiptFile,
#reportFile,
#catalogFile {
  display: none;
}

.upload-instruction {
  background: var(--info-color);
  color: var(--white-color);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Admin Styles */
.admin-section {
  min-height: 100vh;
  background: var(--background-light);
  padding: 120px 0 60px;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.admin-header {
  text-align: center;
  margin-bottom: 3rem;
}

.admin-header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

.admin-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.admin-action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-upload {
  background: var(--info-color);
  color: var(--white-color);
}

.btn-upload:hover {
  background: #138496;
  transform: translateY(-2px);
}

.btn-receipts {
  background: var(--warning-color);
  color: var(--primary-color);
}

.btn-receipts:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.btn-locks {
  background: var(--danger-color);
  color: var(--white-color);
}

.btn-locks:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-catalog {
  background: #6f42c1;
  color: var(--white-color);
}

.btn-catalog:hover {
  background: #5a32a3;
  transform: translateY(-2px);
}

.btn-catalog-manage {
  background: #17a2b8;
  color: var(--white-color);
}

.btn-catalog-manage:hover {
  background: #138496;
  transform: translateY(-2px);
}

/* Referanslar butonu için özel renk */
.btn-references {
  background: #fd7e14;
  color: var(--white-color);
}

.btn-references:hover {
  background: #e8650e;
  transform: translateY(-2px);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-dark);
}

.stat-card h3 {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 700;
}

.admin-content {
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  overflow: hidden;
}

.users-section {
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.search-box input {
  padding: 10px 15px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 0.9rem;
  width: 250px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.1);
}

.users-table-container,
.catalogs-table-container {
  overflow-x: auto;
}

.users-table,
.catalogs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.users-table th,
.users-table td,
.catalogs-table th,
.catalogs-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.users-table th,
.catalogs-table th {
  background: var(--background-light);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table tr:hover,
.catalogs-table tr:hover {
  background: var(--background-light);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.action-buttons-table,
.catalog-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
}

.btn-edit {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit:hover {
  background: #0056b3;
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete:hover {
  background: #c82333;
}

/* Catalog Styles */
.catalog-content {
  padding: 80px 0;
  background: var(--background-light);
}

.catalog-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  overflow: hidden;
  padding: 2rem;
}

.catalog-brand {
  font-weight: 600;
  color: var(--primary-color);
}

.no-catalogs {
  text-align: center;
  padding: 3rem;
}

.no-catalogs-message h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.no-catalogs-message p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Modal düzeltmeleri */
.modal-content {
  background-color: var(--white-color);
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  box-shadow: 0 20px 60px var(--shadow-dark);
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.large-modal {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.close {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: var(--primary-color);
}

/* Modal düzeltmeleri */
.modal-form,
.modal-body {
  padding: 1rem 2rem 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

.modal-form::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-form::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Page Header */
.page-header {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Section Divider */
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--white-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Section Styles */
.section-light {
  background: var(--white-color);
  color: var(--primary-color);
}

.section-dark {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.about-preview,
.services-preview,
.quality-section,
.references-section {
  padding: 80px 0;
  text-align: center;
}

.about-preview h2,
.services-preview h2,
.quality-section h2,
.references-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-light .section-divider {
  background: var(--primary-color);
}

.section-dark .section-divider {
  background: var(--primary-color);
}

.about-preview p,
.quality-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.8;
}

.section-light p {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text_dark);
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 25px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
}

.read-more:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Service Card - Tıklanabilir card */
.service-card {
  display: block;
  height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-medium);
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px var(--shadow-dark);
  text-decoration: none;
}

.service-card:hover .service-image {
  transform: scale(1.08);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white-color);
  transition: background 0.3s ease;
}

.service-card:hover .service-overlay {
  background: rgba(18, 18, 18, 0.7);
}

.service-overlay h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.service-overlay p {
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Quality Section */
.quality-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.quality-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.quality-icon {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* References Slider */
.references-slider {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  background: var(--white-color);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-color);
}

.reference-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 15px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--text-dark);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white-color);
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--background-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--white-color);
}

.footer-section p {
  color: var(--background-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--text-dark);
  color: var(--background-light);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .auth-buttons {
    display: none;
  }

  .mobile-auth-buttons {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
    margin-left: 0;
    justify-content: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--hover-bg);
    margin: 0.5rem 0;
    display: none;
  }

  .dropdown.mobile-active .dropdown-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .services-grid,
  .dashboard-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 40px;
  }

  .quality-features {
    flex-direction: column;
    gap: 1rem;
  }

  .about-preview h2,
  .services-preview h2,
  .quality-section h2,
  .references-section h2 {
    font-size: 2rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .slide {
    height: 300px;
  }

  .service-card {
    height: 350px;
  }

  .auth-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  /* Form responsive düzeltmeleri */
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-form,
  .modal-body {
    padding: 1rem 1.5rem 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .users-table,
  .catalogs-table {
    font-size: 0.8rem;
  }

  .users-table th,
  .users-table td,
  .catalogs-table th,
  .catalogs-table td {
    padding: 8px 10px;
  }

  .admin-actions {
    flex-direction: column;
    align-items: center;
  }

  .admin-action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .report-actions {
    margin-left: 0;
    width: 100%;
  }

  .report-actions .action-btn {
    width: 100%;
    text-align: center;
  }

  .catalog-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .catalog-actions .action-btn {
    width: 100%;
    text-align: center;
  }

  .reference-management-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .reference-management-actions {
    margin-left: 0;
    width: 100%;
  }

  .reference-management-actions .action-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-form,
  .modal-body {
    padding: 1rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-preview h2,
  .services-preview h2,
  .quality-section h2,
  .references-section h2 {
    font-size: 1.8rem;
  }

  .logo-img {
    height: 35px;
  }

  .slide {
    height: 250px;
  }

  .service-card {
    height: 300px;
  }

  .service-overlay {
    padding: 1.5rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.8rem;
  }

  .dashboard-card,
  .stat-card {
    padding: 1.5rem;
  }

  .modal-content {
    margin: 5% auto;
  }

  .modal-header,
  .modal-form {
    padding: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
body.loaded {
  opacity: 1;
}

/* Receipt and Report Item Styles */
.receipt-item,
.lock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--background-light);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.receipt-item:hover,
.lock-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.receipt-info,
.lock-info {
  flex: 1;
}

.receipt-info h4,
.lock-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.receipt-info p,
.lock-info p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.receipt-actions,
.lock-actions {
  margin-left: 1rem;
}

/* Modal Lists Scroll */
.receipts-list,
.locks-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.receipts-list::-webkit-scrollbar,
.locks-list::-webkit-scrollbar {
  width: 8px;
}

.receipts-list::-webkit-scrollbar-track,
.locks-list::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 4px;
}

.receipts-list::-webkit-scrollbar-thumb,
.locks-list::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

.receipts-list::-webkit-scrollbar-thumb:hover,
.locks-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Periyodik kontrol butonu */
.service-request-btn {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
}

.service-request-btn:hover {
  background: var(--text-dark);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 18, 18, 0.3);
}

.submit-btn {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
}

.submit-btn:hover {
  background: var(--text-dark);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 18, 18, 0.3);
}

/* Contact Form Styles */
.contact-form-section {
  padding: 80px 0;
  background: var(--background-light);
}

.contact-form-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-form-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-form textarea {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white-color);
  width: 100%;
  resize: vertical;
  font-family: inherit;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.1);
}

.contact-info-sidebar {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.contact-info-sidebar h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.quick-contact {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white-color);
  border-radius: 10px;
}

.method-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.method-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.method-info p {
  margin: 0;
  font-size: 0.9rem;
}

.method-info a {
  color: var(--text-light);
  text-decoration: none;
}

.method-info a:hover {
  color: var(--primary-color);
}

.working-hours {
  background: var(--white-color);
  padding: 1.5rem;
  border-radius: 10px;
}

.working-hours h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.hour-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .contact-form-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Catalog Management Styles */
.catalog-management-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalog-management-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.catalog-management-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.catalog-management-info {
  flex: 1;
}

.catalog-management-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.catalog-management-info p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.catalog-management-actions {
  margin-left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .catalog-management-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .catalog-management-actions {
    margin-left: 0;
    width: 100%;
  }

  .catalog-management-actions .action-btn {
    flex: 1;
    text-align: center;
  }
}

/* References Management Styles */
.references-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.add-reference-btn {
  background: var(--success-color);
  color: var(--white-color);
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-reference-btn:hover {
  background: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.references-management-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.references-management-list::-webkit-scrollbar {
  width: 8px;
}

.references-management-list::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 4px;
}

.references-management-list::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

.references-management-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.reference-management-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.reference-management-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.reference-management-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reference-management-info img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.reference-management-info div h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.reference-management-info div p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.reference-management-actions {
  margin-left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.current-image {
  margin-top: 1rem;
  text-align: center;
}

.current-image p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.current-image img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Slider image cleanup override START
   Keep container radius/shadow. Remove radius, shadow and background from images only. */
.references-slider .reference-img,
.references-slider .slide img {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  filter: none !important;
}
/* END */

/* Footer logo stilleri ekleyin: */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Logo beyaz renkte görünmesi için */
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 50px;
  }
}
