/**
 * WhatsApp Studio - Professional Chat Interface
 * Modern, clean design for messaging
 */

/* ==================== STUDIO CONTAINER ==================== */
.studio-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 700px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* ==================== SIDEBAR ==================== */
.studio-sidebar {
    width: 380px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.studio-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.studio-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.studio-actions {
    display: flex;
    gap: 10px;
}

.studio-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.studio-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* WhatsApp Number Filter */
.studio-filter {
    padding: 16px;
    padding-bottom: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.studio-filter-wrapper {
    position: relative;
}

.studio-filter-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
    z-index: 1;
}

.studio-session-select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.studio-session-select:hover {
    border-color: #667eea;
    background-color: #fefefe;
}

.studio-session-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.studio-session-select option {
    padding: 12px;
    font-size: 14px;
}

/* Search Bar - WhatsApp Style */
.studio-search {
    padding: 8px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.studio-search-wrapper {
    position: relative;
}

.studio-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
    font-size: 14px;
}

.studio-search-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #f0f2f5;
    transition: all 0.2s ease;
    color: #3b4a54;
}

.studio-search-input::placeholder {
    color: #8696a0;
}

.studio-search-input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px #667eea;
}

/* Chat List - WhatsApp Style */
.studio-chat-list {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.studio-chat-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
}

.studio-chat-item:hover {
    background: #f5f6f6;
}

.studio-chat-item.active {
    background: #f0f2f5;
}

.studio-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.studio-chat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.studio-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.studio-chat-name {
    font-weight: 500;
    font-size: 16px;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-chat-time {
    font-size: 12px;
    color: #667781;
    flex-shrink: 0;
    margin-left: 8px;
}

.studio-chat-preview {
    font-size: 14px;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 20px;
}

.studio-chat-preview i {
    font-size: 14px;
    flex-shrink: 0;
}

.studio-unread-badge {
    position: absolute;
    right: 16px;
    bottom: 50%;
    transform: translateY(50%);
    background: #25d366;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 16px;
}

/* ==================== MAIN CHAT AREA ==================== */
.studio-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

/* Chat Header - WhatsApp Style */
.studio-chat-header-main {
    padding: 10px 16px;
    background: #f0f2f5;
    border-bottom: 1px solid #d1d7db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.studio-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.studio-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.studio-contact-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.studio-contact-name {
    font-weight: 500;
    font-size: 16px;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-contact-status {
    font-size: 13px;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    margin-right: 4px;
}

.studio-chat-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.studio-chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    font-size: 20px;
}

.studio-chat-action-btn:hover {
    background: #d1d7db;
}

.studio-chat-action-btn:active {
    background: #c4cace;
}

/* Messages Area - Beautiful Interactive Design */
.studio-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    position: relative;
}

.studio-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Message Bubbles - Colorful Interactive */
.studio-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Received Messages - Left Side */
.studio-message-received {
    justify-content: flex-start;
}

/* Sent Messages - Right Side */
.studio-message-sent {
    justify-content: flex-end;
}

.studio-message-content {
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.studio-message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.studio-message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Received Message Bubble - White with Border */
.studio-message-received .studio-message-bubble {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.studio-message-received .studio-message-bubble:hover {
    border-color: #667eea;
}

/* Sent Message Bubble - Gradient Purple */
.studio-message-sent .studio-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.studio-message-sent .studio-message-bubble:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.studio-message-text {
    font-size: 14.5px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin: 0 0 6px 0;
}

.studio-message-sent .studio-message-text {
    color: white;
}

.studio-message-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
}

.studio-message-sent .studio-message-meta {
    color: rgba(255, 255, 255, 0.9);
}

.studio-message-time {
    font-weight: 500;
}

.studio-message-status {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.studio-message-status i {
    font-size: 14px;
}

/* Audio Player Styles */
.studio-audio-player {
    margin: 4px 0;
    padding: 8px 0;
}

.studio-audio-player audio {
    width: 100%;
    min-width: 280px;
    height: 48px;
    border-radius: 8px;
    outline: none;
}

/* Custom audio controls for sent messages */
.studio-message-sent .studio-audio-player audio {
    filter: brightness(1.2) contrast(1.1);
}

.studio-audio-player audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
}

.studio-message-sent .studio-audio-player audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.15);
}

/* Date Divider - Beautiful Design */
.studio-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.studio-date-divider span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ==================== INPUT AREA - Colorful Interactive Design ==================== */
.studio-input-container {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.studio-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.studio-input-actions {
    display: flex;
    gap: 8px;
}

.studio-input-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.studio-input-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.studio-input-btn:active {
    transform: scale(0.95);
}

.studio-input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.studio-textarea-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.studio-textarea-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.studio-textarea {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    background: transparent;
    color: #2c3e50;
}

.studio-textarea:focus {
    outline: none;
}

.studio-textarea::placeholder {
    color: #95a5a6;
}

.studio-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.studio-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.studio-send-btn:active {
    transform: scale(0.95);
}

.studio-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== EMPTY STATE ==================== */
.studio-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}

.studio-empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.studio-empty-icon i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.studio-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.studio-empty-text {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 400px;
}

/* ==================== SCROLLBAR ==================== */
.studio-chat-list::-webkit-scrollbar,
.studio-messages::-webkit-scrollbar {
    width: 6px;
}

.studio-chat-list::-webkit-scrollbar-track,
.studio-messages::-webkit-scrollbar-track {
    background: transparent;
}

.studio-chat-list::-webkit-scrollbar-thumb,
.studio-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.studio-chat-list::-webkit-scrollbar-thumb:hover,
.studio-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .studio-sidebar {
        width: 320px;
    }
    
    .studio-message-content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .studio-container {
        height: calc(100vh - 150px);
    }
    
    .studio-sidebar {
        width: 100%;
        position: absolute;
        z-index: 10;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .studio-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .studio-message-content {
        max-width: 80%;
    }
    
    .studio-messages {
        padding: 16px;
    }
}

/* ==================== MEDIA MESSAGES ==================== */
.studio-message-media {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
}

.studio-message-media img {
    width: 100%;
    height: auto;
    display: block;
}

.studio-message-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== TYPING INDICATOR ==================== */
.studio-typing-indicator {
    display: flex;
    gap: 12px;
    padding: 0 24px;
    margin-bottom: 16px;
}

.studio-typing-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 4px;
    align-items: center;
}

.studio-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite;
}

.studio-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.studio-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== SEARCH IN CHAT OVERLAY - Simple & Clean ==================== */
.studio-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.studio-search-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.studio-search-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.studio-search-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.studio-search-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.studio-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0 20px;
    gap: 12px;
}

.studio-search-input-icon {
    color: #667eea;
    font-size: 18px;
}

.studio-search-input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 16px;
    color: #2c3e50;
    outline: none;
}

.studio-search-clear-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.studio-search-results {
    flex: 1;
    overflow-y: auto;
    background: #f5f7fa;
}

.studio-search-empty,
.studio-search-loading,
.studio-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.studio-search-empty i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.studio-search-loading i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 20px;
}

.studio-search-no-results i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.studio-search-empty p,
.studio-search-loading p,
.studio-search-no-results p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.studio-search-no-results span {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.studio-search-count {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
}

.studio-search-list {
    padding: 10px 0;
}

.studio-search-result-item {
    background: white;
    padding: 16px 20px;
    margin: 0 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.studio-search-result-item:hover {
    border-left-color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.studio-search-result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.studio-search-result-sender {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.studio-search-result-time {
    font-size: 12px;
    color: #999;
}

.studio-search-result-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.studio-search-result-text mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.studio-message-highlight {
    background: rgba(102, 126, 234, 0.1) !important;
    transition: background 0.3s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== OPTIONS DROPDOWN ==================== */
.studio-options-dropdown {
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.studio-options-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 180px;
}

.studio-option-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: white;
    color: #2c3e50;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.studio-option-item i {
    font-size: 16px;
    width: 20px;
}

.studio-option-item:hover {
    background: #f5f7fa;
}

.studio-option-delete {
    color: #dc3545;
}

.studio-option-delete:hover {
    background: #fff5f5;
}

/* ==================== DELETE MODAL ==================== */
.studio-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.studio-delete-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.studio-delete-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.studio-delete-modal-header i {
    font-size: 32px;
    color: #dc3545;
}

.studio-delete-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.studio-delete-modal-body {
    padding: 24px;
}

.studio-delete-modal-body p {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.studio-delete-modal-body p:last-child {
    margin-bottom: 0;
}

.studio-delete-warning {
    padding: 12px 16px;
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    font-size: 14px !important;
    color: #dc3545 !important;
}

.studio-delete-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.studio-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-modal-btn-cancel {
    background: #f5f7fa;
    color: #6b7280;
}

.studio-modal-btn-cancel:hover {
    background: #e5e7eb;
}

.studio-modal-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.studio-modal-btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.studio-modal-btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== NOTIFICATION TOAST ==================== */
.studio-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10002;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.studio-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.studio-notification i {
    font-size: 20px;
}

.studio-notification span {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.studio-notification-success {
    border-left: 4px solid #10b981;
}

.studio-notification-success i {
    color: #10b981;
}

.studio-notification-error {
    border-left: 4px solid #dc3545;
}

.studio-notification-error i {
    color: #dc3545;
}

.studio-notification-info {
    border-left: 4px solid #667eea;
}

.studio-notification-info i {
    color: #667eea;
}

/* ==================== EMOJI PICKER ==================== */
.studio-emoji-picker {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 320px;
    max-height: 400px;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.studio-emoji-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.studio-emoji-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 340px;
    overflow-y: auto;
}

/* Emoji grid scrollbar */
.studio-emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.studio-emoji-grid::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 3px;
}

.studio-emoji-grid::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.studio-emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.studio-emoji-item {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-emoji-item:hover {
    background: #f5f7fa;
    transform: scale(1.2);
}

/* ==================== UPLOAD MODAL ==================== */
.studio-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.studio-upload-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.studio-upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.studio-upload-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.studio-upload-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.studio-upload-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.studio-upload-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.studio-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.studio-upload-preview-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.studio-upload-preview-video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.studio-upload-preview-file {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.studio-upload-preview-file i {
    font-size: 36px;
    color: #667eea;
}

.studio-upload-info {
    margin-bottom: 16px;
}

.studio-upload-filename {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    word-break: break-word;
}

.studio-upload-filesize {
    font-size: 14px;
    color: #9ca3af;
}

.studio-upload-caption {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.studio-upload-caption:focus {
    outline: none;
    border-color: #667eea;
}

.studio-upload-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

/* ==================== NEW CHAT MODAL ==================== */
.studio-new-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.studio-new-chat-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.studio-new-chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.studio-new-chat-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-new-chat-modal-header h3 i {
    font-size: 24px;
}

.studio-new-chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
}

.studio-new-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.studio-new-chat-modal-body {
    padding: 24px;
}

.studio-new-chat-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f0f9ff;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin-bottom: 24px;
}

.studio-new-chat-info i {
    color: #667eea;
    font-size: 20px;
    margin-top: 2px;
}

.studio-new-chat-info p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

.studio-form-group {
    margin-bottom: 20px;
}

.studio-form-group:last-child {
    margin-bottom: 0;
}

.studio-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.studio-form-group label i {
    color: #667eea;
    font-size: 16px;
}

.studio-form-input,
.studio-form-select,
.studio-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.studio-form-input:focus,
.studio-form-select:focus,
.studio-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.studio-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.studio-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

.studio-new-chat-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}

.studio-modal-btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.studio-modal-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.studio-modal-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.studio-modal-btn-delete {
    background: #dc3545;
    color: white;
}

.studio-modal-btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.studio-modal-btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
