/* Apple-Style File Upload Section */
.dvaks-file-upload-section {
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.file-upload-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.file-upload-heading svg {
    color: #0071e3;
}

.file-upload-description {
    font-size: 15px;
    color: #6e6e73;
    margin: 0 0 24px 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* File Upload Items */
.file-upload-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-upload-item {
    background: #fbfbfd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.file-upload-item:hover {
    border-color: rgba(0, 113, 227, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Item Header */
.file-upload-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    background: white;
    transition: background 0.2s ease;
}

.file-upload-item-header:hover {
    background: #fafafa;
}

.file-upload-item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0071e3 0%, #0062cc 100%);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.file-upload-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;height:32px;
    background:#f5f5f7;
    border:none;border-radius:50%;
    cursor:pointer;
    transition:all .2s ease;
    flex-shrink:0;
  }
/* İkonun görünürlüğünü garanti altına al */
.file-upload-toggle .chevron{
    width:16px;height:16px;
    display:block;           /* inline-space sorunlarını önler */
    color:#1d1d1f;           /* currentColor için temel renk */
    overflow:visible;        /* stroke taşmalarını kısmaz */
  }
.file-upload-toggle .chevron path{
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .3s cubic-bezier(.28,.11,.32,1);
  }
  
  /* Açıldıysa oku döndürmek isterseniz */
.file-upload-toggle[aria-expanded="true"] .chevron path{
    transform:rotate(180deg);
  }
.file-upload-toggle:hover {
    background: #e8e8ed;
    transform: scale(1.05);
}

.file-upload-toggle:active {
    transform: scale(0.95);
}

.file-upload-toggle svg {
    transition: transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    color: #1d1d1f;
    width: 16px;
    height: 16px;
}

.file-upload-toggle svg polyline {
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-upload-toggle:hover svg {
    color: #0071e3;
}

.file-upload-item.expanded .file-upload-toggle svg {
    transform: rotate(180deg);
}

/* Item Content */
.file-upload-item-content {
    padding: 0 18px 18px 18px;
    background: white;
}

/* Dropzone */
.file-upload-dropzone {
    position: relative;
    margin-bottom: 16px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f9f9fb;
    border: 2px dashed #d1d1d6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.file-upload-label:hover {
    background: #f5f5f7;
    border-color: #0071e3;
    transform: translateY(-2px);
}

.file-upload-label svg {
    color: #0071e3;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.file-upload-label:hover svg {
    transform: translateY(-4px);
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.upload-hint {
    font-size: 13px;
    color: #6e6e73;
    letter-spacing: -0.01em;
}

/* Dragover State */
.file-upload-dropzone.dragover .file-upload-label {
    background: #e7f5fe;
    border-color: #0071e3;
    border-style: solid;
    transform: scale(1.02);
}

/* File List */
.file-upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-list:empty {
    display: none;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    animation: slideIn 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

.uploaded-file-item:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.12);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f7;
    border-radius: 8px;
    flex-shrink: 0;
}

.file-icon svg {
    color: #0071e3;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.file-size {
    font-size: 12px;
    color: #6e6e73;
    letter-spacing: -0.005em;
}

.file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 59, 48, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #ff3b30;
}

.file-remove:hover {
    background: #ff3b30;
    color: white;
    transform: scale(1.1);
}

.file-remove svg {
    width: 14px;
    height: 14px;
}

/* Loading State */
.file-upload-item.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #0071e3 0%, #0062cc 100%);
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .dvaks-file-upload-section {
        margin: 24px -16px;
        padding: 20px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .file-upload-heading {
        font-size: 19px;
    }
    
    .file-upload-description {
        font-size: 14px;
    }
    
    .file-upload-item-header {
        padding: 14px 16px;
    }
    
    .item-name {
        font-size: 15px;
    }
    
    .file-upload-item-content {
        padding: 0 16px 16px 16px;
    }
    
    .file-upload-label {
        padding: 32px 16px;
    }
    
    .file-upload-label svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 15px;
    }
    
    .upload-hint {
        font-size: 12px;
        text-align: center;
    }
    
    .uploaded-file-item {
        padding: 10px 12px;
    }
    
    .file-icon {
        width: 36px;
        height: 36px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .file-size {
        font-size: 11px;
    }
}
