// Ölçü İste Component Stil Dosyası
// Header
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.header-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.header-content {
  flex: 1;
}

h3 {
  margin: 0;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.subtitle {
  margin: 0.25rem 0 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

// Animasyonlar
@keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  // Dosya Yükleme Alanı
  .dosya-sec {
    margin-bottom: 1rem;
  }

  .dosya-label {
    display: block;
    cursor: pointer;
  }

  .dosya-box {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);

    &:hover {
      border-color: rgba(255, 255, 255, 0.5);
      background: rgba(255, 255, 255, 0.08);
    }

    &.drag-over {
      border-color: #4a9eff;
      background: rgba(74, 158, 255, 0.1);
      transform: scale(1.02);
    }
  }

  .dosya-icon {
    font-size: 2rem;
    margin-bottom: 0rem;
    animation: float 3s ease-in-out infinite;
  }

  .dosya-text {
    color: white;

    strong {
      display: block;
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    small {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
    }
  }

  // Dosyalar Listesi
  .dosyalar-listesi {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    // backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .liste-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    cursor: pointer;
    user-select: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);

    &:hover {
      background: rgba(255, 255, 255, 0.08);
    }
  }

  .liste-baslik-sol {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    span {
      color: white;
      font-weight: bold;
      font-size: 1rem;
    }
  }

  .liste-baslik-sag {
    display: flex;
    align-items: center;
  }

  .liste-toggle-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: transform 0.3s ease;

    &.acik {
      transform: rotate(180deg);
    }
  }

  .temizle-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;

    &:hover {
      background: rgba(239, 68, 68, 0.3);
      border-color: rgba(239, 68, 68, 0.5);
      transform: translateY(-1px);
    }
  }

  // Liste içeriği (Collapsible)
  .liste-icerik {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    &.acik {
      max-height: 500px; // Yeterli yükseklik
      border-top-color: rgba(255, 255, 255, 0.2);
    }
  }

  // Dosya Item
  .dosya-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.15);
    }

    &:last-child {
      margin-bottom: 0;
    }
  }

  .dosya-bilgi {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.8rem;
  }

  .dosya-icon-small {
    font-size: 1.5rem;
    opacity: 0.8;
  }

  .dosya-detay {
    flex: 1;
  }

  .dosya-ad {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    word-break: break-all;
  }

  .dosya-boyut {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
  }

  .dosya-islemler {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .durum-indikatoru {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;

    &.basarili {
      background: rgba(34, 197, 94, 0.2);
      color: #22c55e;
      border: 1px solid rgba(34, 197, 94, 0.3);
    }

    &.yukleniyor {
      background: rgba(59, 130, 246, 0.2);
      color: #3b82f6;
      border: 1px solid rgba(59, 130, 246, 0.3);
      animation: pulse 1.5s ease-in-out infinite;
    }

    &.hata {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
  }

  .btn-3d {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;

    &:hover:not(:disabled) {
      background: rgba(34, 197, 94, 0.2);
      border-color: rgba(34, 197, 94, 0.4);
      transform: translateY(-1px);
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    // Loading durumu - Mavi
    &.yukleniyor {
      background: rgba(59, 130, 246, 0.1);
      border-color: rgba(59, 130, 246, 0.2);
      color: #3b82f6;
      animation: pulse 1.5s ease-in-out infinite;

      &:hover:not(:disabled) {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
      }
    }

    // Başarılı durumu - Yeşil
    &.basarili {
      background: rgba(34, 197, 94, 0.1);
      border-color: rgba(34, 197, 94, 0.2);
      color: #22c55e;

      &:hover:not(:disabled) {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
      }
    }

    // Hata durumu - Kırmızı
    &.hata {
      background: rgba(239, 68, 68, 0.1);
      border-color: rgba(239, 68, 68, 0.2);
      color: #ef4444;

      &:hover:not(:disabled) {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
      }
    }

    .btn-3d-content {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }

    .btn-3d-icon {
      width: 18px;
      height: 18px;
      object-fit: contain;
      // filter: brightness(0) invert(1);
    }

    .btn-3d-fallback {
      font-size: 0.75rem;
      font-weight: bold;
      color: inherit;
    }

    .btn-3d-loading,
    .btn-3d-success,
    .btn-3d-error {
      font-size: 0.9rem;
      font-weight: bold;
      color: inherit;
    }

    .btn-3d-loading {
      animation: spin 1s linear infinite;
    }
  }

  .sil-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;

    &:hover {
      background: rgba(239, 68, 68, 0.2);
      border-color: rgba(239, 68, 68, 0.4);
      transform: translateY(-1px);
    }
  }

  // Animasyonlar
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }