/* Simple Bot Control Panel - Matching theme */

/* Main container - compact and clean */
.bot-control-panel {
    background: white !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin: 8px !important;
    border: 1px solid #e5e7eb !important;
}

/* Platform header - minimal */
.platform-header {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
}

/* Platform info section */
.platform-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

/* Platform icon - smaller and cleaner */
.platform-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    padding: 4px !important;
}

.platform-icon svg {
    width: 24px !important;
    height: 24px !important;
}

/* Platform icon colors */
.platform-icon.facebook {
    background: rgba(24, 119, 242, 0.05) !important;
    border-color: rgba(24, 119, 242, 0.2) !important;
}

.platform-icon.whatsapp {
    background: rgba(37, 211, 102, 0.05) !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
}

.platform-icon.instagram {
    background: rgba(228, 64, 95, 0.05) !important;
    border-color: rgba(228, 64, 95, 0.2) !important;
}

.platform-icon.telegram {
    background: rgba(0, 136, 204, 0.05) !important;
    border-color: rgba(0, 136, 204, 0.2) !important;
}

/* Platform details - compact */
.platform-details {
    flex: 1 !important;
}

.platform-details h4 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
}

.platform-id {
    font-size: 11px !important;
    color: #6b7280 !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Bot details section - super compact */
.bot-details {
    display: flex !important;
    gap: 15px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
    flex-wrap: wrap !important;
}

.info-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
}

/* Replace default icons with Font Awesome */
.info-item i {
    display: none !important;
}

.info-item:before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    margin-right: 4px !important;
}

.info-item:first-child:before {
    content: '\f544' !important; /* robot icon */
    color: #667eea !important;
}

.info-item:last-child:before {
    content: '\f02d' !important; /* book icon */
    color: #10b981 !important;
}

.info-label {
    color: #9ca3af !important;
    font-size: 10px !important;
    margin-right: 4px !important;
}

.info-item span:last-child {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 11px !important;
}

/* Control buttons - matching theme */
.control-buttons {
    display: flex !important;
    gap: 6px !important;
    margin-top: 10px !important;
}

.ctrl-btn {
    flex: 1 !important;
    padding: 8px !important;
    border: 1px solid #e5e7eb !important;
    background: white !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #4b5563 !important;
    min-width: 0 !important;
}

.ctrl-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
    border-color: #667eea !important;
    transform: translateY(-1px) !important;
}

/* Hide default icons */
.ctrl-btn i {
    display: none !important;
}

/* Add new icons with CSS */
.ctrl-btn:before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 14px !important;
}

.ctrl-btn.pause:before {
    content: '\f04c' !important; /* pause icon */
    color: #f59e0b !important;
}

.ctrl-btn.resume:before {
    content: '\f04b' !important; /* play icon */
    color: #10b981 !important;
}

.ctrl-btn.takeover:before {
    content: '\f007' !important; /* user icon */
    color: #667eea !important;
}

/* Button text */
.ctrl-btn span {
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Active/hover states with purple theme */
.ctrl-btn.pause:hover {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
}

.ctrl-btn.resume:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
}

.ctrl-btn.takeover:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    border-color: #667eea !important;
}

/* RTL Support for Arabic */
[dir="rtl"] .platform-info {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .bot-details {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .info-item {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .info-item:before {
    margin-right: 0 !important;
    margin-left: 4px !important;
}

[dir="rtl"] .control-buttons {
    flex-direction: row-reverse !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bot-control-panel {
        padding: 8px !important;
        margin: 5px !important;
    }
    
    .platform-details h4 {
        font-size: 13px !important;
    }
    
    .platform-id {
        font-size: 10px !important;
    }
    
    .bot-details {
        gap: 10px !important;
    }
    
    .info-item {
        font-size: 10px !important;
    }
    
    .ctrl-btn {
        padding: 6px !important;
        font-size: 10px !important;
    }
    
    .ctrl-btn:before {
        font-size: 12px !important;
    }
    
    .ctrl-btn span {
        display: none !important; /* Hide text on mobile, show only icons */
    }
}

/* Toast notifications - matching theme */
#simple-toast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
}

#simple-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

#simple-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

#simple-toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* Remove all the old bulky styles */
.bot-control-modal,
.bot-control-modal-content,
.bot-control-modal-header,
.bot-control-modal-body,
.bot-control-modal-footer,
.bot-control-modal-icon,
.bot-control-toast {
    display: none !important;
}