:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --secondary: #3f37c9;
  --success: #4cc9f0;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --border: #dee2e6;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --sidebar-width: 250px;
  --sidebar-collapsed: 60px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f5f7fb;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

/* Sidebar styles */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: white;
  transition: all 0.3s ease;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px;
  padding: 4px;
}

.logo:hover {
  background: rgba(255,255,255,0.1);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  transition: opacity 0.3s;
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.toggle-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.1);
}

.sidebar-nav {
  padding: 15px 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  gap: 12px;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
}

.nav-item.active {
  background: rgba(255,255,255,0.15);
  border-right: 3px solid white;
}

.nav-item i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.nav-text {
  transition: opacity 0.3s;
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Sidebar toggle bottom button */
.sidebar-toggle-bottom {
  padding: 15px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.toggle-bottom-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
}

.toggle-bottom-btn:hover {
  background: rgba(255,255,255,0.2);
}

.toggle-text {
  transition: opacity 0.3s;
}

.sidebar.collapsed .toggle-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Main content styles */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

.content-header {
  background: white;
  padding: 20px 30px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.content-body {
  flex: 1;
  padding: 30px;
}

.welcome-section {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.welcome-logo {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.welcome-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 18px 24px;
  background-color: var(--light);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--gray);
  font-weight: 500;
}

input, select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-button {
  background: white;
  color: var(--gray);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.file-input-button:hover {
  border-color: var(--primary-light);
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary);
}

.btn-secondary {
  background-color: white;
  color: var(--gray);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--light);
}

.btn-danger {
  background-color: #e63946;
  color: white;
}

.btn-danger:hover {
  background-color: #d00000;
}

.btn-warning {
  background-color: #f8961e;
  color: white;
}

.btn-warning:hover {
  background-color: #f3722c;
}

.search-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-input {
  flex: 1;
  min-width: 250px;
}

.search-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

thead {
  background-color: var(--light);
}

th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: rgba(67, 97, 238, 0.03);
}

.date-header {
  background-color: rgba(67, 97, 238, 0.1);
  font-weight: 600;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
}

.image-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.no-image {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.8rem;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.no-data i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Modal oynasi */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.modal-close:hover {
  background-color: var(--light);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .sidebar.collapsed {
    height: 70px;
    overflow: hidden;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-body {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .search-section {
    flex-direction: column;
  }
  
  .search-input {
    min-width: 100%;
  }
  
  th, td {
    padding: 12px 8px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .sidebar-toggle-bottom {
    display: none;
  }
}