:root {
  --bs-primary: #1e40af;
  --bs-primary-rgb: 30, 64, 175;
  --bs-primary-dark: #1e3a8a;
  --bs-primary-light: #2563eb;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2563eb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
}

/* Navbar Styles - Açık Gri Header */
.navbar {
  background: #f1f5f9 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #cbd5e1;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  color: #475569 !important;
}

.navbar-nav .nav-link:hover {
  color: #1e40af !important;
  transform: translateY(-2px);
}

.navbar-nav .dropdown-menu {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
  color: #475569;
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem;
}

.navbar-nav .dropdown-item:hover {
  background: #eff6ff;
  color: #1e40af;
}

.navbar-nav .dropdown-item i {
  color: #2563eb;
  width: 20px;
}

.navbar-toggler {
  border-color: #e2e8f0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 58, 138, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tool Card Styles */
.tool-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid #e2e8f0;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.15);
  border-color: #3b82f6;
}

.tool-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.tool-card-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.tool-card-body {
  padding: 2rem;
}

/* Main Container */
.main-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}

/* File Upload Area */
.file-upload-area {
  border: 3px dashed #3b82f6;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.file-upload-area.dragover {
  background: #dbeafe;
  border-color: #1e40af;
}

.file-upload-area i {
  font-size: 4rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

/* Button Styles - Kurumsal Mavi */
.btn-primary {
  background: #1e40af;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
  color: white;
}

.btn-primary:focus {
  background: #1e3a8a;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-success {
  background: #059669;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: white;
}

.btn-success:hover {
  background: #047857;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.btn-danger {
  background: #dc2626;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-outline-primary {
  border-color: #2563eb;
  color: #2563eb;
}

.btn-outline-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

/* Preview Area */
.preview-area {
  border-radius: 12px;
  padding: 1.5rem;
  background: #f8fafc;
  margin-top: 1.5rem;
  border: 1px solid #e2e8f0;
}

.preview-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Info Box */
.info-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box i {
  color: #2563eb;
  margin-right: 0.5rem;
}

/* AdSense Container */
.adsense-container {
  margin: 2rem 0;
  text-align: center;
  min-height: 100px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem;
  border: 2px dashed #cbd5e1;
  position: relative;
}

.adsense-container::before {
  content: "Reklam Alanı";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 0;
}

.adsense-container ins {
  position: relative;
  z-index: 1;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .file-upload-area {
    padding: 2rem 1rem;
  }
  
  .tool-card-header i {
    font-size: 2rem;
  }
}

/* Footer */
footer {
  margin-top: auto;
  background: #1e293b !important;
}

footer a {
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
  color: #60a5fa !important;
}

footer h5 {
  color: white;
}

footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hero Section - Kurumsal Koyu Mavi */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 4rem 0;
  border-radius: 0 0 30px 30px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}

/* Form Controls */
.form-control {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem;
}

.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-range::-webkit-slider-thumb {
  background: #2563eb;
}

.form-range::-moz-range-thumb {
  background: #2563eb;
}

/* Card Styles */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.05);
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0 !important;
}

/* Accordion */
.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.accordion-button {
  background: #f8fafc;
  color: #1e3a8a;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: #eff6ff;
  color: #1e40af;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

/* Table */
.table {
  border-color: #e2e8f0;
}

.table thead th {
  background: #f8fafc;
  color: #1e3a8a;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}

/* Text Colors */
.text-primary {
  color: #2563eb !important;
}

/* Link Colors */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  color: #1e40af;
}

/* Badge */
.badge {
  border-radius: 6px;
  padding: 0.35em 0.65em;
}
