/* Custom Elegant Styles */

:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --soft-gray: #f8f9fc;
    --border-radius-lg: 1rem;
    --border-radius-md: 0.5rem;
    --box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f0f2f5;
    color: #444;
}

/* Elegant Cards */
.card {
    border: none !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--box-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2) !important;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Sidebar Refinements */
.main-nav {
    background-color: #fff !important;
    border-right: 1px solid #e3e6f0 !important;
}

.icon-btn.btn-light {
    background-color: #f8f9fc !important;
    border: 1px solid #e3e6f0 !important;
    color: #4e73df !important;
    border-radius: 12px !important;
}

.icon-btn.btn-light:hover, .icon-btn.btn-light.active {
    background-color: #4e73df !important;
    color: #fff !important;
}

/* Dashboard Specific */
.dashboard-card {
    overflow: hidden;
    position: relative;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg) translateX(50px);
}

/* Chat Bubbles Refinement */
.message-main li .message-item {
    border-radius: 18px !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.message-main li.sent .message-item {
    background-color: #4e73df !important;
    color: #fff !important;
    border-bottom-right-radius: 4px !important;
}

.message-main li.received .message-item {
    background-color: #fff !important;
    color: #333 !important;
    border-bottom-left-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background-color: #4e73df !important;
    border-color: #4e73df !important;
}

.btn-primary:hover {
    background-color: #2e59d9 !important;
    border-color: #2653d4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
}

.btn-outline-primary {
    color: #4e73df !important;
    border-color: #4e73df !important;
}

.btn-outline-primary:hover {
    background-color: #4e73df !important;
    color: #fff !important;
}

/* Utility Soft Colors */
.bg-soft-primary { background-color: rgba(78, 115, 223, 0.1) !important; }
.bg-soft-success { background-color: rgba(28, 200, 138, 0.1) !important; }
.bg-soft-info { background-color: rgba(54, 185, 204, 0.1) !important; }
.bg-soft-warning { background-color: rgba(246, 194, 62, 0.1) !important; }
.bg-soft-danger { background-color: rgba(231, 74, 59, 0.1) !important; }

.text-primary { color: #4e73df !important; }
.text-success { color: #1cc88a !important; }
.text-info { color: #36b9cc !important; }
.text-warning { color: #f6c23e !important; }
.text-danger { color: #e74a3b !important; }

/* Tab Refinements */
.nav-tabs .nav-link {
    transition: all 0.2s ease !important;
}

.nav-tabs .nav-link.active {
    background-color: #4e73df !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(78, 115, 223, 0.3);
}

.filter_by_assignment {
    border: 1px solid transparent !important;
}

.filter_by_assignment:hover {
    border-color: #e3e6f0 !important;
}

.contact-log-main li {
    padding: 15px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.contact-log-main li:hover {
    background-color: #f8f9fc !important;
}

.contact-log-main li .contact-name {
    font-weight: 600 !important;
    color: #2e384d !important;
}

/* Chat Header */
.contact-details {
    background-color: #fff !important;
    border-bottom: 1px solid #e3e6f0 !important;
    padding: 15px 25px !important;
}

/* Scroll to bottom button */
.scroll-bottom-btn {
    background-color: #4e73df !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3) !important;
}
