/* ==============================
   Send Page
   ============================== */

.drop-zone {
    border: 2px dashed #303030;
    border-radius: 22px;

    padding: 60px 25px;
    text-align: center;

    background: rgba(12, 12, 12, 0.7);

    transition: 0.25s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: #168cff;
    background: rgba(22, 140, 255, 0.05);
}

.upload-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 38px;

    color: #168cff;

    background: rgba(22, 140, 255, 0.1);
}

.drop-zone h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.drop-zone p {
    color: #777;
    margin-bottom: 25px;
}


/* Buttons */

.select-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.select-buttons button,
#addMore {
    border: 1px solid #303030;
    background: #151515;
    color: #ddd;

    padding: 11px 18px;

    border-radius: 10px;

    transition: 0.2s;
}

.select-buttons button:hover,
#addMore:hover {
    border-color: #168cff;
    color: white;
    background: #191919;
}


/* Selected Files */

.file-section {
    margin-top: 35px;
}

.file-section h2 {
    font-size: 19px;
}

.section-header {
    margin-bottom: 15px;
}


/* Individual file item */

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 15px;

    background: #101010;
    border: 1px solid #252525;
    border-radius: 13px;
}

.file-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #182535;
    color: #168cff;

    font-size: 20px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-weight: 600;
}

.file-size {
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}


/* Remove */

.remove-file {
    border: none;
    background: transparent;
    color: #666;

    font-size: 20px;

    padding: 5px;
}

.remove-file:hover {
    color: #ff4545;
}


/* Create share */

#createShare {
    margin-top: 30px;
}

/* Final light-mode overrides */
.drop-zone { border-color: #b9c8db; background: rgba(255,255,255,.85); }
.drop-zone:hover, .drop-zone.dragging { background: #f1f7ff; }
.drop-zone p, .file-size { color: var(--muted); }
.select-buttons button, #addMore { border-color: var(--border); background: #fff; color: var(--text); }
.select-buttons button:hover, #addMore:hover { color: var(--blue); background: #f4f8ff; }
.file-item { background: #fff; border-color: var(--border); }
.file-icon { background: #eaf3ff; }.remove-file { color: #8a96a8; }

/* The share-created screen is inserted by JavaScript with inline legacy styles. */
.send-page .otp-box {
    background: #fff !important;
    border-color: var(--border) !important;
    box-shadow: 0 12px 35px rgba(44, 73, 117, .08);
}
.send-page #stopShare {
    background: #fff !important;
    color: var(--text);
    border-color: var(--border) !important;
}
.send-page #receiverStatus { color: var(--blue) !important; }

@media (max-width: 650px) {
    .drop-zone { padding: 38px 16px; border-radius: 18px; }
    .upload-icon { width: 62px; height: 62px; font-size: 32px; margin-bottom: 15px; }
    .drop-zone h2 { font-size: 19px; }
    .select-buttons { flex-direction: column; }
    .select-buttons button, #addMore { width: 100%; }
    .file-section { margin-top: 26px; }
    .file-item { gap: 10px; padding: 12px; }
    .file-icon { width: 36px; height: 36px; flex: 0 0 36px; }
    .share-created-card, .send-page .otp-box { margin: 24px auto; padding: 32px 18px !important; }
    .share-code { font-size: 38px; letter-spacing: 7px; }
}

/* Light-mode surfaces */
.drop-zone { border-color: #b9c8db; background: rgba(255,255,255,.85); }
.drop-zone:hover, .drop-zone.dragging { background: #f1f7ff; }
.drop-zone p, .file-size { color: var(--muted); }
.select-buttons button, #addMore { border-color: var(--border); background: #fff; color: var(--text); }
.select-buttons button:hover, #addMore:hover { color: var(--blue); background: #f4f8ff; }
.file-item { background: #fff; border-color: var(--border); }
.file-icon { background: #eaf3ff; }.remove-file { color: #8a96a8; }
