/* Media Send Panel Styles - Compact */
.media-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 4px 0;
    padding: 4px 8px;
    box-shadow: none;
}

.media-panel-header {
    display: none; /* Header'ı gizle, daha kompakt */
}

.media-panel-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.media-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #495057;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 11px;
    font-weight: 500;
}

.media-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.media-btn:active {
    transform: translateY(0);
}

.media-btn i {
    font-size: 12px;
}

.media-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Image Send Button */
.media-btn#image-send-btn {
    background: #28a745;
    color: white;
}

.media-btn#image-send-btn:hover {
    background: #218838;
}

.media-btn#image-send-btn.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Voice Send Button */
.media-btn#voice-send-btn {
    background: #fd7e14;
    color: white;
}

.media-btn#voice-send-btn:hover {
    background: #e66100;
}

.media-btn#voice-send-btn.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Recording state */
.media-btn#voice-send-btn.recording {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    animation: recordingPulse 1s ease-in-out infinite alternate;
}

@keyframes recordingPulse {
    0% { 
        box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
        transform: translateY(-2px) scale(1);
    }
    100% { 
        box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
        transform: translateY(-2px) scale(1.05);
    }
}

/* Upload progress */
.media-upload-progress {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.media-upload-progress .progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}

.media-upload-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #45a049);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Media message styles */
.message-media {
    margin: 8px 0;
    max-width: 300px;
}

.message-media img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-media img:hover {
    transform: scale(1.02);
}

.message-media audio {
    width: 100%;
    border-radius: 8px;
}

.message-media-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: center;
}

/* Media modal for full size view */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.media-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.media-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
