/* Item Basma Modülü CSS */
.item-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,30,0.85);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.item-modal {
  background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
  color: #eee;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  padding: 12px;
  min-width: 350px;
  max-width: 600px;
  width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  animation: modalSlideIn 0.3s ease-out;
}

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

/* Responsive modal boyutları */
@media (min-width: 768px) {
  .item-modal {
    max-width: 550px;
    width: 550px;
  }
}

@media (min-width: 1024px) {
  .item-modal {
    max-width: 600px;
    width: 600px;
  }
}

@media (min-width: 1200px) {
  .item-modal {
    max-width: 650px;
    width: 650px;
  }
}

@media (min-width: 1400px) {
  .item-modal {
    max-width: 700px;
    width: 700px;
  }
}

/* Responsive Search Section */
@media (max-width: 768px) {
  .item-modal-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .item-modal-title {
    flex-direction: column;
    gap: 8px;
  }
  
  .item-modal-title i {
    font-size: 1.3em;
  }
  
  .item-modal h3 {
    font-size: 1.3em;
  }
  
  .quick-filters {
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .filter-btn {
    padding: 8px 12px;
    font-size: 0.85em;
  }
  
  .search-stats {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Modern Header Styles */
.item-modal-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.item-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.item-modal-title i {
  font-size: 1.4em;
  color: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.item-modal h3 {
  color: #ffe066;
  font-weight: 700;
  margin: 0;
  font-size: 1.3em;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.item-modal-subtitle {
  color: #aaa;
  font-size: 0.9em;
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}

.item-modal .item-form-group {
  margin-bottom: 16px;
}

.item-modal label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: #b0b0b0;
}

.item-modal input, .item-modal select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #333;
  background: #1a1e24;
  color: #ffffff;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  font-size: 1em;
}

.item-modal input:focus, .item-modal select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
  outline: none;
  background: #1e2228;
  color: #ffffff;
}

.item-modal .item-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.item-modal .btn-item {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 20px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  font-size: 1em;
  box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}

.item-modal .btn-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,226,0.4);
  background: linear-gradient(135deg, #5ba0f2 0%, #4a90e2 100%);
}

.item-modal .btn-cancel {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  font-size: 1.3em;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.item-modal .btn-cancel:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: scale(1.1);
}

/* Modern Search Section Styles */
.item-modal-search-section {
  margin-bottom: 10px;
}

.search-container {
  margin-bottom: 10px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.search-input-wrapper:focus-within {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.15), 0 8px 25px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.search-icon {
  color: #666;
  font-size: 1em;
  margin-left: 10px;
  margin-right: 6px;
  transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
  color: #4a90e2;
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 1em;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.search-input-wrapper input::placeholder {
  color: #888;
  font-style: italic;
  opacity: 0.8;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1em;
  padding: 5px;
  margin-right: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.1);
}

.search-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 0 2px;
}

.search-count {
  color: #4a90e2;
  font-weight: 600;
  font-size: 0.9em;
  background: rgba(74, 144, 226, 0.1);
  padding: 2px 8px;
  border-radius: 14px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.search-tip {
  color: #888;
  font-size: 0.85em;
  font-style: italic;
}



.item-modal-results {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #1a1e24;
  border: 1px solid #333;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  padding: 5px;
}

/* Results Placeholder Styles */
.results-placeholder {
  text-align: center;
  padding: 20px 12px;
  color: #666;
}

.results-placeholder i {
  font-size: 2.2em;
  color: #444;
  margin-bottom: 10px;
  opacity: 0.6;
}

.results-placeholder h4 {
  color: #888;
  font-size: 1.1em;
  margin-bottom: 6px;
  font-weight: 500;
}

.results-placeholder p {
  color: #666;
  font-size: 0.95em;
  margin: 0;
  opacity: 0.8;
}

.item-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #2a2e34;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin-bottom: 2px;
  min-height: 48px;
}

.item-result-row:hover {
  background: linear-gradient(135deg, #2a2e34 0%, #3a3e44 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.item-result-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.item-result-img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: contain;
  border: 2px solid #333;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.3);
  padding: 2px;
}

.item-result-row:hover .item-result-img {
  border-color: #4a90e2;
  transform: scale(1.1);
}

.item-result-name {
  font-size: 0.95em;
  color: #e0e0e0;
  flex: 1;
  font-weight: 500;
  transition: color 0.3s ease;
}

.item-result-row:hover .item-result-name {
  color: #fff;
}

.item-modal-detail {
  min-height: 200px;
}

.item-detail-card {
  background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #333;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  position: relative;
}

.item-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
}

.item-detail-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffe066;
  flex: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.item-detail-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
  border: 3px solid #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.2);
  padding: 4px;
}

.item-detail-desc {
  font-size: 1em;
  color: #bbb;
  line-height: 1.5;
  margin-top: 15px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 4px solid #4a90e2;
}

.item-detail-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #1a1e24;
  padding: 12px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid #333;
}

.item-detail-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin-top: 8px;
  background: transparent;
  font-size: 0.95em;
  table-layout: auto;
}

.item-detail-table th, .item-detail-table td {
  padding: 8px 10px;
  border: 1px solid #333;
  text-align: center;
  font-size: 0.95em;
  white-space: nowrap;
  min-width: 70px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.item-detail-table th {
  background: linear-gradient(135deg, #2a2e34 0%, #3a3e44 100%);
  color: #ffe066;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.item-detail-table th:first-child,
.item-detail-table td:first-child {
  min-width: 100px;
  max-width: 150px;
  text-align: left;
  padding-left: 12px;
}

.item-detail-table td:first-child {
  background: linear-gradient(135deg, #2a2e34 0%, #3a3e44 100%);
  color: #e0e0e0;
  font-weight: 500;
}

.item-detail-table tr:hover td {
  background: rgba(74,144,226,0.1);
}

.item-mat-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  margin: 2px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.item-mat-img:hover {
  transform: scale(1.2);
  border-color: #4a90e2;
}

.item-mat-amount {
  font-size: 0.9em;
  color: #ffd700;
  font-weight: 600;
  margin-left: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#itemModalReselect {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1em;
  padding: 8px 18px;
  z-index: 2;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

#itemModalReselect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
  background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .item-modal {
    padding: 25px 20px 20px 20px;
    max-width: 95vw;
    width: 95vw;
    min-width: 350px;
  }
  
  .item-modal h3 {
    font-size: 1.4em;
    margin-bottom: 16px;
  }
  
  .item-modal-results {
    max-height: 250px;
  }
  
  .item-result-row {
    padding: 12px 16px;
    gap: 12px;
    min-height: 60px;
  }
  
  .item-result-img {
    width: 42px;
    height: 42px;
  }
  
  .item-result-name {
    font-size: 1em;
  }
  
  .item-detail-table {
    min-width: 500px;
    font-size: 0.85em;
  }
  
  .item-detail-table th, .item-detail-table td {
    padding: 6px 8px;
    min-width: 60px;
    font-size: 0.85em;
  }
  
  .item-mat-img {
    width: 26px;
    height: 26px;
  }
  
  .item-modal-search input {
    color: #ffffff;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .item-modal {
    padding: 20px 15px 15px 15px;
    max-width: 98vw;
    width: 98vw;
    min-width: 300px;
  }
  
  .item-modal-results {
    max-height: 200px;
  }
  
  .item-result-row {
    padding: 10px 14px;
    gap: 10px;
    min-height: 55px;
  }
  
  .item-result-img {
    width: 38px;
    height: 38px;
  }
  
  .item-result-name {
    font-size: 0.95em;
  }
  
  .item-detail-table {
    min-width: 400px;
    font-size: 0.8em;
  }
  
  .item-detail-table th, .item-detail-table td {
    padding: 5px 6px;
    min-width: 50px;
    font-size: 0.8em;
  }
  
  .item-mat-img {
    width: 24px;
    height: 24px;
  }
  
  .item-modal-search input {
    color: #ffffff;
    font-size: 0.95em;
  }
}

/* Sandık Modal Stilleri */
.chest-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.chest-modal {
  background: #1a1a1a;
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 24px 20px 20px 20px;
  max-width: 90vw;
  width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.chest-modal h3 {
  color: #ffd700;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6em;
  font-weight: 700;
}

.chest-modal .btn-cancel {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffd700;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chest-modal .btn-cancel:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.1);
}

.chest-modal-search {
  margin-bottom: 20px;
}

.chest-modal-search input {
  width: 100%;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
  transition: all 0.2s;
}

.chest-modal-search input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.chest-modal-results {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.chest-result-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 70px;
}

.chest-result-row:hover {
  background: #333;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.chest-result-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: #1a1a1a;
  padding: 4px;
}

.chest-result-name {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
}

.chest-result-count {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.9em;
}

.chest-result-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.chest-result-actions .btn {
  font-size: 0.85em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.chest-result-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.chest-modal-detail {
  display: none;
}

.chest-detail-card {
  background: #2a2a2a;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 25px;
  position: relative;
}

.chest-detail-header {
  text-align: center;
  margin-bottom: 25px;
}

.chest-detail-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 15px;
}

.chest-detail-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #1a1a1a;
  padding: 8px;
  margin: 0 auto 15px auto;
  display: block;
}

.chest-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.chest-detail-table th {
  background: #ffd700;
  color: #000;
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9em;
}

.chest-detail-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #333;
  color: #fff;
}

.chest-detail-table tr:nth-child(even) {
  background: #222;
}

.chest-detail-table tr:hover {
  background: #333;
}

.chest-detail-item-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: #1a1a1a;
  padding: 2px;
}

.chest-detail-chance {
  color: #6ab34f;
  font-weight: 600;
}

.chest-detail-amount {
  color: #ffd700;
  font-weight: 600;
}

.chest-detail-yang {
  color: #ff6b35;
  font-weight: 600;
}

.chest-detail-icon-img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.chest-result-icon-img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.chest-detail-status {
  color: #6ab34f;
  font-weight: 600;
}

.chest-detail-status.won {
  color: #6ab34f;
}

.chest-detail-status.lost {
  color: #dc3545;
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .chest-modal {
    padding: 20px 16px 16px 16px;
    max-width: 95vw;
    width: 95vw;
    min-width: 320px;
  }
  
  .chest-modal h3 {
    font-size: 1.4em;
    margin-bottom: 16px;
  }
  
  .chest-modal-results {
    max-height: 250px;
  }
  
  .chest-result-row {
    padding: 12px 16px;
    gap: 12px;
    min-height: 60px;
  }
  
  .chest-result-img {
    width: 42px;
    height: 42px;
  }
  
  .chest-result-name {
    font-size: 1em;
  }
  
  .chest-result-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .chest-result-actions .btn {
    font-size: 0.8em;
    padding: 4px 8px;
  }
  
  .chest-detail-table {
    min-width: 500px;
    font-size: 0.85em;
  }
  
  .chest-detail-table th, .chest-detail-table td {
    padding: 6px 8px;
    min-width: 60px;
    font-size: 0.85em;
  }
  
  .chest-detail-item-img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .chest-modal {
    padding: 16px 12px 12px 12px;
    max-width: 98vw;
    width: 98vw;
    min-width: 280px;
  }
  
  .chest-modal-results {
    max-height: 200px;
  }
  
  .chest-result-row {
    padding: 10px 14px;
    gap: 10px;
    min-height: 55px;
  }
  
  .chest-result-img {
    width: 38px;
    height: 38px;
  }
  
  .chest-result-name {
    font-size: 0.95em;
  }
  
  .chest-result-actions {
    flex-direction: column;
    gap: 3px;
  }
  
  .chest-result-actions .btn {
    font-size: 0.75em;
    padding: 3px 6px;
  }
  
  .chest-detail-table {
    min-width: 400px;
    font-size: 0.8em;
  }
  
  .chest-detail-table th, .chest-detail-table td {
    padding: 5px 6px;
    min-width: 50px;
    font-size: 0.8em;
  }
  
  .chest-detail-item-img {
    width: 24px;
    height: 24px;
  }
}

/* Sandık Sonucu Modal Stilleri */
.chest-result-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.chest-result-modal {
  background: #1a1a1a;
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 24px 20px 20px 20px;
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
  /* Resim indirme için optimize */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.chest-result-modal h3 {
  color: #ffd700;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
}

.chest-result-modal .btn-cancel {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffd700;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chest-result-modal .btn-cancel:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.1);
}

.chest-result-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #444;
}

.chest-result-chest-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #1a1a1a;
  padding: 6px;
  margin: 0 auto 12px auto;
  display: block;
}

.chest-result-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #ffd700;
  text-align: center;
}

.chest-result-table-wrap {
  margin-bottom: 20px;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #1a1a1a;
  /* Resim indirme için optimize */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.chest-result-table-wrap::-webkit-scrollbar {
  width: 8px;
}

.chest-result-table-wrap::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.chest-result-table-wrap::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.chest-result-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #ffed4e;
}

.chest-result-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.chest-result-table th {
  background: #ffd700;
  color: #000;
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
}

.chest-result-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #333;
  color: #fff;
}

.chest-result-table tr:nth-child(even) {
  background: #222;
}

.chest-result-table tr:hover {
  background: #333;
}

.chest-result-item-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #1a1a1a;
  padding: 4px;
  margin-right: 10px;
}

.chest-result-amount {
  color: #ffd700;
  font-weight: 600;
}

.chest-result-won {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

.chest-result-chance {
  color: #6ab34f;
  font-weight: 600;
}

.chest-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chest-result-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chest-result-input-group label {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.chest-result-input-group input {
  width: 80px;
  padding: 8px 12px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  flex-shrink: 0;
}

.chest-result-input-group input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.chest-result-actions .btn {
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.chest-result-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chest-result-actions .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .chest-result-modal {
    padding: 20px 16px 16px 16px;
    max-width: 95vw;
    width: 95vw;
  }
  
  .chest-result-modal h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  .chest-result-header {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .chest-result-chest-img {
    width: 60px;
    height: 60px;
  }
  
  .chest-result-title {
    font-size: 1.2em;
  }
  
  .chest-result-table th,
  .chest-result-table td {
    padding: 10px 6px;
    font-size: 0.9em;
  }
  
  .chest-result-item-img {
    width: 32px;
    height: 32px;
  }
  
  .chest-result-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .chest-result-input-group {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .chest-result-modal {
    padding: 16px 12px 12px 12px;
    max-width: 98vw;
    width: 98vw;
  }
  
  .chest-result-modal h3 {
    font-size: 1.3em;
  }
  
  .chest-result-chest-img {
    width: 50px;
    height: 50px;
  }
  
  .chest-result-title {
    font-size: 1.1em;
  }
  
  .chest-result-table th,
  .chest-result-table td {
    padding: 8px 4px;
    font-size: 0.8em;
  }
  
  .chest-result-item-img {
    width: 28px;
    height: 28px;
  }
}

/* Mob Drop Modal Stilleri */
.mob-drop-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.mob-drop-modal {
  background: #1a1a1a;
  border: 2px solid #ff6b6b;
  border-radius: 16px;
  padding: 24px 20px 20px 20px;
  max-width: 90vw;
  width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.mob-drop-modal h4 {
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6em;
  font-weight: 700;
}

/* Mob Name Card Styles */
.mob-drop-modal .mob-name-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
  border: 2px solid #ffd700 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
}

.mob-drop-modal .mob-name-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #ffd700, #ff6b6b, #ffd700) !important;
  animation: shimmer 2s infinite !important;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.mob-drop-modal .mob-name-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.mob-drop-modal .mob-icon {
  font-size: 1.8em !important;
  color: #ff6b6b !important;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3)) !important;
}

.mob-drop-modal .mob-name-text {
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: #ffd700 !important;
  text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3) !important;
  letter-spacing: 0.5px !important;
}

.mob-drop-modal .btn-cancel {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.mob-drop-modal .btn-cancel:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: scale(1.1);
}

.mob-drop-modal-search {
  margin-bottom: 20px;
}

.mob-drop-modal-search input {
  width: 100%;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
  transition: all 0.2s;
}

.mob-drop-modal-search input:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.mob-drop-modal-results {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.mob-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mob-result-row:hover {
  background: #333;
  border-color: #ff6b6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.mob-result-row:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.mob-result-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.mob-result-name {
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
}

.mob-result-count {
  color: #ff6b6b;
  font-size: 0.9em;
  font-weight: 500;
}

.mob-result-actions {
  display: flex;
  gap: 10px;
}

.mob-drop-modal-detail {
  /* display: none; - JavaScript ile kontrol ediliyor */
}

.mob-detail-header {
  margin-bottom: 20px;
}

.mob-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mob-drop-item {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s;
}

.mob-drop-item:hover {
  background: #333;
  border-color: #ff6b6b;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
}

.mob-drop-image {
  flex-shrink: 0;
}

.mob-drop-image img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #555;
}

.mob-drop-info {
  flex: 1;
  min-width: 0;
}

.mob-drop-name {
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.mob-drop-description {
  color: #aaa;
  font-size: 0.9em;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .mob-drop-modal {
    padding: 20px 16px 16px 16px;
    max-width: 95vw;
    width: 95vw;
  }
  
  .mob-drop-modal h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  .mob-drops-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mob-drop-item {
    padding: 15px;
  }
  
  .mob-drop-image img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mob-drop-modal {
    padding: 16px 12px 12px 12px;
    max-width: 98vw;
    width: 98vw;
  }
  
  .mob-drop-modal h3 {
    font-size: 1.3em;
  }
  
  .mob-drop-item {
    padding: 12px;
  }
  
  .mob-drop-image img {
    width: 36px;
    height: 36px;
  }
  
  .mob-drop-name {
    font-size: 1em;
  }
  
  .mob-drop-description {
    font-size: 0.8em;
  }
} 