body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ed 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: #ffff;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.login-box img {
  margin-bottom: 20px;
}

.login-box h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.3s;
  margin-bottom: 15px;
}

.login-box input:focus {
  outline: none;
  border-color: #667eea;
}

.login-box .remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.login-box .remember-me input {
  width: auto;
  margin-right: 10px;
}

.login-box .remember-me label {
  font-size: 14px;
  color: #555;
}

.login-box button {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.login-box button:active {
  transform: translateY(0);
}

/* Panel Styles */
.panel-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.panel-container.active {
  opacity: 1;
}

.navbar {
  background: #ffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo-section img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar .logo-section .title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.navbar .logo-section .title-main {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.navbar .logo-section .title-sub {
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

.navbar .right-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar .nav-buttons button {
  background: none;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .nav-buttons button:hover {
  background: #f0f4f8;
  color: #667eea;
}

.navbar .nav-buttons button.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.navbar .nav-buttons button.logout {
  background: #e74c3c;
  color: white;
}

.navbar .nav-buttons button.logout:hover {
  background: #c0392b;
}

.tab-content {
  padding: 30px;
  flex-grow: 1;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Telegram Link Oluşturucu Özel Stilleri */
.telegram-link-generator .message-type {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.telegram-link-generator .message-type button {
  flex: 1;
  padding: 8px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.telegram-link-generator .message-type button.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.telegram-link-generator .message-section {
  display: none;
}

.telegram-link-generator .message-section.active {
  display: block;
}

.telegram-link-generator .template-item {
  background: #f5f7fa;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}

.telegram-link-generator .template-item:hover {
  border-color: #667eea;
}

.telegram-link-generator .template-item.selected {
  background: #e8eeff;
  border-color: #667eea;
}

.telegram-link-generator .template-item .template-actions {
  display: flex;
  gap: 5px;
}

.telegram-link-generator .template-item .edit-btn,
.telegram-link-generator .template-item .delete-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.telegram-link-generator .template-item .edit-btn:hover {
  background: #2980b9;
}

.telegram-link-generator .template-item .delete-btn {
  background: #e74c3c;
}

.telegram-link-generator .template-item .delete-btn:hover {
  background: #c0392b;
}

.telegram-link-generator .button-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.telegram-link-generator .add-template-btn {
  flex: 1;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.telegram-link-generator .add-template-btn:hover {
  background: #229954;
}

.telegram-link-generator .btn {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.telegram-link-generator .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.telegram-link-generator .btn:active {
  transform: translateY(0);
}

.telegram-link-generator .result {
  margin-top: 20px;
  display: none;
}

.telegram-link-generator .result.show {
  display: block;
}

.telegram-link-generator .link-box-item {
  background: #f5f7fa;
  padding: 15px;
  border-radius: 8px;
  word-wrap: break-word;
  font-size: 13px;
  color: #333;
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
}

.telegram-link-generator .link-box-wrapper {
  margin-bottom: 15px;
}

.telegram-link-generator .link-content {
  background: #f5f7fa;
  padding: 15px;
  border-radius: 8px;
  word-wrap: break-word;
  font-size: 13px;
  color: #333;
  border: 1px solid #e0e0e0;
  margin-bottom: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.telegram-link-generator .link-box-item .link-text {
  font-weight: 500;
  color: #007bff;
}

.telegram-link-generator .preview-box {
  background: #fff9e6;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 2px solid #ffd700;
}

.telegram-link-generator .preview-box h4 {
  margin-bottom: 10px;
  color: #666;
  font-size: 13px;
}

.telegram-link-generator .preview-content {
  white-space: pre-wrap;
  font-size: 14px;
  color: #333;
}

.telegram-link-generator .action-buttons {
  display: flex;
  gap: 10px;
}

.telegram-link-generator .copy-btn,
.telegram-link-generator .open-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.telegram-link-generator .copy-btn {
  background: #34495e;
  color: white;
}

.telegram-link-generator .copy-btn:hover {
  background: #2c3e50;
}

.telegram-link-generator .open-btn {
  background: #0088cc;
  color: white;
}

.telegram-link-generator .open-btn:hover {
  background: #007ab8;
}

.telegram-link-generator .success-msg {
  text-align: center;
  color: #27ae60;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}

.telegram-link-generator .success-msg.show {
  display: block;
}

.telegram-link-generator .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.telegram-link-generator .modal.show {
  display: flex;
}

.telegram-link-generator .modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

.telegram-link-generator .modal-content h3 {
  margin-bottom: 15px;
}

.telegram-link-generator .modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.telegram-link-generator .modal-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.telegram-link-generator .modal-buttons .save {
  background: #27ae60;
  color: white;
}

.telegram-link-generator .modal-buttons .cancel {
  background: #95a5a6;
  color: white;
}

/* Filtreleme Dropdown */
.filter-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-section select {
  flex: 1;
  min-width: 160px;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: white;
  cursor: pointer;
  transition: border 0.3s;
}

.filter-section select:focus {
  outline: none;
  border-color: #667eea;
}

@media (max-width: 768px) {
  .login-box {
    padding: 20px;
  }
  .login-box h2 {
    font-size: 20px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 10px;
  }
  .navbar .logo-section .title-main {
    font-size: 16px;
  }
  .navbar .logo-section .title-sub {
    font-size: 13px;
  }
  .navbar .right-section {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .navbar .nav-buttons {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .navbar .nav-buttons button {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: 13px;
  }
  .tab-content {
    padding: 20px;
  }
  .filter-section {
    flex-direction: column;
  }
  .filter-section select {
    width: 100%;
  }
}

/* ---- KASA MODAL İÇİN GÜNCEL STİL ---- */
#cashModal {
  z-index: 2001 !important;
}

/* Modal kutusu: dikey flex, üst sabit - alt scroll */
#cashModal .modal-inner {
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header: scroll dışı kalacak kısım */
#cashModal .modal-header {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

/* Gövde: scroll eden kısım */
#cashModal .modal-body {
  flex: 1 1 auto;
  padding: 16px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Üst kasa kartı ve form arası boşluklar */
#cashModal .top-section {
  margin-bottom: 12px;
}

#cashModal .form-section {
  margin-bottom: 12px;
}

/* Liste artık kendi başına scroll olmasın, body ile birlikte aksın */
#transactionList {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

/* Modal açıkken arka plan kaymasın */
body.modal-open {
  overflow: hidden;
}

/* ——— KASA BUTONU ÖZEL ——— */
.navbar .nav-buttons #cashBtn {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.navbar .nav-buttons #cashBtn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

#profileBtn:hover {
  background: #4f46e5; /* indigo-700 */
}

#profileDropdown {
  animation: fadeIn 0.2s ease-in-out;
}

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