/* Modern Animasyonlar */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.scale-hover {
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s;
}
.scale-hover:hover {
  transform: scale(1.045);
  box-shadow: 0 6px 32px rgba(25,118,210,0.13);
}

.slide-up {
  animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

.soft-shadow {
  box-shadow: 0 4px 32px rgba(25,118,210,0.10) !important;
  transition: box-shadow 0.18s;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', Arial, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text);
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

* {
  font-family: 'Quicksand', Arial, sans-serif !important;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }
}


.App {
  min-height: 100vh;
  height: 100vh;
  background: transparent !important;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .App {
    height: auto;
    overflow-y: auto;
  }
}


.main-content {
  margin-left: 200px;
  margin-top: 80px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  background: transparent !important;
  min-height: calc(100vh - 80px);
  width: calc(100vw - 200px);
  height: calc(100vh - 80px);
  padding-left: 20px;
  padding-right: 20px;
  overflow: hidden;
}

.main-content-inner {
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(25,118,210,0.07);
  padding: 40px 40px 48px 40px;
  min-height: 340px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  animation: fadeIn 0.7s cubic-bezier(0.4,0,0.2,1);
  transition: box-shadow 0.18s;
}

/* Custom Scrollbar */
.main-content-inner::-webkit-scrollbar {
  width: 8px;
}

.main-content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.main-content-inner::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.main-content-inner::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

.admin-panel-content {
  max-width: 1400px !important;
  padding: 48px 56px !important;
  min-height: calc(100vh - 160px) !important;
  justify-content: flex-start !important;
  overflow-y: auto;
}

.wide-layout {
  max-width: 1400px !important;
  padding: 40px 56px !important;
}

.admin-panel-content:hover {
  box-shadow: 0 8px 32px rgba(25,118,210,0.12) !important;
}
.main-content-inner:hover {
  box-shadow: 0 16px 48px 0 rgba(25,118,210,0.11);
  border-radius: 28px;
  transition: border-radius 0.18s, box-shadow 0.18s;
}

@media (max-width: 900px) {
  .main-content {
    margin-left: 60px;
    width: calc(100vw - 60px);
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-content-inner {
    padding: 20px 16px 24px 16px;
    max-width: 98vw;
  }
  .wide-layout {
    padding: 20px 16px !important;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    height: auto;
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  .main-content {
    margin-left: 60px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 24px;
  }
}


button {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.7rem 2.2rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  margin: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25,118,210,0.08);
}
button:disabled {
  background: #90caf9;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: #125299;
}

/* Başlıklar */
h1, h2, h3, h4, h5 {
  color: #17406d;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Menüye Dön butonu */
.back-btn {
  position: absolute;
  left: 32px;
  top: 32px;
  background: #fff;
  color: #1976d2;
  border: 2px solid #90caf9;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25,118,210,0.07);
}
.back-btn:hover {
  background: #e3f2fd;
  color: #125299;
}

/* Responsive */
@media (max-width: 600px) {
  .main-menu {
    gap: 1rem;
  }
  .menu-item {
    width: 90px;
    padding: 1rem 0.5rem;
  }
  .step-label {
    width: 70px;
    font-size: 0.8rem;
  }
}

/* Mobile optimizations - 480px and below */
@media (max-width: 480px) {
  .main-content {
    margin-left: 50px;
    width: calc(100vw - 50px);
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 16px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    height: auto;
    overflow-y: auto;
  }
  .main-content-inner {
    padding: 16px 12px 60px 12px;
    border-radius: 12px;
  }
  .wide-layout {
    padding: 16px 12px 60px 12px !important;
    max-width: 100% !important;
  }
  .admin-panel-content {
    padding: 20px !important;
    max-width: 100% !important;
  }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
  .main-content-inner {
    padding: 12px 8px 60px 8px;
  }
  button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Grid responsive utilities */
.grid-responsive {
  display: grid;
  gap: 24px;
}

/* Tablet and above (default) */
@media (min-width: 768px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .grid-responsive {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Card grid for small cards */
.grid-small-cards {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-small-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .grid-small-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-small-cards {
    grid-template-columns: 1fr;
  }
}

/* Stat cards grid */
.grid-stats {
  display: grid;
  gap: 20px;
}

@media (min-width: 1200px) {
  .grid-stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1200px) and (min-width: 768px) {
  .grid-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-stats {
    grid-template-columns: 1fr;
  }
}

/* Two column grid for details */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .grid-two-col {
    grid-template-columns: 1fr;
  }
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 100%;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.9rem;
  }
  .table-responsive table th,
  .table-responsive table td {
    padding: 10px !important;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .table-responsive {
    font-size: 0.8rem;
  }
  .table-responsive table th,
  .table-responsive table td {
    padding: 8px !important;
    font-size: 0.75rem;
  }
}
