:root {
    --wa-green: #075e54;
    --wa-teal: #128c7e;
    --wa-light-green: #25d366;
    --wa-chat-bg: #e5ddd5;
    --wa-outbound: #dcf8c6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar .nav-link {
    padding: 10px 15px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(37, 211, 102, 0.15) !important;
}

.sidebar .nav-link.active {
    font-weight: 600;
}

.main-content {
    min-width: 0;
}

.card {
    border-radius: 12px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-1px);
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cursor-pointer {
    cursor: pointer;
}

.conversation-item {
    transition: background 0.2s;
    cursor: pointer;
}

.conversation-item:hover {
    background: #f8f9fa !important;
}

.conversation-item.active-conversation {
    background: #e8f5e9 !important;
    border-right: 3px solid var(--wa-light-green);
}

.chat-bubble {
    max-width: 70%;
    padding: 8px 14px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.outbound {
    background: var(--wa-outbound);
    border-bottom-left-radius: 4px;
}

.chat-bubble.inbound {
    background: #fff;
    border-bottom-right-radius: 4px;
}

.badge {
    font-weight: 500;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.btn-success {
    background-color: var(--wa-light-green);
    border-color: var(--wa-light-green);
}

.btn-success:hover {
    background-color: var(--wa-teal);
    border-color: var(--wa-teal);
}

.bg-success {
    background-color: var(--wa-light-green) !important;
}

.text-success {
    color: var(--wa-light-green) !important;
}

.alert {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: -260px;
        transition: right 0.3s;
    }
    .sidebar.show {
        right: 0;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wa-light-green);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}
