/* ===================================
   Lead Management System Theme
   Saanvinirman Builder
   =================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #16a085;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --sidebar-width: 260px;
    --header-height: 70px;
    --danger-color: #f31212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ===================================
   Login Page Styles
   =================================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.login-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.login-illustration {
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
}

.login-right {
    padding: 60px 50px;
}

.login-right h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-right p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating input {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    height: 55px;
    transition: all 0.3s ease;
}

.form-floating input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.form-floating label {
    padding: 1rem 0.75rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, var(--secondary-color) 100%);
}

/* ===================================
   Dashboard Layout
   =================================== */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.sidebar-brand p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 5px 0 0 0;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-section-title {
    padding: 15px 20px 10px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 3px 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 24px;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.3) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    font-weight: 600;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}

.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu a.active i {
    color: var(--secondary-color);
    transform: scale(1.15);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: white;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f0f0f0;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 20px 10px 45px;
    width: 350px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    width: 400px;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.header-icon:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--info-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.user-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Page Content */
.page-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-content::-webkit-scrollbar {
    width: 8px;
}

.page-content::-webkit-scrollbar-thumb {
    background-color: rgba(52, 152, 219, 0.3);
    border-radius: 4px;
}

.page-content::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.primary {
    border-left-color: var(--secondary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}
    .stat-card.info {
        border-left-color: var(--accent-color);
    }

.stat-card.danger {
    border-left-color: var(--accent-color);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d68910 100%);
}
    .stat-card-icon.info {
        background: linear-gradient(135deg, var(--accent-color) 0%, #d68910 100%);
    }

.stat-card-icon.danger {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c0392b 100%);
}

.stat-trend {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stat-trend.up {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.stat-trend.down {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.stat-card-body h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card-body p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Card Component */
.card-custom {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-custom-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-custom-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-custom-body {
    padding: 25px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure all card content wraps properly */
.card-custom-body p,
.card-custom-body h1,
.card-custom-body h2,
.card-custom-body h3,
.card-custom-body h4,
.card-custom-body h5,
.card-custom-body h6,
.card-custom-body span,
.card-custom-body div {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Table Styles */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-custom thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.table-custom tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table-custom tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.table-custom tbody td {
    padding: 15px;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 400px;
    overflow-wrap: break-word;
}

/* Ensure text content inside table cells wraps properly */
.table-custom td strong,
.table-custom td small,
.table-custom td span,
.table-custom td p,
.table-custom td div {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Make links and buttons inside tables wrap properly */
.table-custom td a,
.table-custom td button {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure icons don't break text flow */
.table-custom td i + * {
    display: inline;
    max-width: calc(100% - 20px);
    word-wrap: break-word;
    word-break: break-word;
}

/* Make status badges wrap if needed */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status-badge.new {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.status-badge.contacted {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.status-badge.qualified {
    background: rgba(22, 160, 133, 0.1);
    color: var(--info-color);
}

.status-badge.converted {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-badge.lost {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.status-badge.on-hold {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--secondary-color);
    color: white;
}
.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-danger:hover {
        background: var(--danger-color);
        color: white;
    }
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon.edit {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.btn-icon.edit:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.btn-icon.delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.btn-icon.delete:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.btn-icon.view {
    background: rgba(22, 160, 133, 0.1);
    color: var(--info-color);
}

.btn-icon.view:hover {
    background: var(--info-color);
    color: white;
    transform: scale(1.1);
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-section .row {
    align-items: end;
}

.filter-section select,
.filter-section input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.filter-section select:focus,
.filter-section input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    outline: none;
}

/* Pagination */
.pagination-custom {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination-custom .page-item {
    list-style: none;
}

.pagination-custom .page-link {
    border: 2px solid #e0e0e0;
    color: var(--primary-color);
    border-radius: 8px;
    padding: 8px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.active {
        margin-left: 0;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .search-box input {
        width: 200px;
    }

    .search-box input:focus {
        width: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .page-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .page-content {
        padding: 15px;
    }

    .header {
        padding: 0 15px;
    }

    .search-box {
        display: none;
    }

    .user-info {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-custom {
        font-size: 0.85rem;
        min-width: 800px;
    }

    .table-custom thead th,
    .table-custom tbody td {
        padding: 10px 8px;
    }

    .card-custom-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-section .row > div {
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .header-right {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.3rem;
    }

    .stat-card-body h3 {
        font-size: 1.5rem;
    }

    .login-right {
        padding: 40px 25px;
    }

    .login-right h3 {
        font-size: 1.5rem;
    }

    .stat-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .card-custom-body {
        padding: 15px;
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h5 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

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

/* Tooltips */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltiptext {
    visibility: hidden;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    white-space: nowrap;
}

.tooltip-custom:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Avatar List */
.avatar-list {
    display: flex;
    align-items: center;
}

.avatar-list .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.avatar-list .avatar-sm:first-child {
    margin-left: 0;
}

/* Priority Badge */
.priority-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.priority-badge.high {
    background: var(--accent-color);
}

.priority-badge.medium {
    background: var(--warning-color);
}

.priority-badge.low {
    background: var(--success-color);
}

/* Activity timeline text wrapping */
.activity-timeline .activity-item {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.activity-timeline .activity-content p,
.activity-timeline .activity-content strong {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Follow-up cards text wrapping */
.p-3.border.rounded {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.p-3.border.rounded h6,
.p-3.border.rounded p,
.p-3.border.rounded span {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Avatar list text wrapping */
.avatar-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.avatar-list .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.avatar-list .avatar-sm:first-child {
    margin-left: 0;
}

/* Smooth scrolling for all scrollable containers */
* {
    scroll-behavior: smooth;
}

/* Improve table responsive behavior */
.table-responsive {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
