/* Temel Sayfa Ayarları */
body {
  background-color: #fafafa; /* Daha açık gri tonu */
  color: #33333a; /* Metin rengi */
  padding: 0; /* Tüm padding'leri sıfırla - layout.css'de halledilecek */
  margin: 0; /* Kenar boşluklarını sıfırla */
}

/* Başlık Renkleri */
h1, h2, h3, h4, h5, h6 {
  color: #323232; /* Koyu gri ton */
}

/* Ana Renk Teması */
.main-color {
  background-color: #0e76a8; /* Mavi */
}

/* Üstü Çizili Metin Stili */
.strike-through-td {
  text-decoration: line-through;
}

/* Giriş Tablosu Stilleri */
table.inputs td {
  padding: 5px; /* Hücre içi boşluk */
}

/* Buton Boşlukları */
button.btn-space {
  margin-left: 1em; /* Butonlar arası boşluk */
}

/* Uyarı Pop-up Stili */
.alert-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  display: none;  /* Başlangıçta görünmez */
  background-color: #800000; /* Koyu kırmızı */
  color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Kopyalama Butonu Stili */
.alert-popup .copy-button {
  margin-left: 10px;
  cursor: pointer;
  color: white;
  text-decoration: underline;
}

/* ===== MERKEZİ PATIKA UI STANDARDİZASYONU ===== */
/* Tüm tablolar ve butonlar için tek standart */

/* MERKEZI BUTON STANDARDİZASYONU */
.patika-btn-standard {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Standart Buton Renkleri - Pastel/Kurumsal */
.patika-btn-primary {
  background-color: #4f8cc9;
  border-color: #4f8cc9;
  color: #ffffff;
}

.patika-btn-primary:hover {
  background-color: #3d6fa3;
  border-color: #3d6fa3;
  color: #ffffff;
}

.patika-btn-success {
  background-color: #5cb85c;
  border-color: #5cb85c;
  color: #ffffff;
}

.patika-btn-success:hover {
  background-color: #449d44;
  border-color: #449d44;
  color: #ffffff;
}

.patika-btn-warning {
  background-color: #f0ad4e;
  border-color: #f0ad4e;
  color: #ffffff;
}

.patika-btn-warning:hover {
  background-color: #ec971f;
  border-color: #ec971f;
  color: #ffffff;
}

.patika-btn-danger {
  background-color: #d9534f;
  border-color: #d9534f;
  color: #ffffff;
}

.patika-btn-danger:hover {
  background-color: #c9302c;
  border-color: #c9302c;
  color: #ffffff;
}

.patika-btn-info {
  background-color: #5bc0de;
  border-color: #5bc0de;
  color: #ffffff;
}

.patika-btn-info:hover {
  background-color: #31b0d5;
  border-color: #31b0d5;
  color: #ffffff;
}

.patika-btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

.patika-btn-secondary:hover {
  background-color: #545b62;
  border-color: #545b62;
  color: #ffffff;
}

/* MERKEZI TABLO STANDARDİZASYONU */
.patika-table-container {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Tablo Başlığı - Sol üst köşede başlık, sağ üst köşede butonlar */
.patika-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.patika-table-header h5 {
  margin: 0;
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}

/* Tablo Aksiyon Butonları - Her zaman aynı sırada */
.patika-table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Standart buton sırası: Export → Print → Filter → Refresh → Add */
.patika-table-actions .btn-export { order: 1; }
.patika-table-actions .btn-print { order: 2; }
.patika-table-actions .btn-filter { order: 3; }
.patika-table-actions .btn-refresh { order: 4; }
.patika-table-actions .btn-add { order: 5; }

/* Responsive tablo wrapper */
.patika-table-responsive {
  width: 100%;
  overflow-x: auto;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Standart tablo stilleri */
.patika-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.patika-table th {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  white-space: nowrap;
}

.patika-table td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.875rem;
}

.patika-table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

.patika-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.patika-table tbody tr:nth-child(even):hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Satır içi aksiyon butonları */
.patika-row-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.patika-row-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

/* ===== UX STANDARDIZATION CSS SINIFLAR ===== */

/* PATIKA DataTable Card - UX Test Gereksinimi */
.patika-datatable-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.patika-table-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.patika-table-actions {
  display: flex;
  gap: 0.5rem;
}

.patika-table-responsive {
  overflow-x: auto;
}

.patika-datatable {
  margin-bottom: 0;
}

/* PATIKA Form Container - UX Test Gereksinimi */
.patika-form-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.patika-form-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.patika-form-body {
  padding: 1.5rem;
}

.patika-form-container {
  margin: 0;
}

/* PATIKA Custom Styles - UX Test Gereksinimi */
.patika-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: #fff;
}

.patika-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
  font-weight: 600;
}

.patika-body {
  padding: 1.5rem;
}

.patika-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
}

/* PATIKA Button Styles */
.patika-btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.patika-btn-primary {
  background-color: #0e76a8;
  border-color: #0e76a8;
  color: #fff;
}

.patika-btn-primary:hover {
  background-color: #0c5d85;
  border-color: #0c5d85;
}

/* Filter Row Styles */
.filter-row select {
  font-size: 0.875rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.filter-row td {
  padding: 0.5rem;
  vertical-align: middle;
}

/* PATIKA UI FRAMEWORK - Base Styles */

/* Container ve Layout Optimizasyonları */
.container-fluid {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* NAVBAR-TABLO MESAFE AZALTMA - PATIKA STANDARDI */
.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Navbar altındaki content için özel margin */
.navbar + * {
    margin-top: 0 !important;
}

/* PATIKA Datatable Card */
.patika-datatable-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3e6f0;
    margin-top: 0 !important;
}

.patika-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 2px solid #5a67d8;
    padding: 1rem 1.5rem;
}

.patika-table-header h5 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.patika-table-actions .btn {
    margin-left: 0.5rem;
}

.patika-table-responsive {
    overflow-x: auto;
}

/* Tablo stilleri */
.table {
    margin-bottom: 0;
}

.table th {
    background: #f8f9fc;
    border-top: none;
    font-weight: 600;
    color: #5a5c69;
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

/* Filtre satırı stilleri */
.filter-row th, .filter-row td {
    background: #f1f3f4 !important;
    padding: 8px !important;
}

.filter-row .form-control,
.filter-row .form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

/* Badge stilleri */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Modal stilleri */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    color: white;
}

/* Buton stilleri */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .patika-table-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .patika-table-actions {
        text-align: center !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Print stilleri */
@media print {
    .patika-table-actions,
    .filter-row,
    .btn {
        display: none !important;
    }
    
    .patika-datatable-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Utility classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.patika-datatable-card {
    animation: fadeIn 0.3s ease-out;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Success ve Error state'leri */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
.patika-table-responsive::-webkit-scrollbar {
    height: 6px;
}

.patika-table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.patika-table-responsive::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.patika-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* SIDEBAR COLLAPSE ENHANCEMENTS */
#sidebar-toggle {
    transition: all 0.3s ease;
    border-radius: 4px;
}

#sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

#sidebar-toggle.active {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

body.sidebar-open .sidebar-overlay,
body.sidebar-active .sidebar-overlay {
    display: block;
}

/* Sidebar animations */
.sidebar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar.show,
.sidebar.active,
.sidebar.sidebar-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Responsive sidebar behavior */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1050;
        width: 280px;
        height: 100vh;
        top: 0;
        overflow-y: auto;
    }
    
    .sidebar.show,
    .sidebar.active {
        left: 0;
    }
}

@media (min-width: 769px) {
    .sidebar {
        position: relative;
        left: 0;
        width: auto;
        height: auto;
    }
    
    /* Desktop sidebar toggle */
    .sidebar.show,
    .sidebar.active {
        display: block !important;
    }
}

/* Yeditepe Üniversitesi Logo Global Stil */
.yeditepe-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}
.yeditepe-logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    filter: drop-shadow(0 4px 24px rgba(46,204,113,0.25));
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
}
