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

i {
    font-style: normal;
    line-height: 0;
    vertical-align: middle;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #2d2d2d;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .btn-new-chat span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .recent-section,
.sidebar.collapsed .user-info,
.sidebar.collapsed .user-profile .bi-chevron-down,
.sidebar.collapsed .sidebar-beta-warning {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-header .d-flex {
    justify-content: center;
}

.sidebar.collapsed .btn-new-chat {
    padding: 10px;
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    padding: 8px;
}

.sidebar-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e5e5;
    height: 55px;
    display: flex;
    align-items: center;
}

.sidebar-header i {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.sidebar-header i:hover {
    color: #2d2d2d;
}

.sidebar-header i.bi-layout-sidebar::before {
    transition: opacity 0.2s ease;
}

.sidebar .sidebar-header i.bi-layout-sidebar:hover::before {
    opacity: 0;
}

.sidebar .sidebar-header i.bi-layout-sidebar::after {
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 0.9;
}

.sidebar:not(.collapsed) .sidebar-header i.bi-layout-sidebar::after {
    content: "\F12F"; /* bi-arrow-bar-left */
}

.sidebar.collapsed .sidebar-header i.bi-layout-sidebar::after {
    content: "\F138"; /* bi-arrow-bar-right */
}

.sidebar .sidebar-header i.bi-layout-sidebar:hover::after {
    opacity: 1;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
}

/* New Chat Button */
.sidebar-new-chat {
    padding: 20px 12px 8px 12px;
}

.btn-new-chat {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-new-chat:hover, .btn-new-chat:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-new-chat i {
    font-size: 16px;
    margin-top: -1px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-bottom: 0px;
    position: relative;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: #2d2d2d;
}

.nav-item.active {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.nav-item i {
    font-size: 16px;
}

/* Recent Section */
.recent-section {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.recent-header {
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-list {
    padding: 0 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 0px;
    transition: background-color 0.2s;
    position: relative;
}

.recent-item:hover {
    background-color: #f0f0f0;
    color: #2d2d2d;
}

.recent-item-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

/* Recent Item Participants */
.recent-item-participants {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 0;
    z-index: 10;
    padding-left: 12px;
    background: linear-gradient(to left, #f0f0f0 0%, #f0f0f0 70%, transparent 100%);
}

.recent-item:hover .recent-item-participants {
    display: flex;
    flex-direction: row-reverse;
}

.recent-participant-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-right: -6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
}

.recent-participant-avatar:first-child {
    margin-right: 0;
}

.recent-participant-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recent-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.recent-participant-avatar span {
    display: block;
}

.recent-participant-avatar.has-image span {
    display: none;
}

.recent-generating-icon {
    font-size: 12px;
    color: #F39C12;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

.recent-item-generating {
    background-color: #fffbf5;
}

.recent-item-generating:hover {
    background-color: #fff8ed;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e5e5e5;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-profile:hover {
    background-color: #f0f0f0;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2d2d2d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar span {
    display: block;
}

.user-avatar.has-image span {
    display: none;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #2d2d2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-unit {
    font-size: 11px;
    color: #999;
}

/* User Profile Dropdown */
.user-dropdown {
    min-width: 240px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-top: 4px;
}

.user-dropdown .dropdown-header {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    padding: 8px 12px 6px;
    white-space: normal;
    word-break: break-word;
}

.user-dropdown .dropdown-divider {
    margin: 4px 0;
    border-color: #e5e5e5;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    font-size: 13px;
    color: #2d2d2d;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown .dropdown-item i.bi {
    font-size: 14px;
    color: #666;
    width: 16px;
    flex-shrink: 0;
}

.user-dropdown .dropdown-item span:first-of-type {
    flex: 1;
}

.user-dropdown .dropdown-item .bi-chevron-right {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Business Unit Icons */
.bu-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    line-height: 0;
}

.bu-bg.seo { background-color: #1F77BC; }
.bu-bg.sem { background-color: #E74C3C; }
.bu-bg.smm { background-color: #9B59B6; }
.bu-bg.web { background-color: #3498DB; }
.bu-bg.crea { background-color: #F39C12; }
.bu-bg.hubspot { background-color: #FF7A59; }
.bu-bg.commerciale { background-color: #27AE60; }
.bu-bg.amministrazione { background-color: #34495E; }
.bu-bg.hr { background-color: #E67E22; }
.bu-bg.it { background-color: #16A085; }
.bu-bg.dam { background-color: #8E44AD; }
.bu-bg.direttivo { background-color: #C0392B; }

.bu-icon.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

.user-dropdown .dropdown-item.bu-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown .dropdown-item.bu-item.active {
    background-color: #e8f4fc;
}

.user-dropdown .dropdown-item.bu-item .bi-check2 {
    font-size: 16px;
    color: #1F77BC;
    margin-left: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden;
}

/* Header */
.main-header {
    padding: 8px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
    gap: 24px;
}

/* Header Chat Name */
.header-chat-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 20px;
    color: #1F77BC;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.welcome-project-badge i {
    font-size: 16px;
}

.btn-chat-name {
    background: transparent;
    border: none;
    color: #2d2d2d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    max-width: 100%;
}

.btn-chat-name:hover {
    background-color: #f5f5f5;
}

.btn-chat-name:focus {
    outline: none;
    box-shadow: none;
}

.btn-chat-name .chat-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.btn-chat-name .bi-chevron-down {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-chat-name[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Chat Name Dropdown */
.chat-name-dropdown {
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px;
    margin-top: 8px;
}

.chat-name-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #2d2d2d;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.chat-name-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

.chat-name-dropdown .dropdown-item i {
    font-size: 16px;
    color: #666;
    width: 16px;
    flex-shrink: 0;
}

.chat-name-dropdown .dropdown-item.text-danger {
    color: #dc3545;
}

.chat-name-dropdown .dropdown-item.text-danger:hover {
    background-color: #fff5f5;
}

.chat-name-dropdown .dropdown-item.text-danger i {
    color: #dc3545;
}

/* Chat Participants */
.chat-participants {
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: 8px;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-left: -8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
}

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

.participant-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.participant-avatar span {
    display: block;
}

.participant-avatar.has-image span {
    display: none;
}

/* Participant Tooltip */
.participant-avatar[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* Header Actions (Client Selector) */
.header-actions {
    margin-left: auto;
    flex-shrink: 0;
}


/* Sidebar Budget Monitor */
.sidebar-budget {
    padding: 10px 12px;
    background-color: transparent;
    border-top: 1px solid #e5e5e5;
    transition: all 0.2s;
}

.sidebar-budget-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.sidebar-budget-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-budget-icon i {
    font-size: 14px;
    color: #1F77BC;
}

.sidebar-budget-title {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-budget-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-budget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-budget-values {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.sidebar-budget-used {
    color: #1F77BC;
}

.sidebar-budget-separator {
    color: #d0d0d0;
    font-weight: 400;
    font-size: 11px;
}

.sidebar-budget-total {
    color: #999;
    font-weight: 500;
    font-size: 11px;
}

.sidebar-budget-progress {
    width: 100%;
    height: 4px;
    background-color: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.sidebar-budget-progress-bar {
    height: 100%;
    background: #1F77BC;
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.sidebar-budget-percentage {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}

/* Budget warning states */
.sidebar-budget.warning .sidebar-budget-icon i {
    color: #F39C12;
}

.sidebar-budget.warning .sidebar-budget-used {
    color: #F39C12;
}

.sidebar-budget.warning .sidebar-budget-progress-bar {
    background: #F39C12;
}

.sidebar-budget.danger .sidebar-budget-icon i {
    color: #E74C3C;
}

.sidebar-budget.danger .sidebar-budget-used {
    color: #E74C3C;
}

.sidebar-budget.danger .sidebar-budget-progress-bar {
    background: #E74C3C;
}

/* Sidebar collapsed state - hide budget */
.sidebar.collapsed .sidebar-budget {
    display: none;
}

/* Client Selector */
.btn-client-selector {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #2d2d2d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-client-selector:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.btn-client-selector i {
    font-size: 18px;
    color: #666;
}

.btn-client-selector .client-name {
    font-weight: 500;
}

.btn-client-selector::after {
    margin-left: 4px;
}

/* Client Dropdown */
.client-dropdown {
    min-width: 320px;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 8px;
}

/* Client Filter Wrapper */
.client-filter-wrapper {
    padding: 8px 12px;
}

.client-filters {
    display: flex;
    gap: 6px;
    background-color: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.btn-filter {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-filter:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.btn-filter.active {
    background-color: #1F77BC;
    color: white;
}

.btn-filter i {
    font-size: 14px;
}

.client-search-wrapper {
    padding: 12px;
}

.client-search {
    position: relative;
    display: flex;
    align-items: center;
}

.client-search i {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
}

.client-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.client-search-input:focus {
    outline: none;
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.client-search-input::placeholder {
    color: #999;
}

.client-dropdown .dropdown-divider {
    margin: 0;
    border-color: #e5e5e5;
    opacity: 0.3;
}

.client-list-wrapper {
    padding: 4px 0;
}

.client-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 4px;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #2d2d2d;
    border-radius: 6px;
    transition: background-color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.client-item:hover {
    background-color: #f5f5f5;
    color: #2d2d2d;
}

.client-item.active {
    background-color: #e8f4fc;
    color: #1F77BC;
}

.client-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.client-item span {
    flex: 1;
    font-weight: 500;
    line-height: 1.2;
}

/* Client Section Styles */
.client-dropdown .client-section {
    margin-bottom: 8px;
}

.client-dropdown .client-section:last-child {
    margin-bottom: 0;
}

.client-dropdown .client-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px 12px;
    margin: 0;
}

/* Prospect Item Styles */
.prospect-item {
    position: relative;
}

.prospect-icon {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%) !important;
}

.prospect-badge {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #F39C12;
}

/* Hidden state for filtered items */
.client-section[style*="display: none"],
.client-item[style*="display: none"] {
    display: none !important;
}

/* Client List Scrollbar */
.client-list::-webkit-scrollbar {
    width: 6px;
    max-height: 6px;
}

.client-list::-webkit-scrollbar-track {
    background: transparent;
}

.client-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.client-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-container[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-welcome {
    max-width: 800px;
    width: 100%;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
}

/* Input Section */
.input-section {
    width: 100%;
}

.input-wrapper {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    --border-300: 30 3.3% 11.8%;
    --always-black: 0 0% 0%;
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0.25rem 1.25rem hsl(var(--always-black) / 3.5%), 0 0 0 0.5px hsla(var(--border-300) / 0.15);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.input-wrapper:focus-within {
    --border-200: 30 3.3% 11.8%;
    --always-black: 0 0% 0%;
    --tw-shadow: 0 0.25rem 1.25rem hsl(var(--always-black) / 7.5%), 0 0 0 0.5px hsla(var(--border-200) / 0.3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.chat-input {
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    padding: 0;
    margin-bottom: 12px;
    width: 100%;
    min-height: 24px;
    max-height: 200px;
    font-family: 'Inter', sans-serif;
}

.chat-input:disabled {
    background-color: transparent !important;
    opacity: 0.3 !important;
}

.chat-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.chat-input::placeholder {
    color: #999;
}

/* Input Actions */
.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-actions button.btn:disabled {
    opacity: 0.4 !important;
}

.input-buttons {
    display: flex;
    gap: 4px;
}

.btn-icon-sm {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover {
    background-color: #f5f5f5;
}

.btn-icon-sm.tools-active,
.btn-icon-sm.apps-active {
    background-color: #e8f4fc;
    color: #1F77BC;
    border: 1px solid #1F77BC;
}

.btn-icon-sm.tools-active:hover,
.btn-icon-sm.apps-active:hover {
    background-color: #d9edf7;
}

.btn-icon-sm.apps-active {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
}

.btn-icon-sm .app-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.input-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Model Selector */
.btn-model {
    background-color: transparent;
    border: none;
    color: #666;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-model:hover {
    background-color: #f5f5f5;
}

.btn-model::after {
    margin-left: 6px;
}

/* Model Dropdown Menu */
.btn-model + .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-top: 4px;
    min-width: 140px;
}

.btn-model + .dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #2d2d2d;
}

.btn-model + .dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Voice Button */
.btn-voice {
    background-color: #e8e8e8;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-voice:hover {
    background-color: #d0d0d0;
}

.btn-voice.active {
    background-color: #dc3545;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-voice i {
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Send Button */
.btn-send {
    background-color: #e8e8e8;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-send:hover {
    background-color: #d0d0d0;
}

.btn-send i {
    font-size: 16px;
}

/* Tools Dropdown */
.tools-dropdown {
    min-width: 280px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-top: 4px;
}

.tools-dropdown .dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 12px 6px;
}

.tools-dropdown .dropdown-divider {
    margin: 4px 0;
    border-color: #e5e5e5;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: default;
}

.tool-item:hover {
    background-color: #f5f5f5;
}

.tool-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.tool-info i {
    font-size: 16px;
    color: #666;
    width: 18px;
}

.tool-info span {
    font-size: 13px;
    color: #2d2d2d;
}

.tool-item .form-check {
    margin: 0;
    padding: 0;
}

.tool-item .form-check-input {
    cursor: pointer;
    width: 36px;
    height: 20px;
    margin: 0;
}

.tool-item .form-check-input:checked {
    background-color: #1F77BC;
    border-color: #1F77BC;
}

.tool-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 119, 188, 0.25);
}

/* Tool Tooltip (legacy custom tooltip - kept for backwards compatibility, but no longer used) */
.tool-tooltip {
    position: fixed;
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 250px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow pointing left (when tooltip is on the right) */
.tool-tooltip::before {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-color: transparent #2d2d2d transparent transparent;
}

/* Bootstrap rich tooltip for tools */
.tooltip.nia-tool-tooltip {
    --bs-tooltip-bg: #2d2d2d;
    --bs-tooltip-color: #ffffff;
    --bs-tooltip-opacity: 1;
}

.tooltip.nia-tool-tooltip .tooltip-inner {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 340px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
}

/* Tooltip content layout */
.nia-tooltip {
    display: block;
}

.nia-tooltip-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #ffffff;
    white-space: normal;
}

.nia-tooltip-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 8px 0;
}

.nia-tooltip-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

/* Params table */
.nia-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.35;
}

.nia-tooltip-table td {
    padding: 4px 0;
    vertical-align: top;
}

.nia-tooltip-table td:first-child {
    padding-right: 24px;
}

.nia-tooltip-param {
    width: 42%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #ffffff;
    opacity: 0.95;
    white-space: nowrap;
}

.nia-tooltip-param-desc {
    color: rgba(255, 255, 255, 0.82);
    white-space: normal;
}

/* Allow wrapping on very small screens */
@media (max-width: 420px) {
    .tooltip.nia-tool-tooltip .tooltip-inner {
        max-width: 280px;
    }

    .nia-tooltip-param {
        white-space: normal;
    }
}

/* Apps Dropdown */
.apps-dropdown {
    min-width: 240px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-top: 4px;
}

.apps-dropdown .dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 12px 6px;
}

.apps-dropdown .dropdown-divider {
    margin: 4px 0;
    border-color: #e5e5e5;
}

.app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    color: #2d2d2d;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.app-item:hover {
    background-color: #f5f5f5;
    color: #2d2d2d;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.app-info i {
    font-size: 16px;
    color: #666;
    width: 18px;
}

.app-check {
    font-size: 16px;
    color: transparent;
    transition: color 0.2s;
}

.app-item.active .app-check {
    color: #1F77BC;
}

.app-item.active {
    background-color: #e8f4fc;
    color: #2d2d2d;
}

.app-item.active:hover {
    background-color: #d9edf7;
}

/* Scrollbar Styling */
.recent-section::-webkit-scrollbar,
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.recent-section::-webkit-scrollbar-track,
.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.recent-section::-webkit-scrollbar-thumb,
.chat-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.recent-section::-webkit-scrollbar-thumb:hover,
.chat-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Chat Conversation Styles */
.chat-conversation-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-conversation-container[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Message Groups */
.message-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.message-group:last-child {
    margin-bottom: 24px;
}

.message-avatar {
    flex-shrink: 0;
    padding-top: 4px;
}

.message-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

/* User Message */
.user-message .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.user-message .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-message .user-avatar span {
    display: block;
}

.user-message .user-avatar.has-image span {
    display: none;
}

/* Assistant Message */
.assistant-message .assistant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-message .assistant-avatar > img[src*="logo"] {
    margin-left: -5px;
}

/* Generating Avatar Animation */
.assistant-avatar.generating-avatar {
    background-color: #f5f5f5;
    animation: generating-pulse 2s ease-in-out infinite;
}

@keyframes generating-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.03);
    }
}

.generating-icon {
    filter: drop-shadow(0 0 2px rgba(31, 119, 188, 0.3));
}

/* Smooth animation for generating icon */
.generating-core {
    transform-origin: center;
}

/* Message Text */
.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2d2d2d;
    padding-top: 6px;
}

.message-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #2d2d2d;
}

.message-text h3:first-child {
    margin-top: 0;
}

.message-text p {
    margin-bottom: 12px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    margin: 12px 0;
    padding-left: 24px;
}

.message-text li {
    margin-bottom: 6px;
}

.message-text strong {
    font-weight: 600;
    color: #1F77BC;
}

/* Thinking Accordion */
.thinking-accordion {
    margin-bottom: 16px;
}

.thinking-accordion .accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.thinking-accordion .accordion-button {
    background-color: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
}

.thinking-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #1F77BC;
    box-shadow: none;
}

.thinking-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #e5e5e5;
}

.thinking-accordion .accordion-button::after {
    width: 1em;
    height: 1em;
    background-size: 1em;
}

.thinking-accordion .accordion-body {
    padding: 12px 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.thinking-accordion .accordion-body p {
    margin-bottom: 8px;
}

.thinking-accordion .accordion-body ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.thinking-accordion .accordion-body li {
    margin-bottom: 4px;
}

/* Tool Progress Box */
.tool-progress-box {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.tool-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tool-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Loading Shimmer Effect */
.loading-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(249, 249, 249, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer-text 2s infinite linear;
}

@keyframes shimmer-text {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.tool-progress-link {
    font-size: 13px;
    color: #1F77BC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tool-progress-link:hover {
    color: #1a5f9a;
    text-decoration: underline;
}

.tool-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tool-progress-bar {
    height: 100%;
    background-color: #1F77BC;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Progress Bar Shimmer Effect */
.progress-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Offcanvas Customization */
.offcanvas-end {
    width: 400px;
}

.tool-progress-details h6 {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 12px;
    margin-top: 0;
}

.tool-progress-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.tool-progress-details ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.tool-progress-details ul li:last-child {
    border-bottom: none;
}

.tool-progress-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.tool-progress-details .progress {
    height: 24px;
    border-radius: 6px;
}

.tool-progress-details .progress-bar {
    background-color: #1F77BC;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message Artifacts */
.message-artifact {
    margin: 16px 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background-color: #f9f9f9;
    overflow: hidden;
    transition: all 0.2s;
}

.message-artifact:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-text > .message-artifact:only-child {
    margin-top: 0;
}

.artifact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 16px;
}

.artifact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.artifact-info > i {
    font-size: 24px;
    color: #1F77BC;
    flex-shrink: 0;
}

.artifact-title {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artifact-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.chat-conversation-container .message-content .btn-artifact-download,
.btn-artifact-download {
    background-color: #1F77BC !important;;
    color: white !important;;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-conversation-container .message-content .btn-artifact-download:hover,
.chat-conversation-container .message-content .btn-artifact-download:visited,
.btn-artifact-download:hover,
.btn-artifact-download:visited {
    background-color: #1a5f9a !important;;
    color: white !important;
}

.chat-conversation-container .message-content .btn-artifact-download i,
.btn-artifact-download i {
    font-size: 16px !important;;
    color: white !important;
}

/* Fixed Chat Input */
.chat-input-fixed {
    position: relative;
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

/* Fixed Chat Input - Prospect variant */
.chat-input-fixed[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-input-fixed .input-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Scrollbar for conversation */
.chat-conversation-container::-webkit-scrollbar {
    width: 8px;
}

.chat-conversation-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-conversation-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}


/* Chat Usage Summary */
.chat-usage-divider {
    margin: 48px 0 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.chat-usage-summary {
    background-color: #f9f9f966;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.usage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-header i {
    font-size: 16px;
    color: #1F77BC;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.usage-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usage-stat-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.usage-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
}

.usage-stat-item.usage-cost .usage-stat-value {
    color: #1F77BC;
    font-size: 20px;
}

.usage-model {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #666;
}

.usage-model i {
    font-size: 14px;
    color: #999;
}

/* Responsive Chat Usage */
@media (max-width: 768px) {
    .usage-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .chat-usage-summary {
        padding: 16px 20px;
    }
}
.chat-conversation-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Scroll to Bottom Button */
.btn-scroll-to-bottom {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
}

.btn-scroll-to-bottom.visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-scroll-to-bottom:hover {
    background-color: #1F77BC;
    border-color: #1F77BC;
    box-shadow: 0 6px 16px rgba(31, 119, 188, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.btn-scroll-to-bottom i {
    font-size: 20px;
    color: #666;
    transition: color 0.3s ease;
}

.btn-scroll-to-bottom:hover i {
    color: #ffffff;
}

/* Ensure chat-conversation-container has relative positioning */
.chat-conversation-container {
    position: relative;
}

/* Responsive adjustment for scroll button */
@media (max-width: 768px) {
    .btn-scroll-to-bottom {
        bottom: 70px;
        width: 40px;
        height: 40px;
    }
    
    .btn-scroll-to-bottom i {
        font-size: 18px;
    }
}

/* Chat History Page Styles */
.chat-history-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

/* Chat History Container - Prospect variant */
.chat-history-container[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

/* Chat History Container - Prospect variant */
.chat-history-container[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.chat-history-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.chat-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.chat-history-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.btn-new-chat-page {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-new-chat-page:hover,
.btn-new-chat-page:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-new-chat-page i {
    font-size: 16px;
}

/* Chat History Search */
.chat-history-search-wrapper {
    margin-bottom: 24px;
}

.chat-history-search {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-history-search i {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.chat-history-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background-color: #f9f9f9;
}

.chat-history-search-input:focus {
    outline: none;
    border-color: #1F77BC;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.chat-history-search-input::placeholder {
    color: #999;
}

/* Chat History Info */
.chat-history-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.chat-count {
    font-size: 14px;
    color: #666;
}

.chat-select-link {
    font-size: 14px;
    color: #1F77BC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.chat-select-link:hover {
    color: #1a5f9a;
    text-decoration: underline;
}

/* Chat History List */
.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    margin-bottom: 12px;
}

.chat-history-item:last-child {
    margin-bottom: 0;
}

.chat-history-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.chat-item-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.chat-generating-icon {
    font-size: 14px;
    color: #F39C12;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-history-item.chat-generating {
    border-color: #F39C12;
    background-color: #fffbf5;
}

.chat-history-item.chat-generating:hover {
    background-color: #fff8ed;
    border-color: #e89b0d;
}

.chat-item-time {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Chat History Participants */
.chat-item-participants {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.chat-history-participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-left: -8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
}

.chat-history-participant-avatar:first-child {
    margin-left: 0;
}

.chat-history-participant-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-history-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-history-participant-avatar span {
    display: block;
}

.chat-history-participant-avatar.has-image span {
    display: none;
}

/* Chat History Scrollbar */
.chat-history-container::-webkit-scrollbar {
    width: 8px;
}

.chat-history-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.chat-history-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Clients Page Styles */
.clients-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.clients-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.clients-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    flex: 1;
}

.clients-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(31, 119, 188, 0.25);
}

.clients-header-icon i {
    font-size: 40px;
    color: white;
}

.clients-header-text {
    flex: 1;
    min-width: 0;
}

.clients-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 4px 0;
    line-height: 1.3;
    background: linear-gradient(90deg, #1a4d6f 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clients-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.btn-add-client {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-add-client:hover,
.btn-add-client:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-add-client i {
    font-size: 16px;
}

/* Clients Search */
.clients-search-wrapper {
    margin-bottom: 24px;
}

.clients-search {
    position: relative;
    display: flex;
    align-items: center;
}

.clients-search i {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.clients-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background-color: #f9f9f9;
}

.clients-search-input:focus {
    outline: none;
    border-color: #1F77BC;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.clients-search-input::placeholder {
    color: #999;
}

/* Clients Info */
.clients-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.client-count {
    font-size: 14px;
    color: #666;
}

/* Clients List */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.client-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    margin-bottom: 12px;
}

.client-list-item:last-child {
    margin-bottom: 0;
}

.client-list-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.client-item-icon {
    flex-shrink: 0;
}

.client-item-icon .client-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.client-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0;
    line-height: 1.4;
}

.client-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* Client Assigned Users */
.client-assigned-users {
    display: flex;
    align-items: center;
    gap: 0;
}

.assigned-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-left: -6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
}

.assigned-user-avatar:first-child {
    margin-left: 0;
}

.assigned-user-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.assigned-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.assigned-user-avatar span {
    display: block;
}

.assigned-user-avatar.has-image span {
    display: none;
}

/* Client Info Badges (Website, Address, Context) */
.client-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.client-info-badge:first-of-type {
    margin-left: 8px;
}

.client-info-badge i {
    line-height: 1;
}

/* Website Badge - Blue */
.client-website-badge {
    background-color: rgba(31, 119, 188, 0.1);
    border: 1px solid rgba(31, 119, 188, 0.2);
    color: #1F77BC;
}

.client-website-badge:hover {
    background-color: rgba(31, 119, 188, 0.2);
    border-color: rgba(31, 119, 188, 0.3);
    transform: translateY(-1px);
}

/* Address Badge - Green */
.client-address-badge {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    color: #27AE60;
}

.client-address-badge:hover {
    background-color: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.3);
    transform: translateY(-1px);
}

/* Context Badge - Purple */
.client-context-badge {
    background-color: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    color: #9B59B6;
}

.client-context-badge:hover {
    background-color: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateY(-1px);
}

/* Client Drive Files Badge */
.client-drive-files-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: rgba(31, 119, 188, 0.1);
    border: 1px solid rgba(31, 119, 188, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1F77BC;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-drive-files-badge:hover {
    background-color: rgba(31, 119, 188, 0.15);
    border-color: rgba(31, 119, 188, 0.3);
    transform: translateY(-1px);
}

.client-drive-files-badge i {
    font-size: 12px;
    line-height: 1;
}

.client-drive-files-badge .badge-count {
    line-height: 1;
    font-size: 11px;
}

/* Client Item Actions */
.client-item-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.client-item-actions .btn-icon-action {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-item-actions .btn-icon-action:hover {
    background-color: #f0f0f0;
    color: #2d2d2d;
}

/* Clients - Delete icon */
.client-item-actions .btn-client-delete:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* Clients Scrollbar */
.clients-container::-webkit-scrollbar {
    width: 8px;
}

.clients-container::-webkit-scrollbar-track {
    background: transparent;
}

.clients-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.clients-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Client Edit Page Styles */
.client-edit-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.client-edit-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.client-edit-header {
    margin-bottom: 32px;
}

.client-edit-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.client-edit-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.client-section {
    margin-bottom: 32px;
}

.client-section:last-child {
    margin-bottom: 0;
}

.client-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.client-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.client-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.client-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.client-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.client-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.client-user-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* User Selector Dropdown Styles */
.user-selector-dropdown {
    width: 100%;
}

.user-selector-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: left;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    min-height: 54px;
}

.user-selector-btn:hover {
    border-color: #d0d0d0;
    background-color: #f9f9f9;
}

.user-selector-btn:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.user-selector-btn .bi-chevron-down {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
}

.user-selector-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.user-selector-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.user-selector-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2d2d2d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.user-selector-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-selector-avatar span {
    display: block;
}

.user-selector-avatar.has-image span {
    display: none;
}

.user-selector-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-selector-placeholder {
    font-size: 14px;
    color: #999;
    flex: 1;
}

.user-selector-menu {
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px;
    margin-top: 4px;
}

.user-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.user-selector-item:hover {
    background-color: #f5f5f5;
}

.user-selector-item.active {
    background-color: #e8f4fc;
}

.user-selector-item .user-selector-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.user-selector-item-text {
    flex: 1;
    font-size: 14px;
    color: #2d2d2d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-selector-item .bi-check2 {
    font-size: 16px;
    color: #1F77BC;
    flex-shrink: 0;
}

.user-selector-menu::-webkit-scrollbar {
    width: 6px;
}

.user-selector-menu::-webkit-scrollbar-track {
    background: transparent;
}

.user-selector-menu::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.user-selector-menu::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Drive Files List */
.drive-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drive-file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.2s;
}

.drive-file-item:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.drive-file-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.drive-file-icon-emoji {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.drive-file-info {
    flex: 1;
    min-width: 0;
}

.drive-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drive-file-name-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-file-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-file-description-input {
    font-size: 13px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
    width: 100%;
}

.drive-file-description-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.drive-file-description-input::placeholder {
    color: #999;
    font-style: italic;
}

.drive-file-link {
    font-size: 11px;
    color: #1F77BC;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(31, 119, 188, 0.08);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.drive-file-link:hover {
    background-color: rgba(31, 119, 188, 0.15);
    color: #1a5f9a;
    text-decoration: none;
}

.drive-file-link i {
    font-size: 10px;
}

.drive-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.drive-file-actions .btn {
    padding: 6px 12px;
}

/* Add Drive File Button */
.btn-add-drive-file {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #2d2d2d;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-add-drive-file:hover {
    background-color: #f9f9f9;
    border-color: #1F77BC;
    color: #1F77BC;
}

.btn-add-drive-file i {
    font-size: 16px;
}

/* Sync Drive Button */
.btn-sync-drive {
    background-color: #ffffff;
    border: 1px solid #1F77BC;
    color: #1F77BC;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-sync-drive:hover {
    background-color: #e8f4fc;
    color: #1a5f9a;
    border-color: #1a5f9a;
}

.btn-sync-drive:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
}

.btn-sync-drive i {
    font-size: 14px;
}

.last-sync-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Drive File Action Buttons */
.btn-drive-action {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-drive-action:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

.btn-drive-action.btn-drive-delete:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.btn-drive-action i {
    font-size: 14px;
}

/* Client Form Actions */
.client-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-client-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-client-primary:hover,
.btn-client-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-client-primary i {
    font-size: 16px;
}

/* Client Edit Responsive */
@media (max-width: 768px) {
    .client-edit-content {
        padding: 24px 16px;
    }
    
    .client-edit-title {
        font-size: 24px;
    }
    
    .client-edit-card {
        padding: 20px;
    }
    
    .drive-file-item {
        flex-wrap: wrap;
    }
    
    .drive-file-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .drive-file-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e5e5e5;
    }
    
    .client-form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-client-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Applications Page Styles */
.apps-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.apps-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.apps-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.btn-new-app {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-new-app:hover,
.btn-new-app:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-new-app i {
    font-size: 16px;
}

/* Apps Search */
.apps-search-wrapper {
    margin-bottom: 24px;
}

.apps-search {
    position: relative;
    display: flex;
    align-items: center;
}

.apps-search i {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.apps-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background-color: #f9f9f9;
}

.apps-search-input:focus {
    outline: none;
    border-color: #1F77BC;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.apps-search-input::placeholder {
    color: #999;
}

/* Apps Info */
.apps-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.app-count {
    font-size: 14px;
    color: #666;
}

/* Apps List */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* App Accordion Item */
.app-accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.app-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
}

.app-accordion-header:hover {
    background-color: #f0f0f0;
}

.app-accordion-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.app-item-icon {
    flex-shrink: 0;
}

.app-item-icon .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.app-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    line-height: 1.4;
}

.app-item-info {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* App Accordion Actions */
.app-accordion-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-accordion-actions .form-check-input {
    display: block !important;
    margin: 5px 0 0 0 !important;
    height: 16px !important;
}

.app-accordion-actions .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.btn-app-edit {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-app-edit:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

.btn-app-delete {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-app-delete:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

.btn-app-expand {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-app-expand:hover {
    color: #1F77BC;
}

.app-accordion-tools {
    padding: 16px;
    background-color: #ffffff;
}

/* Apps Scrollbar */
.apps-container::-webkit-scrollbar {
    width: 8px;
}

.apps-container::-webkit-scrollbar-track {
    background: transparent;
}

.apps-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.apps-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .message-group {
        margin-bottom: 24px;
    }
    
    .chat-input-fixed {
        padding: 12px 16px;
    }
    
    .artifact-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-artifact-download {
        width: 100%;
        justify-content: center;
    }
    
    /* Chat History Responsive */
    .chat-history-content {
        padding: 24px 16px;
    }
    
    .chat-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .chat-history-title {
        font-size: 24px;
    }
    
    .btn-new-chat-page {
        width: 100%;
        justify-content: center;
    }
    
    /* Clients Responsive */
    .clients-content {
        padding: 24px 16px;
    }
    
    .clients-header {
        margin-bottom: 24px;
    }
    
    .clients-header-content {
        gap: 16px;
    }
    
    .clients-header-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .clients-header-icon i {
        font-size: 32px;
    }
    
    .clients-title {
        font-size: 22px;
        letter-spacing: -0.4px;
    }
    
    .clients-subtitle {
        font-size: 13px;
    }
    
    .btn-add-client {
        width: 100%;
        justify-content: center;
    }
    
    .client-list-item {
        flex-wrap: wrap;
    }
    
    .client-item-icon .client-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .client-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .assigned-user-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* Apps Responsive */
    .apps-content {
        padding: 24px 16px;
    }
    
    .apps-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .apps-title {
        font-size: 24px;
    }
    
    .btn-new-app {
        width: 100%;
        justify-content: center;
    }
    
    .app-item-icon .app-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Budget Monitor Responsive */
    .budget-monitor {
        padding: 4px 8px;
    }
    
    .budget-icon {
        width: 18px;
        height: 18px;
    }
    
    .budget-icon i {
        font-size: 14px;
    }
    
    .budget-label {
        font-size: 11px;
    }
    
    .budget-values {
        font-size: 12px;
    }
    
    .budget-progress {
        width: 35px;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.login-content {
    width: 100%;
    max-width: 440px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.login-card {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.login-card .card-body {
    padding: 40px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d2d2d;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.login-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.login-input {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.login-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.login-input::placeholder {
    color: #999;
}

.login-input.is-invalid {
    border-color: #dc3545;
}

.login-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.login-form .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
}

.login-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    margin-right: 8px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
}

.login-form .form-check-input:checked {
    background-color: #1F77BC;
    border-color: #1F77BC;
}

.login-form .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.login-form .form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.login-link {
    font-size: 14px;
    color: #1F77BC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-link:hover {
    color: #1a5f9a;
    text-decoration: underline;
}

.btn-login {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-login:hover,
.btn-login:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-login:focus {
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.25);
}

.btn-login i {
    font-size: 18px;
}

/* Login Responsive */
@media (max-width: 576px) {
    .login-card .card-body {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

/* Error Page Styles */
.error-card {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.error-card .card-body {
    padding: 40px;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #ffebee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon i {
    font-size: 40px;
    color: #E74C3C;
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d2d2d;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.error-message {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-error {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-error:hover,
.btn-error:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-error:focus {
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.25);
}

.btn-error i {
    font-size: 18px;
}

/* Error Page Responsive */
@media (max-width: 576px) {
    .error-card .card-body {
        padding: 32px 24px;
    }
    
    .error-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .error-icon i {
        font-size: 32px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* Settings Page Styles */
.settings-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    background-color: #ffffff;
}

/* Settings Sidebar */
.settings-sidebar {
    width: 260px;
    background-color: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.settings-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.settings-sidebar-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
}

.settings-nav {
    padding: 16px 12px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.settings-nav-item:hover {
    background-color: #f0f0f0;
    color: #2d2d2d;
}

.settings-nav-item.active {
    background-color: #e8f4fc;
    color: #1F77BC;
}

.settings-nav-item i {
    font-size: 18px;
}

/* Settings Content */
.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 48px;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.settings-section {
    display: none;
    max-width: 900px;
}

.settings-section.active {
    display: block;
}

.settings-section-header {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.settings-section-description {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.settings-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.settings-divider {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Settings Form */
.settings-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.settings-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.settings-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.settings-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.settings-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-settings-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

/* Drive Categories Styling */
.drive-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drive-category-item {
    border-radius: 8px;
    overflow: hidden;
}

.drive-category-item .category-name {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border: 1px solid #e0e0e0;
    padding: 0px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.drive-category-item .category-name:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    z-index: 3;
}

.drive-category-item .btn-outline-danger {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-color: #e0e0e0;
    color: #E74C3C;
    background-color: #ffffff;
}

.drive-category-item .btn-outline-danger:hover {
    background-color: #fff5f5;
    border-color: #E74C3C;
    color: #E74C3C;
}

.btn-add-category {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #1F77BC;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-add-category:hover {
    background-color: #f0f8ff;
    border-color: #1F77BC;
    color: #1a5f9a;
}

.btn-add-category i {
    font-size: 14px;
}

.btn-save-categories {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-save-categories:hover {
    background-color: #1a5f9a;
}

.btn-settings-primary:hover,
.btn-settings-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-settings-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-settings-secondary:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

/* Business Unit List */
.bu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

.bu-list-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.bu-list-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bu-list-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bu-list-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
}

.bu-list-description {
    font-size: 13px;
    color: #999;
}

.bu-list-item .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

/* Role List */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.role-item .form-check-input {
    margin: 5px 0 0 0;
}

.role-item .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
}

.role-header:hover {
    background-color: #f0f0f0;
}

.role-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.role-icon {
    font-size: 20px;
    color: #1F77BC;
}

.role-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 2px;
}

.role-description {
    font-size: 13px;
    color: #999;
}

.btn-role-expand {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-role-expand:hover {
    color: #1F77BC;
}

.role-permissions {
    padding: 16px;
    background-color: #ffffff;
}

.role-bu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.role-bu-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #2d2d2d;
    min-width: 0;
}

.role-bu-checkbox > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.role-bu-checkbox:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.role-bu-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.role-bu-checkbox input[type="checkbox"]:checked ~ span {
    font-weight: 600;
}

/* Role Business Unit Badge (Read-only) */
.role-bu-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #2d2d2d;
    background-color: #f9f9f9;
    min-width: 0;
}

.role-bu-badge > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-weight: 500;
}

/* Role Header Actions */
.role-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-role-edit {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-role-edit:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

.btn-role-delete {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-role-delete:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.user-item .form-check-input {
    margin: 5px 0 0 0;
}

.user-item .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: #999;
}

.user-role {
    flex-shrink: 0;
}

.role-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.role-badge.role-admin {
    background-color: #e8f4fc;
    color: #1F77BC;
}

.role-badge.role-manager {
    background-color: #fff3e0;
    color: #F39C12;
}

.role-badge.role-user {
    background-color: #f0f0f0;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background-color: #f0f0f0;
    color: #2d2d2d;
}

/* Usage Budget List */
.usage-budget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usage-budget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.usage-bu-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.usage-bu-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
}

.usage-budget-input {
    position: relative;
    width: 150px;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

.usage-budget-input .form-control {
    padding-left: 32px;
    font-size: 14px;
}

/* Usage Current List */
.usage-current-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-current-item {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.usage-current-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.usage-current-cost {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.usage-cost-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
}

.usage-cost-budget {
    font-size: 14px;
    color: #999;
}

.usage-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-progress-fill {
    height: 100%;
    background-color: #1F77BC;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-progress-fill.warning {
    background-color: #F39C12;
}

.usage-progress-fill.danger {
    background-color: #E74C3C;
}

.usage-percentage {
    font-size: 13px;
    color: #666;
    text-align: right;
}

/* Usage History */
.usage-history-filters {
    display: flex;
    gap: 12px;
}

.usage-history-select {
    max-width: 200px;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.settings-data-table {
    overflow-x: auto;
}

.settings-data-table .table {
    margin: 0;
}

.settings-data-table .table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
    padding: 12px;
}

.settings-data-table .table tbody td {
    font-size: 14px;
    color: #2d2d2d;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.usage-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.usage-badge.usage-ok {
    background-color: #e8f5e9;
    color: #27AE60;
}

.usage-badge.usage-warning {
    background-color: #fff3e0;
    color: #F39C12;
}

.usage-badge.usage-high {
    background-color: #ffebee;
    color: #E74C3C;
}

/* Settings Responsive */
@media (max-width: 992px) {
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 12px;
    }
    
    .settings-nav-item {
        white-space: nowrap;
        margin-right: 8px;
        margin-bottom: 0;
    }
    
    .settings-content {
        padding: 24px 16px;
    }
    
    .role-bu-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .user-item {
        flex-wrap: wrap;
    }
    
    .user-item .form-check {
        width: 100%;
        order: 3;
    }
    
    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .usage-history-filters {
        flex-direction: column;
    }
    
    .usage-history-select {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .settings-section-title {
        font-size: 24px;
    }
    
    .settings-card {
        padding: 16px;
    }
    
    .bu-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .role-bu-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-budget-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .usage-budget-input {
        width: 100%;
    }
}

/* Provider List Styles */
.provider-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

.provider-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.provider-item .form-check-input {
    margin: 5px 0 0 0;
}

.provider-item .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.provider-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.provider-icon.google {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.provider-icon.anthropic {
    background: linear-gradient(135deg, #D4A574 0%, #B8956A 100%);
}

.provider-icon.openai {
    background: linear-gradient(135deg, #10A37F 0%, #0D8A6B 100%);
}

.provider-icon > svg {
    width: 32px;
}

.provider-details {
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 2px;
}

.provider-description {
    font-size: 13px;
    color: #999;
}

.provider-actions {
    display: flex;
    gap: 8px;
}

/* Model List Styles */
.model-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.model-item:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.model-header .form-check-input {
    margin: 5px 0 0 0;
}

.model-header .form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.model-provider {
    display: flex;
    align-items: center;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.provider-badge i {
    font-size: 14px;
}

.provider-badge svg {
    width: 100%;
    height: 100%;
    max-width: 16px;
    max-height: 16px;
}

.provider-badge.google {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.provider-badge.anthropic {
    background: linear-gradient(135deg, #D4A574 0%, #B8956A 100%);
}

.provider-badge.openai {
    background: linear-gradient(135deg, #10A37F 0%, #0D8A6B 100%);
}

.model-actions {
    display: flex;
    gap: 8px;
}

.model-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.cost-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cost-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.cost-value {
    font-size: 16px;
    font-weight: 600;
    color: #1F77BC;
}

/* Provider and Model Responsive */
@media (max-width: 768px) {
    .provider-item {
        flex-wrap: wrap;
    }
    
    .provider-item .form-check {
        width: 100%;
        order: 3;
    }
    
    .provider-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .model-header .form-check {
        width: 100%;
    }
    
    .model-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .model-costs {
        grid-template-columns: 1fr;
    }
}

/* Role Edit Page Styles */
.role-edit-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.role-edit-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.role-edit-header {
    margin-bottom: 32px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #1F77BC;
}

.btn-back i {
    font-size: 16px;
}

.role-edit-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.role-edit-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.role-section {
    margin-bottom: 32px;
}

.role-section:last-child {
    margin-bottom: 0;
}

.role-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.role-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.role-section-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
}

.role-select-actions {
    display: flex;
    gap: 8px;
}

.btn-select-action {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-select-action:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    color: #2d2d2d;
}

.btn-select-action i {
    font-size: 14px;
}

.role-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.role-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.role-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.role-bu-grid-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.role-bu-checkbox-edit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #2d2d2d;
    font-weight: 500;
    background-color: #ffffff;
}

.role-bu-checkbox-edit:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.role-bu-checkbox-edit input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.role-bu-checkbox-edit input[type="checkbox"]:checked {
    accent-color: #1F77BC;
}

.role-bu-checkbox-edit input[type="checkbox"]:checked ~ .bu-label {
    font-weight: 600;
}

.role-bu-checkbox-edit:has(input:checked) {
    background-color: #e8f4fc;
    border-color: #1F77BC;
}

.role-bu-checkbox-edit .bu-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-role-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-role-primary:hover,
.btn-role-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-role-primary i {
    font-size: 16px;
}

.btn-role-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-role-secondary:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.btn-role-secondary i {
    font-size: 16px;
}

/* Role Edit Button in Settings */
.role-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-role-edit {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-role-edit:hover {
    background-color: #f0f0f0;
    color: #1F77BC;
}

/* Role Edit Responsive */
@media (max-width: 768px) {
    .role-edit-content {
        padding: 24px 16px;
    }
    
    .role-edit-title {
        font-size: 24px;
    }
    
    .role-edit-card {
        padding: 20px;
    }
    
    .role-section-header-with-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .role-select-actions {
        width: 100%;
    }
    
    .btn-select-action {
        flex: 1;
        justify-content: center;
    }
    
    .role-bu-grid-edit {
        grid-template-columns: 1fr;
    }
    
    .role-form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-role-primary,
    .btn-role-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Role Settings Permissions Styles */
.role-settings-permissions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-settings-checkbox {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ffffff;
}

.role-settings-checkbox:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

.role-settings-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    margin-right: 14px;
    flex-shrink: 0;
}

.role-settings-checkbox input[type="checkbox"]:checked {
    accent-color: #1F77BC;
}

.role-settings-checkbox:has(input:checked) {
    background-color: #e8f4fc;
    border-color: #1F77BC;
}

.settings-checkbox-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.settings-checkbox-content i {
    font-size: 20px;
    color: #666;
    flex-shrink: 0;
    transition: color 0.2s;
}

.role-settings-checkbox:has(input:checked) .settings-checkbox-content i {
    color: #1F77BC;
}

.settings-checkbox-content span {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
}

.role-settings-checkbox:has(input:checked) .settings-checkbox-content span {
    font-weight: 600;
}

/* Role Settings Permissions Responsive */
@media (max-width: 768px) {
    .role-settings-checkbox {
        padding: 12px 14px;
    }
    
    .settings-checkbox-content {
        gap: 10px;
    }
    
    .settings-checkbox-content i {
        font-size: 18px;
    }
    
    .settings-checkbox-content span {
        font-size: 13px;
    }
}

/* Bug Report Modal Styles */
.modal-content {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.modal-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    display: flex;
    align-items: center;
}

.modal-title i {
    font-size: 22px;
    color: #1F77BC;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
}

.bug-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.bug-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.bug-input::placeholder {
    color: #999;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.form-text {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.btn-bug-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.btn-bug-primary:hover,
.btn-bug-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-bug-primary:focus {
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.25);
}

.btn-bug-primary i {
    font-size: 14px;
}

.btn-bug-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-bug-secondary:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.btn-bug-secondary i {
    font-size: 14px;
}

/* Bug Report Modal Responsive */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 16px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-bug-primary,
    .btn-bug-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Provider Edit Page Styles */
.provider-edit-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.provider-edit-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.provider-edit-header {
    margin-bottom: 32px;
}

.provider-edit-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.provider-edit-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.provider-section {
    margin-bottom: 32px;
}

.provider-section:last-child {
    margin-bottom: 0;
}

.provider-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.provider-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.provider-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.provider-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.provider-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.provider-svg-input {
    padding: 12px 14px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    resize: vertical;
}

.provider-svg-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

/* Provider Color Picker */
.provider-color-picker {
    display: flex;
    gap: 12px;
    align-items: center;
}

.provider-color-input {
    width: 60px;
    height: 44px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.provider-color-input:hover {
    border-color: #d0d0d0;
}

.provider-color-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

.provider-color-text {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-transform: uppercase;
}

.provider-color-text:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

/* Provider Preview */
.provider-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f9f9f9;
    min-height: 80px;
}

.provider-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1F77BC 0%, #1a5f9a 100%);
    transition: background 0.3s ease;
}

.provider-preview-icon i {
    font-size: 24px;
}

.provider-preview-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.provider-preview-details {
    flex: 1;
    min-width: 0;
}

.provider-preview-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-preview-desc {
    font-size: 13px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Provider Form Actions */
.provider-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-provider-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-provider-primary:hover,
.btn-provider-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-provider-primary i {
    font-size: 16px;
}

.btn-provider-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-provider-secondary:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.btn-provider-secondary i {
    font-size: 16px;
}

/* Provider Edit Responsive */
@media (max-width: 768px) {
    .provider-edit-content {
        padding: 24px 16px;
    }
    
    .provider-edit-title {
        font-size: 24px;
    }
    
    .provider-edit-card {
        padding: 20px;
    }
    
    .provider-color-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .provider-color-input {
        width: 100%;
    }
    
    .provider-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .provider-preview-name,
    .provider-preview-desc {
        white-space: normal;
    }
    
    .provider-form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-provider-primary,
    .btn-provider-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Model Edit Page Styles */
.model-edit-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.model-edit-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.model-edit-header {
    margin-bottom: 32px;
}

.model-edit-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.model-edit-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.model-section {
    margin-bottom: 32px;
}

.model-section:last-child {
    margin-bottom: 0;
}

.model-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.model-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.model-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.model-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.model-input:focus {
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
    outline: none;
}

/* Model Cost Input */
.model-cost-input-wrapper {
    position: relative;
}

.model-cost-input-wrapper .currency-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

.model-cost-input {
    padding-left: 32px;
}

/* Model Preview Card */
.model-preview-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9f9f9;
}

.model-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.model-preview-info {
    flex: 1;
    min-width: 0;
}

.model-preview-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.model-preview-provider {
    display: flex;
    align-items: center;
}

.model-preview-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

/* Model Form Actions */
.model-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-model-primary {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-model-primary:hover,
.btn-model-primary:active {
    background-color: #1a5f9a !important;
    color: white !important;
}

.btn-model-primary i {
    font-size: 16px;
}

.btn-model-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-model-secondary:hover {
    background-color: #e8e8e8;
    color: #2d2d2d;
}

.btn-model-secondary i {
    font-size: 16px;
}

/* Model Edit Responsive */
@media (max-width: 768px) {
    .model-edit-content {
        padding: 24px 16px;
    }
    
    .model-edit-title {
        font-size: 24px;
    }
    
    .model-edit-card {
        padding: 20px;
    }
    
    .model-preview-costs {
        grid-template-columns: 1fr;
    }
    
    .model-form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-model-primary,
    .btn-model-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Chat History Load More Button */
.chat-history-load-more {
    text-align: center;
    margin-top: 16px;
}

.btn-load-more {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #1F77BC;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background-color: #1F77BC;
    color: #ffffff;
    border-color: #1F77BC;
}

/* Empty State Message Styles */
.empty-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 48px 24px;
}

.empty-state-message {
    text-align: center;
    max-width: 480px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(31, 119, 188, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(31, 119, 188, 0.2), rgba(52, 152, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.empty-state-icon i {
    font-size: 36px;
    color: #1F77BC;
    position: relative;
    z-index: 1;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.empty-state-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Empty State for Chat Input Area */
.empty-state-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(31, 119, 188, 0.03) 0%, rgba(52, 152, 219, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(31, 119, 188, 0.1);
    margin: 0 auto;
    max-width: 600px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.empty-state-inline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(31, 119, 188, 0.12) 0%, rgba(52, 152, 219, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
}

.empty-state-inline-icon i {
    font-size: 24px;
    color: #1F77BC;
}

.empty-state-inline-text {
    font-size: 15px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0;
}

/* Responsive Empty States */
@media (max-width: 768px) {
    .empty-state-container {
        min-height: 250px;
        padding: 32px 16px;
    }
    
    .empty-state-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .empty-state-icon i {
        font-size: 28px;
    }
    
    .empty-state-title {
        font-size: 18px;
    }
    
    .empty-state-description {
        font-size: 14px;
    }
    
    .empty-state-inline {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .empty-state-inline-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* Resume Generation Button */
.resume-generation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    margin: 16px 0;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    animation: fadeIn 0.4s ease-out;
}

.btn-resume-generation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resume-generation:hover {
    background-color: #1a5f9a;
    color: white;
}

.btn-resume-generation:active {
    background-color: #164d7f;
    color: white;
}

.btn-resume-generation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #1F77BC;
}

.btn-resume-generation i {
    font-size: 16px;
}

.btn-resume-generation .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.resume-generation-hint {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Resume Button */
@media (max-width: 768px) {
    .resume-generation-container {
        padding: 16px 20px;
        margin: 12px 0;
    }
    
    .btn-resume-generation {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-resume-generation i {
        font-size: 16px;
    }
    
    .resume-generation-hint {
        font-size: 12px;
    }
}

/* Uploaded Files List */
.uploaded-files-list {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    margin: 12px -16px 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-top: 1px solid #e5e5e5;
}

.uploaded-files-list.has-files {
    display: flex;
}

.uploaded-file-item {
    position: relative;
    width: 120px;
    height: 140px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.2s;
    cursor: default;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.uploaded-file-item:hover {
    border-color: #1F77BC;
    box-shadow: 0 2px 8px rgba(31, 119, 188, 0.15);
}

.uploaded-file-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 4px 16px 0px 16px;
    position: relative;
}

.uploaded-file-preview i {
    font-size: 40px;
    color: #1F77BC;
    margin-bottom: 8px;
}

.uploaded-file-ext {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uploaded-file-info {
    padding: 8px 10px;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uploaded-file-name {
    font-size: 12px;
    font-weight: 500;
    color: #2d2d2d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.uploaded-file-size {
    font-size: 10px;
    color: #999;
    line-height: 1.2;
}

.uploaded-file-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e5e5;
    color: #666;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uploaded-file-item:hover .uploaded-file-remove {
    display: flex;
}

.uploaded-file-remove:hover {
    background-color: #1F77BC;
    border-color: #1F77BC;
    color: #ffffff;
    transform: scale(1.1);
}

.uploaded-file-remove i {
    font-size: 12px;
}

/* Uploaded File Open Link (for existing files) */
.uploaded-file-open {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #1F77BC;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(31, 119, 188, 0.3);
    text-decoration: none;
}

.uploaded-file-item[data-existing="true"]:hover .uploaded-file-open {
    display: flex;
}

.uploaded-file-open:hover {
    background-color: #1a5f9a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(31, 119, 188, 0.4);
}

.uploaded-file-open i {
    font-size: 16px;
    transform: rotate(-45deg);
    line-height: 1;
}

/* File Upload Badge */
.btn-file-wrapper {
    position: relative;
    display: inline-block;
}

.file-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #1F77BC;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.file-count-badge.visible {
    display: flex;
}

/* Prospects Page Styles */
.prospects-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.prospects-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.prospects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.prospects-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    flex: 1;
}

.prospects-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.25);
}

.prospects-header-icon i {
    font-size: 40px;
    color: white;
}

.prospects-header-text {
    flex: 1;
    min-width: 0;
}

.prospects-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 4px 0;
    line-height: 1.3;
    background: linear-gradient(90deg, #b8730d 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prospects-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.btn-add-prospect {
    background-color: #F39C12;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-add-prospect:hover,
.btn-add-prospect:active {
    background-color: #e89b0d !important;
    color: white !important;
}

.btn-add-prospect i {
    font-size: 16px;
}

/* Prospects Search */
.prospects-search-wrapper {
    margin-bottom: 24px;
}

.prospects-search {
    position: relative;
    display: flex;
    align-items: center;
}

.prospects-search i {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.prospects-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background-color: #f9f9f9;
}

.prospects-search-input:focus {
    outline: none;
    border-color: #F39C12;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.prospects-search-input::placeholder {
    color: #999;
}

/* Prospects Info */
.prospects-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.prospect-count {
    font-size: 14px;
    color: #666;
}

/* Prospects List */
.prospects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prospect-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    margin-bottom: 12px;
}

.prospect-list-item:last-child {
    margin-bottom: 0;
}

.prospect-list-item:hover {
    background-color: #fffbf5;
    border-color: #f5d5a0;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.08);
}

.prospect-item-icon {
    flex-shrink: 0;
}

.prospect-item-icon .prospect-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.prospect-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prospect-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0;
    line-height: 1.4;
}

.prospect-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* Prospect Assigned Users */
.prospect-assigned-users {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Prospect Info Badges (Website, Address, Context) */
.prospect-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.prospect-info-badge:first-of-type {
    margin-left: 8px;
}

.prospect-info-badge i {
    line-height: 1;
}

/* Website Badge - Orange */
.prospect-website-badge {
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    color: #F39C12;
}

.prospect-website-badge:hover {
    background-color: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-1px);
}

/* Address Badge - Orange variant */
.prospect-address-badge {
    background-color: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.2);
    color: #E67E22;
}

.prospect-address-badge:hover {
    background-color: rgba(230, 126, 34, 0.2);
    border-color: rgba(230, 126, 34, 0.3);
    transform: translateY(-1px);
}

/* Context Badge - Amber */
.prospect-context-badge {
    background-color: rgba(211, 84, 0, 0.1);
    border: 1px solid rgba(211, 84, 0, 0.2);
    color: #D35400;
}

.prospect-context-badge:hover {
    background-color: rgba(211, 84, 0, 0.2);
    border-color: rgba(211, 84, 0, 0.3);
    transform: translateY(-1px);
}

/* Prospect Drive Files Badge */
.prospect-drive-files-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #F39C12;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prospect-drive-files-badge:hover {
    background-color: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-1px);
}

.prospect-drive-files-badge i {
    font-size: 12px;
    line-height: 1;
}

.prospect-drive-files-badge .badge-count {
    line-height: 1;
    font-size: 11px;
}

/* Prospect Item Actions */
.prospect-item-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Prospects - Delete icon */
.prospect-item-actions .btn-prospect-delete:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* Prospects Scrollbar */
.prospects-container::-webkit-scrollbar {
    width: 8px;
}

.prospects-container::-webkit-scrollbar-track {
    background: transparent;
}

.prospects-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.prospects-container::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Prospect Edit Page Styles */
.prospect-edit-container {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.prospect-edit-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.prospect-edit-header {
    margin-bottom: 32px;
}

.prospect-edit-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.prospect-edit-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prospect-section {
    margin-bottom: 32px;
}

.prospect-section:last-child {
    margin-bottom: 0;
}

.prospect-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.prospect-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.prospect-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.prospect-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.prospect-input:focus {
    border-color: #F39C12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    outline: none;
}

.prospect-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Prospect Form Actions */
.prospect-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-prospect-primary {
    background-color: #F39C12;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-prospect-primary:hover,
.btn-prospect-primary:active {
    background-color: #e89b0d !important;
    color: white !important;
}

.btn-prospect-primary i {
    font-size: 16px;
}

/* Prospect Edit Responsive */
@media (max-width: 768px) {
    .prospect-edit-content {
        padding: 24px 16px;
    }
    
    .prospect-edit-title {
        font-size: 24px;
    }
    
    .prospect-edit-card {
        padding: 20px;
    }
    
    .prospect-form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-prospect-primary {
        width: 100%;
        justify-content: center;
    }
    
    /* Prospects Responsive */
    .prospects-content {
        padding: 24px 16px;
    }
    
    .prospects-header {
        margin-bottom: 24px;
    }
    
    .prospects-header-content {
        gap: 16px;
    }
    
    .prospects-header-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .prospects-header-icon i {
        font-size: 32px;
    }
    
    .prospects-title {
        font-size: 22px;
        letter-spacing: -0.4px;
    }
    
    .prospects-subtitle {
        font-size: 13px;
    }
    
    .btn-add-prospect {
        width: 100%;
        justify-content: center;
    }
    
    .prospect-list-item {
        flex-wrap: wrap;
    }
    
    .prospect-item-icon .prospect-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .prospect-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
}

/* Drive Category Section Styles */
.drive-category-container {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.drive-category-container:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.drive-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Sidebar Beta Warning */
.sidebar-beta-warning {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    border-top: 1px solid #e5e5e5;
}

/* Projects Styles */
.projects-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: radial-gradient(ellipse at center,
        hsl(206, 72%, 95%) 0%,
        hsl(206, 72%, 97%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.projects-container[data-client-type="prospect"] {
    background: radial-gradient(ellipse at center,
        hsl(30, 70%, 96%) 0%,
        hsl(30, 70%, 98%) 50%,
        hsl(0, 0%, 100%) 100%);
}

.projects-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.projects-title {
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    letter-spacing: -0.5px;
    margin: 0;
}

.btn-new-project {
    background-color: #1F77BC;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-new-project:hover {
    background-color: #1a5f9a;
    color: white;
}

.projects-search-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.projects-search {
    position: relative;
    flex: 1;
    max-width: 100%;
}

.projects-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.projects-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.projects-search-input:focus {
    outline: none;
    border-color: #1F77BC;
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

.projects-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.projects-sort-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    color: #2d2d2d;
    cursor: pointer;
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
}

.project-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.empty-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    width: 100%;
}

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

.project-edit-link {
    color: #999;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 2;
    position: relative;
}

.project-edit-link:hover {
    color: #1F77BC;
    background-color: #f0f8ff;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    line-height: 1.4;
}

.project-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    font-size: 12px;
    color: #999;
}

.project-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}