/* ===============================
   GLOBAL STYLES
================================ */
body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===============================
   NAVBAR
================================ */
.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar {
    border-bottom: 3px solid #0d6efd;
}

/* ===============================
   HEADINGS
================================ */
h1, h2, h3, h4 {
    color: #1f2937;
}

/* ===============================
   CARDS
================================ */
.card {
    border-radius: 12px;
    border: none;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* ===============================
   BUTTONS
================================ */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #084298);
}

/* ===============================
   SIDEBAR
================================ */
.sidebar {
    background-color: #111827;
    min-height: 100vh;
    width: 250px;
    position: fixed;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Sidebar links */
.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #d1d5db;
    position: relative;
}

.sidebar a:hover {
    background-color: #1f2937;
    color: #fff;
}

/* Active link */
.sidebar a.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 500;
}

/* Icons */
.sidebar a i {
    font-size: 18px;
    min-width: 25px;
    text-align: center;
}

/* Text */
.menu-text {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

/* ===============================
   COLLAPSED SIDEBAR
================================ */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed h5 {
    display: none;
}

/* Tooltip on hover (collapsed mode) */
.sidebar.collapsed a:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 70px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 999;
}

/* ===============================
   CONTENT AREA
================================ */
#content {
    margin-left: 250px;
    transition: all 0.3s ease;
    padding: 22px;
}

.sidebar.collapsed + #content {
    margin-left: 70px;
}

/* ===============================
   TABLES
================================ */
.table {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #0d6efd;
    color: white;
}

/* ===============================
   FORMS
================================ */
input, select, textarea {
    border-radius: 8px !important;
}

input:focus, select:focus, textarea:focus {
    box-shadow: none !important;
    border-color: #0d6efd !important;
}

/* ===============================
   CHAT BOX
================================ */
#chat-box {
    height: 400px;
    overflow-y: auto;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

.message {
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 70%;
}

.message.sent {
    background-color: #0d6efd;
    color: white;
    margin-left: auto;
}

.message.received {
    background-color: #e5e7eb;
}
/* ===============================
   BADGES
================================ */
.badge {
    font-size: 12px;
    padding: 5px 8px;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 12px;
    transition: 0.2s;
}
/* ===============================
   FOOTER
================================ */
footer {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    color: #6b7280;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

    #content {
        margin-left: 0 !important;
    }
}
