/* Kurumsal Hafıza Sistemi - Custom CSS */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --dark-bg: #1a1a1a; /* Yeni: Dark tema arka plan */
  --dark-text: #ffffff; /* Yeni: Dark tema metin */
  --dark-card: #2d2d2d; /* Yeni: Dark tema kart */
}

/* Genel Stiller */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease; /* Yeni: Tema geçiş animasyonu */
}

/* Dark Tema Stilleri */
body.dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark .card {
  background-color: var(--dark-card);
  color: var(--dark-text);
}

body.dark .table {
  color: var(--dark-text);
}

body.dark .table thead th {
  background-color: #343a40;
  color: var(--dark-text);
}

body.dark .form-control,
body.dark .form-select {
  background-color: var(--dark-card);
  border-color: #495057;
  color: var(--dark-text);
}

body.dark .navbar {
  background-color: #343a40 !important;
}

/* Navigation Stilleri */
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Card Stilleri */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-radius: 10px 10px 0 0 !important;
  border: none;
}

.card-header h5,
.card-header h4 {
  color: white;
  margin: 0;
}

/* Button Stilleri */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.btn-group .btn:last-child {
  border-radius: 0 8px 8px 0;
}

/* Avatar Stilleri */
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
}

/* Badge Stilleri */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

/* Table Stilleri */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Progress Bar Stilleri */
.progress {
  border-radius: 10px;
  height: 8px;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Alert Stilleri */
.alert {
  border: none;
  border-radius: 8px;
  font-weight: 500;
}

.alert-dismissible .btn-close {
  padding: 0.75rem 1rem;
}

/* Form Stilleri */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Input Group Stilleri */
.input-group-text {
  background-color: var(--light-color);
  border: 1px solid #dee2e6;
  border-radius: 8px 0 0 8px;
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

/* List Group Stilleri */
.list-group-item {
  border: none;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Footer Stilleri */
footer {
  margin-top: auto;
  background: linear-gradient(135deg, var(--dark-color), #495057);
}

/* Responsive Stiller */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    border-radius: 8px !important;
    margin-bottom: 0.25rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
  }

  .card {
    background-color: var(--dark-card);
    color: var(--dark-text);
  }

  .table {
    color: var(--dark-text);
  }

  .table thead th {
    background-color: #343a40;
    color: var(--dark-text);
  }

  .form-control,
  .form-select {
    background-color: var(--dark-card);
    border-color: #495057;
    color: var(--dark-text);
  }
}

/* Animation Stilleri */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Security Badge */
.security-badge {
  position: relative;
  display: inline-block;
}

.security-badge::after {
  content: "🔒";
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
}

/* File Type Icons */
.file-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 8px;
}

/* Status Indicators */
.status-online {
  color: var(--success-color);
}

.status-offline {
  color: var(--secondary-color);
}

.status-busy {
  color: var(--warning-color);
}

/* Dashboard Cards */
.dashboard-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Statistics Cards */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}

.stat-card .card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .card-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Activity Timeline */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.activity-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.activity-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid white;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

