/* ==========================================
   SHARE MODAL STYLING
   ========================================== */
.share-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: none; /* 👈 Changed from flex to none */
    align-items: flex-end; 
    justify-content: center;
}

.share-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.share-bottom-sheet {
    background: #1a1a1a;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.share-overlay.active .share-bottom-sheet {
    transform: translateY(0);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.share-header h3 {
    margin: 0; color: #fff; font-size: 18px;
}

.close-share {
    color: #888; font-size: 20px; cursor: pointer;
}

.share-user-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual User Row in the List */
.share-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #222;
    border-radius: 10px;
}

.share-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: bold;
}

.share-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #444;
}

.send-action-btn {
    background: #ff0050; color: white; border: none;
    padding: 8px 16px; border-radius: 20px; cursor: pointer;
    font-weight: bold; font-size: 14px;
}

.send-action-btn.sent {
    background: #28a745; /* Turns green when sent */
}

.share-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.share-footer input {
    width: 100%; padding: 12px; border-radius: 8px;
    border: 1px solid #444; background: #000; color: #fff;
}