/* DigiMit Transfer Styles */
.digimit-transfer-container {
    max-width: 500px;
    margin: 2rem auto;
    font-family: 'Inter', sans-serif;
}

.transfer-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.transfer-header h2 {
    margin-top: 0;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transfer-header p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.transfer-tabs {
    display: flex;
    background: #f1f3f5;
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}

.transfer-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transfer-tab-btn.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.transfer-pane {
    display: none;
    animation: fadein 0.4s ease;
}

.transfer-pane.active {
    display: block;
}

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

.transfer-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.type-radio {
    flex: 1;
    cursor: pointer;
}

.type-radio input {
    display: none;
}

.type-radio span {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.2s;
}

.type-radio.active span {
    border-color: #0d6efd;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.send-input-wrap {
    display: none;
}

.send-input-wrap.active {
    display: block;
}

#transfer_text {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    resize: none;
    margin-bottom: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#transfer_text:focus {
    border-color: #0d6efd;
}

.file-drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    transition: all 0.2s;
}

.file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.03);
}

.file-drop-zone i {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.file-limits {
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: center;
    margin-bottom: 1rem;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transition: all 0.3s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

.result-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.code-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    border: 2px dashed #0d6efd;
    margin-bottom: 0.5rem;
}

#generated-code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #0d6efd;
    font-family: monospace;
}

#btn-copy-code {
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
}

#btn-copy-code:hover {
    background: #dee2e6;
    color: #212529;
}

.result-note {
    font-size: 0.8rem;
    color: #adb5bd;
}

.receive-input-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.code-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.code-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

#receive_code {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.2s;
}

#receive_code:focus {
    border-color: #0d6efd;
}

.transfer-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.retrieved-text-box {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 1rem;
    text-align: left;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
}

.d-none {
    display: none !important;
}
