:root {
    --primary-color: #2c3e50;
    /* Elegant Dark Blue */
    --secondary-color: #c0392b;
    /* Deep Red Accent */
    --accent-color: #1abc9c;
    /* Medical Teal */
    --background-color: #f4f6f9;
    /* Light Greyish Blue */
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #7f8c8d;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    font-family: var(--font-body);
    color: var(--text-color);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #34495e) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    margin-left: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.4);
}

.btn-info {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
}

.btn-info:hover {
    background-color: #16a085;
    color: white;
    transform: translateY(-2px);
}

/* Chat Styles */
.chat-container {
    background-color: #edf2f7;
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-bubble {
    border-radius: 12px;
    padding: 12px 16px;
    position: relative;
    max-width: 80%;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-sent {
    background-color: #dcf8c6;
    /* WhatsApp Greenish */
    color: #333;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.message-received {
    background-color: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.handover-banner {
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* Dashboard Table */
.dashboard-table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

.dashboard-table tbody tr {
    transition: var(--transition);
}

.dashboard-table tbody tr:hover {
    background-color: #f1f5f9;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-paused {
    background-color: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Dashboard Widgets */
.stat-card {
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-widget .list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 0;
}

.news-title {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}