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

body {
    font-size: .9rem;
    background-color: #f8f9fc;
}

.card {
    border: none;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

/* Dashboard cards */
.border-left-primary {
    border-left: .25rem solid var(--primary-color);
}

.border-left-success {
    border-left: .25rem solid var(--success-color);
}

.border-left-info {
    border-left: .25rem solid var(--info-color);
}

.border-left-warning {
    border-left: .25rem solid var(--warning-color);
}

/* Tables */
.table thead th {
    border-top: none;
    border-bottom-width: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .8rem;
    color: #5a5c69;
}

.table-hover tbody tr:hover {
    background-color: rgba(78,115,223,.05);
}

/* Badges */
.badge {
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .5rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,.25);
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact list scroll */
#contactList {
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: .5rem;
}

/* Message preview */
#messagePreview {
    background-color: #f8f9fc;
    padding: .75rem;
    border-radius: .25rem;
    border-left: 4px solid var(--primary-color);
}

/* Tooltips */
.tooltip-inner {
    max-width: 300px;
    background-color: #2c3e50;
}