/* Transfer Sayfası Stilleri */

.transfer-container {
    padding: 40px 20px;
    min-height: calc(100vh - 64px);
}

.transfer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.transfer-panel {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    padding: 40px;
}

.transfer-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

/* Durum Göstergeleri */
.status-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #333;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-in;
}

.status-item.active {
    border-color: #3b82f6;
    background-color: #1e3a5f;
}

.status-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title {
    font-size: 18px;
}

.status-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.status-icon svg {
    width: 36px;
    height: 36px;
    stroke: #3b82f6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-container.under-qr {
    margin-top: 30px;
}

/* QR Kod */
.qr-container {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
    position: relative;
}

.qr-image {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: qrPulse 2s ease-in-out infinite;
}

.qr-image {
    width: 320px;
    height: 320px;
    object-fit: contain;
}

.qr-scan-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.qr-scan-animation.active {
    opacity: 1;
}

.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scanLine 2s linear infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.qr-scan-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(59, 130, 246, 0.5);
    border-radius: 12px;
    animation: scanFrame 2s ease-in-out infinite;
}

@keyframes qrPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes scanFrame {

    0%,
    100% {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    50% {
        border-color: rgba(59, 130, 246, 0.8);
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.6);
    }
}

.qr-url {
    color: #999;
    font-size: 14px;
    word-break: break-all;
    margin-top: 20px;
    padding: 12px;
    background-color: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
}

.code-chip {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.code-label {
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.code-value {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.code-copy {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.code-copy:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

.code-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #0f172a;
}

/* Dosya Bölümleri */
.files-section {
    margin-bottom: 40px;
}

.files-section h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.file-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.file-item:hover {
    border-color: #3b82f6;
    background-color: #1e3a5f;
}

.file-icon {
    font-size: 32px;
    flex-shrink: 0;
}

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

.file-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-meta {
    color: #999;
    font-size: 12px;
}

.file-actions {
    flex-shrink: 0;
}

.btn-download {
    padding: 8px 16px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-download:hover {
    background-color: #2563eb;
}

/* Yükleme Bölümü */
.upload-section {
    margin-top: 40px;
}

.upload-section h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background-color: #1a1a1a;
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background-color: #1e3a5f;
}

.upload-content {
    pointer-events: none;
}

.upload-content button {
    pointer-events: auto;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-content p {
    color: #999;
    font-size: 16px;
    margin-bottom: 20px;
}

.upload-progress {
    margin-top: 20px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
}

.progress-text {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-item {
    color: #10b981;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Telefon Paneli */
.phone-panel {
    display: none;
}

.phone-status {
    margin-bottom: 30px;
}

/* QR Tarama Görseli */
.scan-visual {
    margin-top: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.scan-device {
    width: 220px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 32px;
    padding: 18px 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
}

.scan-notch {
    width: 70px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 12px;
}

.scan-screen {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 24px;
    height: 280px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.scan-qr {
    width: 160px;
    height: 160px;
    margin: 24px auto;
    border-radius: 16px;
    position: relative;
    border: 2px dashed rgba(59, 130, 246, 0.5);
}

.qr-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid #3b82f6;
}

.qr-corner.tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.qr-corner.tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.qr-corner.bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.qr-corner.br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.scan-beam {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0));
    animation: phoneBeam 3s linear infinite;
}

@keyframes phoneBeam {
    0% {
        top: -100%;
    }

    50% {
        top: 10%;
    }

    100% {
        top: 120%;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-item.pulsing {
    animation: pulse 2s infinite;
}

/* Butonlar */
.btn-secondary {
    background-color: #374151;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.qr-regenerate-btn {
    width: 100%;
    max-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-container {
        padding: 20px 10px;
    }

    .transfer-panel {
        padding: 20px;
        margin: 0;
        background-color: #000000;
    }

    .transfer-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .qr-container {
        padding: 20px;
        margin-bottom: 24px;
        background-color: #000000;
    }

    .qr-image {
        width: 100% !important;
        max-width: 280px;
        height: auto !important;
    }

    .code-chip {
        padding: 16px;
        margin-bottom: 20px;
    }

    .code-value {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .code-copy {
        width: 100%;
        padding: 10px;
    }

    .files-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .file-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .status-item {
        flex-direction: row;
        padding: 14px;
        gap: 12px;
    }

    .status-icon {
        font-size: 28px;
    }

    .status-icon svg {
        width: 28px;
        height: 28px;
    }

    .status-text {
        font-size: 14px;
    }

    .status-title {
        font-size: 15px;
    }

    .status-subtitle {
        font-size: 12px;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 40px;
    }

    .phone-panel {
        padding: 20px !important;
        background-color: #000000 !important;
    }

    .phone-status {
        margin-bottom: 24px;
    }

    .disconnect-btn {
        padding: 14px;
        font-size: 16px;
        margin-top: 16px;
    }

    .qr-regenerate-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .files-section h2 {
        font-size: 20px;
    }

    .upload-section h2 {
        font-size: 20px;
    }
}

/* Görsel/Video Önizleme */
.file-preview {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview img,
.file-preview video {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}