@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Renk Paleti - Light Luxe */
  --primary-color: #B59E5B;
  /* Şampanya Altını */
  --primary-hover: #9E884B;
  --bg-color: #F8F9FA;
  /* Açık Gri/İnci */
  --surface-color: #FFFFFF;
  /* Beyaz Yüzeyler */
  --text-dark: #1A1A1A;
  /* Koyu Gece (Neredeyse siyah) */
  --text-muted: #6C757D;
  --border-color: #EAEAEA;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;

  /* Gölgeler & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-bg: #FFFFFF;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

/* Butonlar */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(181, 158, 91, 0.3);
  transform: translateY(-1px);
}

.btn-outline-custom {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Kartlar */
.luxe-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 0.3s ease;
}

.luxe-card:hover {
  box-shadow: var(--shadow-md);
}

/* Layout - Wrapper & Sidebar */
.wrapper {
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
}

.sidebar-brand span {
  color: var(--primary-color);
}

.sidebar-menu {
  flex: 1;
  padding: 24px 0;
  overflow-y: auto;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.sidebar-menu a i {
  width: 24px;
  font-size: 18px;
  margin-right: 12px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--primary-color);
  background-color: rgba(181, 158, 91, 0.05);
}

.sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.sidebar-footer a {
  color: var(--danger-color);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.sidebar-footer a i {
  margin-right: 10px;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  transition: all 0.3s ease;
  padding-bottom: 40px;
}

/* Header */
.top-header {
  height: var(--header-height);
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-left .toggle-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  display: none;
  /* Mobilde görünecek */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.header-profile .user-info h6 {
  margin: 0;
  font-size: 14px;
}

.header-profile .user-info small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Table Design */
.table-wrapper {
  overflow-x: auto;
}

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

.luxe-table th {
  background-color: #F8F9FA;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.luxe-table td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 15px;
}

.luxe-table tr:hover td {
  background-color: rgba(181, 158, 91, 0.02);
}

.luxe-table tr:last-child td {
  border-bottom: none;
}

/* Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-new {
  background-color: rgba(181, 158, 91, 0.1);
  color: var(--primary-color);
}

.status-approved {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.status-cancelled {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

/* Form & Select */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(181, 158, 91, 0.25);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(181, 158, 91, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Detail Page Layout */
.product-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.product-list-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

/* Login Page */
.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

.login-container {
  max-width: 900px;
  width: 100%;
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
}

.login-left {
  flex: 1;
  background: linear-gradient(45deg, rgba(26, 26, 26, 0.8), rgba(181, 158, 91, 0.6)), url('https://images.unsplash.com/photo-1594035910387-fea47794261f?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.login-right {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .header-left .toggle-btn {
    display: block;
  }

  .login-container {
    flex-direction: column;
    margin: 20px;
  }

  .login-left {
    min-height: 250px;
  }
}