/* === CSS DEĞİŞKENLERİ === */
:root {
  --primary-orange: #f07b26;
  --dark-orange: #bc570d;
  --light-orange: #fff3e0;
  --primary-white: #ffffff;
  --primary-black: #252525;
  --light-gray: #f8f9fa;
  --border-color: #dee2e6;
  --border-radius: 8px;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* === FORM CONTAINER STYLES === */
.login-form,
.register-form,
.reset-form,
.forgot-form,
.profil-form {
  max-width: 700px;
  margin: 40px auto;
  background: var(--primary-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border-top: 4px solid var(--primary-orange);
}

.login-form h2,
.register-form h2,
.reset-form h2,
.forgot-form h2,
.profil-form h2 {
  color: var(--primary-black);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.login-form h2::after,
.register-form h2::after,
.reset-form h2::after,
.forgot-form h2::after,
.profil-form h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
  border-radius: 2px;
}

/* === ALERT MESSAGES === */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid;
  position: relative;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-info {
  background: var(--light-orange);
  color: #856404;
  border-left-color: var(--primary-orange);
}

.alert-warning {
  background: var(--light-orange);
  color: #856404;
  border-left-color: var(--primary-orange);
}

.alert-dismissible {
  padding-right: 45px;
}

.alert-dismissible .close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}

.alert-dismissible .close:hover {
  opacity: 1;
}

.text-info-custom {
  background: var(--light-orange);
  color: var(--primary-orange);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-orange);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

/* === FORM CONTROLS === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-black);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 15px;
  transition: var(--transition);
  background: var(--light-gray);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: var(--primary-white);
  box-shadow: 0 0 0 3px rgba(240, 123, 38, 0.1);
}

.form-control:hover {
  border-color: rgba(240, 123, 38, 0.6);
  background: var(--primary-white);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
  color: var(--primary-white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-orange), #a04a08);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 123, 38, 0.3);
  color: var(--primary-white);
}

.btn-secondary {
  background: #6c757d;
  color: var(--primary-white);
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  color: var(--primary-white);
}

.btn-success {
  background: #28a745;
  color: var(--primary-white);
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
  color: var(--primary-white);
}

.btn-danger {
  background: #dc3545;
  color: var(--primary-white);
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  color: var(--primary-white);
}

.btn-warning {
  background: var(--primary-orange);
  color: var(--primary-white);
}

.btn-warning:hover {
  background: var(--dark-orange);
  transform: translateY(-2px);
  color: var(--primary-white);
}

.btn-info {
  background: #17a2b8;
  color: var(--primary-white);
}

.btn-info:hover {
  background: #138496;
  transform: translateY(-2px);
  color: var(--primary-white);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === BUTTON GROUPS === */
.btn-group {
  display: inline-flex;
  vertical-align: middle;
}

.btn-group .btn {
  margin-right: 5px;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* === TABLE STYLES === */
.table {
  width: 100%;
  margin-bottom: 1rem;
  background: transparent;
  border-collapse: collapse;
}

.table td,
.table th {
  padding: 12px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.table th {
  font-weight: 700;
  text-align: center;
}

.table td:first-child {
  width: 35%;
  font-weight: 600;
  color: var(--primary-black);
}

.table-borderless td,
.table-borderless th {
  border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(240, 123, 38, 0.05);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Dashboard tablosu için özel stillendirme */
.table thead th {
  text-align: center;
  vertical-align: middle;
  padding: 15px 8px;
  white-space: nowrap;
}

.table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 10px 6px;
  font-size: 14px;
}

/* Checkbox sütunu */
.table tbody td:first-child,
.table thead th:first-child {
  width: 25px !important;
  text-align: center;
  padding: 8px 4px;
}

/* Tarih sütunu */
.table tbody td:nth-child(2),
.table thead th:nth-child(2) {
  width: 70px;
  text-align: center;
  font-size: 13px;
}

/* Sayı sütunları - Aktif, İndüktif, Kapasitif */
.table tbody td:nth-child(3),
.table tbody td:nth-child(4),
.table tbody td:nth-child(5),
.table thead th:nth-child(3),
.table thead th:nth-child(4),
.table thead th:nth-child(5) {
  width: 75px;
  text-align: center;
  font-size: 13px;
}

/* Ceza sütunları */
.table tbody td:nth-child(6),
.table tbody td:nth-child(7),
.table thead th:nth-child(6),
.table thead th:nth-child(7) {
  width: 60px;
  text-align: center;
  font-size: 12px;
}

/* Aylık tüketim sütunu */
.table tbody td:nth-child(8),
.table thead th:nth-child(8) {
  width: 75px;
  text-align: center;
  font-size: 13px;
}

/* Kullanım sütunu - genişletildi */
.table tbody td:nth-child(9),
.table thead th:nth-child(9) {
  width: 250px;
  text-align: left;
  padding: 8px 12px;
  white-space: normal;
  word-wrap: break-word;
  font-size: 13px;
}

/* Açıklama sütunu - daraltıldı */
.table tbody td:nth-child(10),
.table thead th:nth-child(10) {
  width: 180px;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  font-size: 12px;
}

/* İşlem sütunu */
.table tbody td:last-child,
.table thead th:last-child {
  width: 90px;
  text-align: center;
}

/* === FORM LINKS === */
.login-form p,
.register-form p,
.reset-form p,
.forgot-form p,
.profil-form p {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.login-form a,
.register-form a,
.reset-form a,
.forgot-form a,
.profil-form a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.login-form a:hover,
.register-form a:hover,
.reset-form a:hover,
.forgot-form a:hover,
.profil-form a:hover {
  color: var(--dark-orange);
  text-decoration: underline;
}

/* === DASHBOARD STYLES === */
.dashboard-form {
  background: var(--primary-white);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.dashboard-form label {
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard form input stilleri - normal kutu görünümü */
.dashboard-form .form-control {
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  background: var(--light-gray);
  padding: 12px 15px;
  font-weight: 400;
  font-size: 15px;
  color: var(--primary-black);
}

.dashboard-form .form-control:focus {
  border-color: var(--primary-orange);
  background: var(--primary-white);
  box-shadow: 0 0 0 3px rgba(240, 123, 38, 0.1);
}

.dashboard-form .form-control:hover {
  border-color: rgba(240, 123, 38, 0.6);
  background: var(--primary-white);
}

/* Number format inputları için özel stil */
.dashboard-form .number-format {
  text-align: right;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  font-size: 15px;
}

/* Placeholder stilleri - normal boyut, silik renk, italik yok */
.dashboard-form .form-control::placeholder {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  opacity: 0.7;
  font-style: normal;
}

.dashboard-form .number-format::placeholder {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  opacity: 0.7;
  text-align: center;
  font-style: normal;
}

/* Date input için özel stil */
.dashboard-form input[type="date"] {
  font-weight: 400;
  font-size: 15px;
  color: var(--primary-black);
}

.card {
  background: var(--primary-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: none;
  margin-bottom: 30px;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
}

.bg-success {
  background-color: #28a745 !important;
  color: white;
}

.bg-warning {
  background-color: var(--primary-orange) !important;
  color: white;
}

.bg-danger {
  background-color: #dc3545 !important;
  color: white;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  justify-content: center;
}

.page-item {
  margin: 0 2px;
}

.page-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--primary-orange);
  text-decoration: none;
  background-color: var(--primary-white);
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: var(--transition);
}

.page-link:hover {
  color: var(--primary-white);
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.page-item.active .page-link {
  color: var(--primary-white);
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.text-danger { color: #dc3545; }
.text-success { color: #28a745; }
.text-warning { color: var(--primary-orange); }
.text-info { color: #17a2b8; }

.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }

.p-3 { padding: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* === NUMBER FORMAT INPUT === */
.number-format {
  text-align: right;
  font-family: 'Courier New', monospace;
}

.number-format:focus {
  text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .login-form,
  .register-form,
  .reset-form,
  .forgot-form,
  .profil-form {
    margin: 20px auto;
    padding: 30px 20px;
    max-width: 95%;
  }
  
  .table td {
    display: block;
    width: 100% !important;
    padding: 10px 0;
    text-align: left !important;
  }
  
  .table td:first-child {
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  .dashboard-form .row {
    flex-direction: column;
  }
  
  .dashboard-form .col-md-2,
  .dashboard-form .col-md-3 {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .btn-group .btn {
    width: auto;
    margin-bottom: 0;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .table-responsive {
    font-size: 12px;
  }
  
  .table tbody td:nth-child(10) {
    width: auto;
  }
}