/* Custom styles for WhatsApp Platform */

:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
}

.navbar-brand {
    font-weight: 700;
}

.badge-status-connected {
    background-color: var(--whatsapp-green);
}

.badge-status-disconnected {
    background-color: #dc3545;
}

.badge-status-connecting {
    background-color: #ffc107;
}

.qr-modal-canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.file-preview-item .remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.drag-drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: var(--whatsapp-green);
    background-color: #f8f9fa;
}

.message-status-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
}

.log-table {
    font-size: 0.875rem;
}

.log-table td {
    vertical-align: middle;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Device card hover effect */
.device-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-preview {
        flex-direction: column;
    }
    
    .drag-drop-area {
        padding: 20px;
    }
}
