/* Main styles for the FastAPI application */
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #0A0A0A;
    color: white;
    overflow: hidden;
}

/* Auto-populate button styles */
.auto-populate-btn {
    background: linear-gradient(180deg, #A93BFF 0%, #8834FF 100%) !important;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 58%;
    height: 38px;
}

.auto-populate-btn:hover {
    background: #6D28D9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5) !important;
}

.auto-populate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.auto-populate-btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.auto-populate-btn:hover i {
    transform: rotate(8deg);
}

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

::-webkit-scrollbar-track {
    background: rgba(20, 30, 60, 0.1);
    border-radius: 6px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.3);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 153, 225, 0.5);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body.light-theme ::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.3);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 153, 225, 0.4);
    background-clip: padding-box;
}

/* Sidebar-specific scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.05);
    margin: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.2);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 153, 225, 0.4);
    background-clip: padding-box;
}

body.light-theme .sidebar::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.2);
}

body.light-theme .sidebar::-webkit-scrollbar-thumb {
    background: rgba(49, 130, 206, 0.15);
}

body.light-theme .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 130, 206, 0.3);
}

/* End of scrollbar styling */

.app-container {
    display: flex;
    transform: scale(0.9);
    transform-origin: top left;
    width: 111.11%;
    height: 111.11vh;
}

.sidebar {
    width: 250px;
    background-color: #1A1A1A;
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.org-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    margin-top: -14px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.org-info:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.08));
    border-color: rgba(37, 99, 235, 0.3);
}

.org-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}

.nav-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-support {
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
}

.nav-support li:last-child {
    margin-bottom: 16px;
}

.nav-support a {
    color: #666 !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
}

.nav-support a:hover {
    color: #888 !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.nav-support a::before {
    display: none !important;
}

.nav-support i {
    font-size: 14px !important;
    opacity: 0.7;
}

.nav-support a:hover i {
    opacity: 1;
    background: none !important;
    -webkit-text-fill-color: inherit !important;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar nav ul li a {
    color: #888;
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s;
    gap: 12px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sidebar nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #2563EB;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    color: white;
}

.sidebar nav ul li a:hover::before {
    opacity: 1;
}

.sidebar nav ul li a.active {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));
    color: white;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.sidebar nav ul li a.active::before {
    opacity: 1;
}

.sidebar nav ul li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover i,
.sidebar nav ul li a.active i {
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Group sections in sidebar */
.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    padding: 0 16px;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.beta {
    background: linear-gradient(135deg, #374151, #4B5563);
    color: #9CA3AF;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    min-height: 0;
    padding-top: 0px;
}

/* Dashboard specific styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-new {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    position: relative;
}

.search-bar input {
    background-color: #1A1A1A;
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    width: 300px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #2563EB;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1D4ED8;
}

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

.stat-card {
    background-color: #1A1A1A;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
}

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

.stat-icon.blue { background-color: #1E40AF; }
.stat-icon.purple { background-color: #6D28D9; }
.stat-icon.green { background-color: #065F46; }
.stat-icon.orange { background-color: #9A3412; }

.stat-content h3 {
    color: #888;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 14px;
    color: #34D399;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recent-activities, .top-agents {
    background-color: #1A1A1A;
    border-radius: 12px;
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0;
    font-size: 16px;
}

.activity-content p {
    margin: 5px 0 0 0;
    color: #888;
    font-size: 14px;
}

.activity-time {
    color: #888;
    font-size: 14px;
}

.agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-icon {
    width: 40px;
    height: 40px;
    background-color: #1E40AF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-stats {
    display: flex;
        justify-content: flex-start !important;
        align-items: center;
        width: 100%;
}
.agent-stats  .stat-left, .agent-stats  .stat-right{
    display: flex;
        flex-direction: row;
        gap: 5px;
        align-items: center;
        background: #292929;
        padding: 2px 8px;
        border-radius: 8px;
}
.stat-value{
    padding-top: 0px !important;
}

.agent-requests {
    color: #888;
    font-size: 14px;
}

.agent-progress {
    width: 100px;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2563EB;
    border-radius: 3px;
}

.org-details h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.org-details p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #888;
}

/* Agents page specific styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 22px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.btn-secondary {
    background-color: #1A1A1A;
    color: white;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* .btn-secondary:hover {
    background-color: #252525;
} */

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    height: 100%;
}

.empty-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 2px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #888;
}

/* Create Agent page styles */
.create-agent-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-direction: row;
    margin-top: 20px;
    gap: 16px;
}
.header-left h1{
    font-size: 18px;
    padding: 0px;
    margin: 0;
    color: rgb(216, 204, 204);
    font-weight: 600;
}

.btn-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.agent-api-link, .multi-agent-api-link {
    background: linear-gradient(180deg, #A93BFF 0%, #8834FF 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none;
}

.agent-api-link:hover,.multi-agent-api-link:hover{
    background: #6D28D9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5) !important;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #888;
}

.form-input, .form-select, .form-textarea {
    width: 95%;
    background-color: #1A1A1A;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
}
.create-agent-content .form-input, .create-agent-content .form-textarea{
    width: 100% !important;
}
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.model-select-group {
    display: flex;
    gap: 12px;
}

.btn-icon {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.instructions-group {
    display: flex;
    gap: 12px;
}

.switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2563EB;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Side panel styles */
.side-panel {
    background-color: #1A1A1A;
    border-radius: 12px;
    padding: 20px;
}

.search-features {
    margin-bottom: 24px;
}

.features-section h2 {
    font-size: 16px;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beta-tag {
    background-color: #374151;
    color: #9CA3AF;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.build-section {
    margin-top: 40px;
    text-align: center;
    
}

.rocket-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2563EB;
}

.build-steps {
    margin: 24px 0;
}

.build-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.step-number {
    width: 24px;
    height: 24px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.step-content h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
}

.step-content p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Home page styles */
.hero-section {

    background: linear-gradient(100deg,rgba(212, 226, 242,0.4),rgba(222, 216, 238,0.4),rgba(225, 136, 186,0.3),rgba(236, 205, 191,0.5)) !important;
    background-size: 40% 240%;
    animation: gradient-animation 4s ease infinite;
    border: none !important;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 48px;
}

/* .gradient-background {
    background: linear-gradient(300deg,deepskyblue,darkviolet,blue,white);
    background-size: 240% 240%;
    animation: gradient-animation 24s ease infinite;
  } */
  
  @keyframes gradient-animation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

.hero-section h1 {
    font-size: 36px;
    margin: 0 0 16px 0;
    color: white;
}

.hero-description {
    font-size: 18px;
    color: #888;
    margin: 0 0 32px 0;
    max-width: 600px;
    line-height: 1.5;
}

.featured-section {
    margin-bottom: 48px;
}

.featured-section h2 {
    font-size: 24px;
    margin: 0 0 24px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.featured-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: transform 0.2s;
    /* cursor: pointer; */
}

.featured-card:hover {
    transform: translateY(-4px);
}

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

.code-icon {
    background: #2563EB;
    color: white;
}

.meal-icon {
    background: #059669;
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.card-content p {
    margin: 0 0 16px 0;
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: #252525;
    color: #888;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #EAB308;
}

.btn-primary i {
    margin-left: 8px;
}

/* Agents list styles */
.agents-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.agent-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
}

.agent-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed #d4d4d4;
}

.agent-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.agent-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.agent-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
    line-height: 40px;
    width: 90%;
    max-width: 100%;
    box-sizing: border-box;
}

.agent-details p {
    margin: 0;
    color: #888;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    height: calc(1.4em * 2);
    min-height: calc(1.4em * 2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.agent-actions {
    position: absolute;
    right: 6px;
    top: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.btn-more {
    background: #333 !important;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
}

.btn-more:hover {
    color: white;
}

.agent-card-content {
    padding: 20px;
}

.agent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.stat-label {
    color: #808080 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: 'Inter', Arial, sans-serif !important;
    line-height: 1.4 !important;
}

.stat-value {
    color: #808080 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: 'Inter', Arial, sans-serif !important;
    line-height: 1.4 !important;
    padding-top: 0 !important;
    text-align: left !important;
    
}

/* Actions menu */
.agent-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.agent-actions-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #333;
}

.menu-item.delete {
    color: #EF4444;
    border-top: 1px solid #333;
}

.menu-item.delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.menu-item i {
    font-size: 14px;
    width: 16px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin: 4px 0 0 0;
}

.search-bar {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.search-bar input {
    padding-left: 36px;
}

/* Tools section styles */
.tools-section {
    background: linear-gradient(to bottom, #0A192F, #112240);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin-right: 0px;
}

.search-bar input {
    width: auto !important;
    padding: 12px 16px 12px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E5E7EB;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tool-card.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.tool-content {
    position: relative;
    display: flex;
    flex-direction: column;
    /* min-height: 200px; */
}

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

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

.tool-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.tool-name {
    color: #E5E7EB;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tool-description {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start !important;
}

.tool-underline{
    padding-top: 15px;
    padding-bottom: 15px;
    background: #1d1d1d;
    margin-top: 25px !important;
    border-radius: 9px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: flex-end;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
}

.checkbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tool-card.selected .checkbox {
    background: #3B82F6;
    border-color: #3B82F6;
}

.checkbox i {
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-card.selected .checkbox i {
    opacity: 1;
}

/* Tools page styles */
.tools-content {
    margin-top: 24px;
    padding-bottom: 40px;
}

.tools-content h2,
.tools-content h2::after,
.tools-content h2::before {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
    content: none !important;
    height: auto !important;
}

.tools-content h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #888;
}

.external-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tool-integration-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tool-integration-card:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
}

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

.tool-info {
    align-items: center;
    gap: 12px;
}

.tool-tab-title {
    display: flex !important;
}

.tool-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.tool-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tool-logo.github,
.tool-logo.slack,
.tool-logo.discord,
.tool-logo.clickup,
.tool-logo.spotify,
.tool-logo.twitter,
.tool-logo.notion,
.tool-logo.outlook,
.tool-logo.custom {
    background: none;
}

.tool-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.btn-add {
    background: none;
    border: 1px solid #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-add:hover {
    background: #2563EB;
    border-color: #2563EB;
}

.btn-add:disabled {
    background: #2563EB;
    border-color: #2563EB;
    opacity: 0.8;
    cursor: not-allowed;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tags .tag {
    background: #252525;
    color: #888;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1A1A1A;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.btn-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: white;
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.code-editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    min-height: 200px;
}

/* Tool view modal styles */
.tool-view {
    color: white;
}

.tool-view-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.tool-view .tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.tool-view .tool-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.tool-view .tool-info p {
    margin: 0;
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

.tool-view .tool-tags {
    margin-bottom: 0px;
}

.tool-schema {
    background: #252525;
    border-radius: 8px;
    padding: 16px;
}

.tool-schema h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #888;
}

.tool-schema pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #E5E7EB;
}

.tool-schema code {
    display: block;
    overflow-x: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    height: 72px;
    background: linear-gradient(92deg, #000000, #242424);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}
.profile-btn img{
    border-radius: 4px !important;
    background: #43C9EA;
}
.header-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    margin-right: 4px;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.header-logo h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-transform: none;
}

.header-logo h1::before {
    content: '';
    position: absolute;
    top: -75%;
    left: -75%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: lens-glare 10s ease-in-out infinite;
}

@keyframes lens-glare {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    60%, 100% {
        transform: translateX(200%) rotate(25deg);
    }
}

.logo-tagline {
    font-size: 12px;
    color: #666;
    margin-top: 1px;
    letter-spacing: 0.5px;
}

@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.notification-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-profile {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-btn img {
    width: 40px;
    height: 40px;
    border-radius: 25px;
    transition: transform 0.3s;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 16px;
    width: 280px;
    padding: 12px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.profile-menu.show {
    display: block;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #333;
}

.profile-info img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.profile-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.profile-info p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #888;
}

.menu-items {
    padding: 12px;
}

.menu-items a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s;
}

.menu-items a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-items hr {
    border: none;
    border-top: 1px solid #333;
    margin: 8px 0;
}

.menu-items .logout {
    color: #EF4444;
}

.menu-items .logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.app-footer {
    margin-top: auto;
    padding: 10px;
    background-color: #1A1A1A;
    border-top: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    /* margin: 0 auto; */
}

.footer-content p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-right: 8%;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: rgb(164, 164, 164);
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #888;
    text-align: center;
}

.no-notifications i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
}

.notification-item {
    padding: 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.notification-item.unread:hover {
    background: rgba(37, 99, 235, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2563EB;
    border-radius: 0 2px 2px 0;
}

.notifications {
    position: relative;
}

.notifications-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: -16px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 16px;
    width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    max-height: 520px;
    overflow: hidden;
    flex-direction: column;
}

.notifications-menu.show {
    display: flex;
}

.notifications-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: #2563EB;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.mark-all-read:hover {
    background: rgba(37, 99, 235, 0.1);
}

.notifications-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 12px 0;
}

.notifications-list::-webkit-scrollbar {
    width: 8px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #252525;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.notification-item {
    padding: 16px 24px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.notification-item.unread:hover {
    background: rgba(37, 99, 235, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2563EB;
    border-radius: 0 2px 2px 0;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.notification-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.5;
    color: white;
}

.notification-time {
    font-size: 12px;
    color: #666;
}

.notifications-footer {
    padding: 16px 24px;
    border-top: 1px solid #333;
    text-align: center;
    background: #1A1A1A;
}

.notifications-footer a {
    color: #2563EB;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.notifications-footer a:hover {
    color: #60A5FA;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #666;
    text-align: center;
}

.no-notifications i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
}

.notifications-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #1A1A1A;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: rotate(45deg);
}

/* Tool Configuration styles */
.tool-configuration {
    background: linear-gradient(145deg, #141414, #1A1A1A);
    border-radius: 24px;
    padding: 32px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-configuration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tool-configuration-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.tool-configuration-header .info-icon {
    color: #666;
    font-size: 16px;
    cursor: help;
    transition: color 0.3s;
}

.tool-configuration-header .info-icon:hover {
    color: #2563EB;
}

.tool-search-bar {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tool-search-bar .search-input {
    flex: 1;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 40px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.tool-search-bar .search-input:focus {
    border-color: #2563EB;
    outline: none;
    background: rgba(26, 26, 26, 0.8);
}

.tool-search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.create-tool-btn {
    background: #2563EB;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.create-tool-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

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

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-icon-wrapper.yellow {
    background: linear-gradient(145deg, #B45309, #D97706);
    color: #FCD34D;
}

.tool-icon-wrapper.green {
    background: linear-gradient(145deg, #065F46, #047857);
    color: #6EE7B7;
}

.tool-icon-wrapper.purple {
    background: linear-gradient(145deg, #5B21B6, #7C3AED);
    color: #DDD6FE;
}

.tool-icon-wrapper.blue {
    background: linear-gradient(145deg, #1E40AF, #2563EB);
    color: #BFDBFE;
}

.tool-icon-wrapper.red {
    background: linear-gradient(145deg, #991B1B, #DC2626);
    color: #FECACA;
}

.tool-icon-wrapper.orange {
    background: linear-gradient(145deg, #9A3412, #EA580C);
    color: #FED7AA;
}

.tool-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(26, 26, 26, 0.8);
}

.tool-card.selected .tool-checkbox {
    background: #2563EB;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.checkbox i i {
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-card.selected .checkbox i {
    opacity: 1;
}

.tool-card .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.tool-card .checkbox .fa-check {
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tool-card.selected .checkbox .fa-check {
    opacity: 1;
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    padding-right: 28px;
    line-height: 1.4;
}

.tool-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.tool-tags .tag {
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.tool-card:hover .tool-tags .tag {
    background: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
}

.tool-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.tool-status.active {
    color: #10B981;
}

.tool-status i {
    font-size: 8px;
}

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

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

.tool-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Launch Agent Page Specific Styles */
.page.launch-agent {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.launch-agent .page-header {
    padding: 0px 32px;
    /* background: #1A1A1A; */
    border-bottom: none;
}

.launch-agent-window {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 0;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.agent-config-section {
    padding: 32px;
    background: #141414;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.agent-config-section .form-group {
    margin-bottom: 24px;
}

.agent-config-section .form-input,
.agent-config-section .form-textarea {
    background: #1A1A1A;
    border: 1px solid #333;
    cursor: text;
}

.agent-config-section .form-input:disabled,
.agent-config-section .form-textarea:disabled {
    cursor: text;
    opacity: 0.7;
}

.test-inference-section {
    background: #141414;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 500px;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.test-inference-header {
    padding: 16px;
    background: #1A1A1A;
    border-bottom: 1px solid #333;
}

.test-inference-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.test-inference-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 24px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.chat-message {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.message-avatar.user {
    background: #2563EB;
    color: white;
}

.message-avatar.agent {
    background: #1A1A1A;
    border: 1px solid #333;
    color: #888;
}

.message-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: calc(100% - 52px);
}

.message-content.user {
    background: #2563EB;
    color: white;
}

.message-content.agent {
    background: #1A1A1A;
    color: #E5E7EB;
    border: 1px solid #333;
}

.chat-input-container {
    position: relative;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.chat-input {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    padding-right: 100px;
    color: white;
    font-size: 14px;
    resize: none;
    min-height: 56px;
    max-height: 150px;
    line-height: 1.5;
    margin: 0;
    box-sizing: border-box;
}

.chat-input::placeholder {
    color: #666;
    opacity: 1;
}

.chat-input:focus {
    outline: none;
    border-color: #2563EB;
    background: rgba(26, 26, 26, 0.4);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.chat-input-actions {
    position: absolute;
    right: 16px;
    top: 32px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.chat-input-action {
    background: none;
    border: none;
    color: #666;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.chat-input-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chat-input-action.send {
    color: #2563EB;
}

.chat-input-action.send:hover {
    background: rgba(37, 99, 235, 0.1);
}

.chat-suggestions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.chat-suggestion {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 16px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.chat-suggestion:hover {
    background: #252525;
    color: white;
    border-color: #2563EB;
}

.chat-suggestion i {
    font-size: 14px;
}

.keyboard-shortcut {
    position: absolute;
    right: 16px;
    bottom: -24px;
    font-size: 12px;
    color: #666;
}

.keyboard-shortcut span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 4px;
}

.agent-config-section .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.agent-config-section .tool-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(34, 34, 34, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-config-section .tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(34, 34, 34, 0.95));
}

.agent-config-section .tool-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.agent-config-section .tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
}

.agent-config-section .tool-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.agent-config-section .tool-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.agent-config-section .tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.agent-config-section .tool-tags .tag {
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.agent-config-section .tool-card:hover .tool-tags .tag {
    background: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
}

/* Tool icon colors */
.agent-config-section .tool-icon-wrapper.yellow {
    background: linear-gradient(145deg, #B45309, #D97706);
    color: #FCD34D;
}

.agent-config-section .tool-icon-wrapper.green {
    background: linear-gradient(145deg, #065F46, #047857);
    color: #6EE7B7;
}

.agent-config-section .tool-icon-wrapper.purple {
    background: linear-gradient(145deg, #5B21B6, #7C3AED);
    color: #DDD6FE;
}

.agent-config-section .tool-icon-wrapper.blue {
    background: linear-gradient(145deg, #1E40AF, #2563EB);
    color: #BFDBFE;
}

.agent-config-section .tool-icon-wrapper.red {
    background: linear-gradient(145deg, #991B1B, #DC2626);
    color: #FECACA;
}

.agent-config-section .tool-icon-wrapper.orange {
    background: linear-gradient(145deg, #9A3412, #EA580C);
    color: #FED7AA;
}

.section-group {
    background: linear-gradient(297deg, #350703, #000720);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-group .form-group {
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.4);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.section-group .form-group:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(37, 99, 235, 0.3);
}

.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-create {
    background: linear-gradient(145deg, #2563EB, #1D4ED8);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-create:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #1D4ED8, #1E40AF);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

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




/* .agent-api-link {
    opacity: 0.4;
    cursor: no-drop;
    color: #b3b3b3;
} */



#agentInstructions {
    min-height: 180px !important;
}

.headmarket {
    height: 24px;
    /* padding-top: 25px; */
    font-size: 21px;
    font-weight: 800;
    /* padding-left: 71px; */
    color: #e0e0e0;
}



.btn-feat{
    font-size: 12px;
    padding: 6px 10px !important;
    float: right;
    margin-top: 28px;
}


.btn-feat-off{
    font-size: 12px;
    padding: 6px 10px !important;
    float: right;
    margin-top: 28px;
    opacity: 0.3;
    cursor: no-drop;
}

.file-preview {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #888;
}

.remove-file {
    background: none;
    border: none;
    color: #888;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-file:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}


.ltool {
    padding-right: 0px !important;
}

/* Edit mode styles */
.form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-edit, .btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #1A1A1A;
    color: white;
    border: 1px solid #333;
}

.btn-edit:hover {
    background-color: #252525;
}

.btn-edit.active {
    background-color: #333;
    color: #ff4444;
}

.btn-save {
    background-color: #2563EB;
    color: white;
    border: none;
}

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

.form-input.editing, .form-textarea.editing {
    background-color: #1A1A1A;
    border-color: #2563EB;
}

.form-input.editing:focus, .form-textarea.editing:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

.toast.success {
    background-color: #059669;
}

.toast.error {
    background-color: #dc2626;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}






#preview_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
    padding: 10px 15px;
    border: 2px solid #2f2f2f;
    border-radius: 10px;
    background: linear-gradient(135deg, #000000, #050531);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    display: none;
}
#my_file {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    color: #ffffff;
}
#clear_selected_file {
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin-left: 12px;
    transition: color 0.2s ease-in-out;
}
#clear_selected_file:hover {
    color: #ff0000;
}

#clear_selected_file {
    cursor: pointer;
    font-family: 'FontAwesome';
}





body.light-theme {
    background-color: #f5f5f5;
    color: #333;
}

body.light-theme .chat-container,
body.light-theme .agent-config-section {
    background-color: #fff;
    border-color: #ddd;
}

body.light-theme .chat-input-container,
body.light-theme .file-upload-preview {
    background-color: #f0f0f0;
    border-color: #ccc;
}

body.light-theme .file-upload-remove:hover {
    color: #d9534f;
}

body.light-theme .header-actions button {
    background-color: #e7e7e7;
    color: #333;
    border: 1px solid #ccc;
}

body.light-theme .header-actions button:hover {
    background-color: #ddd;
}

body.light-theme .sidebar {
    background-color: #ffffff;
    border-color: #ddd;
}

body.light-theme .sidebar nav ul li a {
    color: #555;
}

body.light-theme .sidebar nav ul li a:hover {
    border-radius: 8px;
    background: linear-gradient(180deg, #A93BFF 0%, #8834FF 100%);
    box-shadow: 0px 15px 35px 0px rgba(86, 59, 255, 0.26);
    color: #fff;
}
.sidebar.collapsed .sidebar-toggle{
    left: 0;
    right: 0 !important;
    margin: auto;
}
body.light-theme .sidebar nav ul li a.active {
    border-radius: 8px;
    background: linear-gradient(180deg, #A93BFF 0%, #8834FF 100%);
    box-shadow: 0px 15px 35px 0px rgba(86, 59, 255, 0.26);
    color: #fff;
}
body.light-theme .sidebar nav ul li a.active::before{
    display: none;
}
.sidebar nav ul li a:hover::before{
    display: none;
}

body.light-theme .page-header,
body.light-theme .agent-config-section,
body.light-theme .test-inference-section,
body.light-theme .test-inference-header,
body.light-theme .chat-container,
body.light-theme .chat-input-container,
body.light-theme .section-group,
body.light-theme .file-preview,
body.light-theme .app-header,
body.light-theme .app-footer,
body.light-theme .featured-section {
    background-color: #fff;
    border-color: #ddd;
    box-shadow: none;
    background: transparent;
}

body.light-theme .agent-card,
body.light-theme .stat-card,
body.light-theme .recent-activities,
body.light-theme .top-agents,
body.light-theme .tool-card,
body.light-theme .tool-integration-card,
body.light-theme .featured-card,
body.light-theme .modal-content,
body.light-theme .profile-menu,
body.light-theme .notifications-menu {
    background: #fff !important;
    border-color: #fff !important;
    color: #333;
    border-radius: 44px 4px 4px 4px;
box-shadow: 0px 0px var(--Sizes-S-04, 4px) 0px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .form-input,
body.light-theme .form-textarea,
body.light-theme .form-select,
body.light-theme .search-bar input,
body.light-theme .chat-input {
    background-color: #fff !important;
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    height: 40px;
    box-sizing: border-box;
}

body.light-theme .chat-input::placeholder {
    color: #888;
}

body.light-theme .modal-header,
body.light-theme .modal-body,
body.light-theme .modal-footer {
    background-color: #fff;
    border-color: #ddd;
}

body.light-theme .tool-schema {
    background-color: #f5f5f5;
}

body.light-theme .tool-schema h4 {
    color: #555;
}

body.light-theme .tool-schema pre {
    color: #333;
}

body.light-theme .tool-tags .tag {
    background-color: #eee;
    color: #666;
}

body.light-theme .section-group {
    background: linear-gradient(297deg, #f8f0ef, #f0f5ff);
    border-color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .btn-secondary,
body.light-theme .chat-input-action,
body.light-theme .btn-more,
body.light-theme .view-btn,
body.light-theme .notification-btn,
body.light-theme .btn-close,
body.light-theme .btn-back,
body.light-theme .btn-edit {
    background-color: #e7e7e7;
    color: #555;
    border-color: #ccc;
}

body.light-theme .btn-secondary:hover,
body.light-theme .chat-input-action:hover,
body.light-theme .btn-more:hover,
body.light-theme .view-btn:hover,
body.light-theme .btn-edit:hover {
    background-color: #ddd;
    color: #333;
}

body.light-theme .remove-file:hover,
body.light-theme .file-upload-remove:hover {
    color: #d9534f;
}

body.light-theme .message-content.agent {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #333;
}

body.light-theme .message-avatar.agent {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #666;
}

body.light-theme #preview_box {
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
    border-color: #ddd;
}

body.light-theme #my_file {
    color: #333;
}

.theme-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-toggle .light-icon {
    display: none;
}

.theme-toggle .dark-icon {
    display: block;
}

body.light-theme .theme-toggle {
    color: #333;
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle .light-icon {
    display: block;
}

body.light-theme .theme-toggle .dark-icon {
    display: none; 
}

body.light-theme .hero-section {
    background: linear-gradient(45deg, #f0f0f0, #e6e6e6);
}

body.light-theme .hero-section h1 {
    color: #333;
}

body.light-theme .hero-description {
    color: #666;
}

body.light-theme .featured-section h2,
body.light-theme .section-title,
body.light-theme .test-inference-header h2 {
    color: #333;
}

body.light-theme .card-content h3 {
    color: #333;
}

body.light-theme .agent-stats .stat-left,
body.light-theme .agent-stats .stat-right {
    background: #F3F5FF;
    color: #333;
}

body.light-theme .card-content p {
    color: #666;
}

body.light-theme .header-logo i {
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .header-logo h1 {
    background: linear-gradient(135deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .chat-suggestion {
    background: #f0f0f0;
    border-color: #ddd;
    color: #666;
}

body.light-theme .chat-suggestion:hover {
    background: #e6e6e6;
    color: #333;
    border-color: #2563EB;
}

body.light-theme .keyboard-shortcut {
    color: #888;
}

body.light-theme .keyboard-shortcut span {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

body.light-theme .file-upload-preview {
    background: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
}

body.light-theme .file-upload-name {
    color: #333;
}

body.light-theme .agent-config-section .tool-card {
    background: linear-gradient(145deg, rgba(240, 240, 240, 0.9), rgba(230, 230, 230, 0.9));
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .agent-config-section .tool-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(145deg, rgba(235, 235, 235, 0.95), rgba(225, 225, 225, 0.95));
}

body.light-theme .agent-config-section .tool-description {
    color: #555;
}

body.light-theme .agent-config-section .tool-name {
    color: #333;
}

body.light-theme .section-group .form-group {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .section-group .form-group:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.3);
}

body.light-theme .form-group label {
    color: #555;
}

body.light-theme .profile-info {
    border-color: #ddd;
}

body.light-theme .menu-items a {
    color: #666;
}

body.light-theme .menu-items a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .menu-items hr {
    border-top-color: #ddd;
}

body.light-theme .notifications-header,
body.light-theme .notifications-footer {
    border-color: #ddd;
    background-color: #fff;
}

body.light-theme .notifications-header h3 {
    color: #333;
}

body.light-theme .notification-item {
    border-bottom-color: #ddd;
}

body.light-theme .notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .notification-content p {
    color: #333;
}

body.light-theme .notification-time {
    color: #888;
}

body.light-theme .notification-icon {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
}

body.light-theme #clear_selected_file:hover {
    color: #ff0000;
}

body.light-theme .agent-config-section .form-input,
body.light-theme .agent-config-section .form-textarea {
    background: #f9f9f9;
    border: 1px solid #ccc;
}

body.light-theme .agent-config-section .tool-card {
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-color: #ddd;
}

body.light-theme .tool-configuration {
    background: linear-gradient(145deg, #f8f8f8, #f0f0f0);
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .tool-search-bar .search-input {
    background: #f9f9f9;
    border-color: #ccc;
    color: #333;
}

body.light-theme .tool-search-bar .search-input:focus {
    border-color: #2563EB;
    background: #fff;
}

body.light-theme .notifications-menu::before {
    background: #fff;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

body.light-theme .chat-suggestion {
    background: #f5f5f5;
    border-color: #ddd;
    color: #666;
}

body.light-theme .chat-suggestion:hover {
    background: #e6e6e6;
    color: #333;
}

body.light-theme .section-group {
    background: linear-gradient(297deg, #f4f4f7, #f0f5ff);
    border-color: #ddd;
}

body.light-theme .agent-config-section {
    background: #f8f8f8;
}

body.light-theme .test-inference-section {
    background: #f8f8f8;
}

body.light-theme .test-inference-header {
    background: #fff;
}

body.light-theme .form-input:disabled,
body.light-theme .form-textarea:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #777;
}

body.light-theme .search-bar input {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

body.light-theme .side-panel {
    background-color: #fff;
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: linear-gradient(109deg, #F1F6FF 9.27%, #FAF4FF 95.79%);
}

body.light-theme .tool-underline {
    /* border-radius: 8px !important;
    background: linear-gradient(109deg, #F1F6FF 9.27%, #FAF4FF 95.79%) !important;
    display: flex;
    padding: 2px 12px;
    justify-content: center;
    align-items: center; */
}

body.light-theme .tools-section {
    background: linear-gradient(to bottom, #f0f5ff, #f8f8f8);
    border-color: #ddd;
}

body.light-theme .hero-section {
    background: linear-gradient(45deg, #f0f5ff, #f0f0f0);
}

body.light-theme .tools-header h2,
body.light-theme .tools-header h3 {
    color: #333;
}

body.light-theme .tool-content {
    background-color: #fff;
}

body.light-theme .tool-icon-wrapper {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

body.light-theme .form-actions {
    border-top-color: #ddd;
}

body.light-theme .btn-create {
    background: linear-gradient(145deg, #2563EB, #1D4ED8);
    color: #fff;
}

body.light-theme .btn-save {
    background-color: #2563EB;
    color: #fff;
}

body.light-theme .notifications-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.light-theme .notifications-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

body.light-theme .beta,
body.light-theme .beta-tag {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

body.light-theme .step-number {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
}

body.light-theme .agent-config-section .tool-icon-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-support {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-section-title {
    color: #666;
}

body.light-theme .org-info {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    border: 1px solid rgba(37, 99, 235, 0.1);
}

body.light-theme .org-info:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-color: rgba(37, 99, 235, 0.2);
}

body.light-theme .org-details h3 {
    color: #333;
}

body.light-theme .org-details p {
    color: #666;
}

#multiAgentList .agent-icon {
    background-color: rgba(169, 59, 255, 0.2) !important;
    background: rgba(169, 59, 255, 0.2) !important;
    color: #A93BFF !important;
    border-radius: 8px;
}
#multiAgentList .connected-agents-container h4{
    margin-top: 0px;
}

body.light-theme .agent-info h4 {
    color: #333;
}

/* Theme toggle default styles */
.theme-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-toggle .light-icon {
    display: none;
}

.theme-toggle .dark-icon {
    display: block;
}


.tool_connector_name_tag {
    color: #b9b9b9;
    font-weight: 600;
    text-transform: uppercase;
}

.tool_connector_type_tag {
    color: #b0c2ca;
    font-weight: 600;
    font-style: italic;
}


.tool_universe {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin-left: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    background: var(--primary-color, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: black;
    border-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-left: 0;
    box-shadow: none !important;
    height: 42px;
    box-sizing: border-box;
    color: white;
}

/* Light theme styles */
[data-theme="light"] .tool_universe {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

/* Dark theme styles */
[data-theme="dark"] .tool_universe {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}



.tool_universe:hover {
    transform: translateY(-2px);
}

/* Light theme hover */
[data-theme="light"] .tool_universe:hover {
    background: #f5f5f5;
}

/* Dark theme hover */
[data-theme="dark"] .tool_universe:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tool_universe::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, #00f2ff, #ff00ff);
    border-radius: 2px;
    opacity: 0.7;
}

.universe-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Light theme icon */
[data-theme="light"] .universe-icon {
    stroke: #1a1a2e;
}

/* Dark theme icon */
[data-theme="dark"] .universe-icon {
    stroke: #ffffff;
}

.universe-icon .glow {
    stroke: #00f2ff;
    stroke-width: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .tool_universe {
        padding: 6px 12px;
        font-size: 13px;
    }
    .universe-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .tool_universe {
        padding: 4px 10px;
        font-size: 12px;
        margin-left: 6px;
    }
    .universe-icon {
        width: 12px;
        height: 12px;
        margin-right: 6px;
    }
}

/* Tool Universe Click Animation and Loading Spinner */
.tool-universe-clicked {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.universe-loading-spinner {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: universe-spin 0.8s linear infinite;
}

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

/* Ensure the button appears above other elements */
.tools-content, .advanced-tools-section {
    position: relative;
    z-index: 1;
}

/* .auto-pop {
    margin-left: 62%;
    padding-bottom: 13px;
} */

/*::: Style Override by Jaymin :::*/

/* .sidebar.collapsed {
    width: 60px !important;
    display: none;
} */

.refresh_btn{
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0;
}

body.light-theme .multi-agent-badge{
    padding: 2px 8px;
    border-radius: 33px;
    border: 1px solid rgba(30, 1, 155, 0.30) !important;
    border-color: rgba(30, 1, 155, 0.30) !important;
    background-color: #F4F1FE !important;
    color: #1E019B !important;
    height: 21px;
    box-sizing: border-box;
    box-shadow: none !important;
}
body.light-theme .multi-agent-badge svg{
    display: none;
}
.main-form {
    background-color: #1A1A1A;
    color: white;
    border-radius: 8px;
    border: 1px solid #373738;
    background: #000214;
    box-shadow: 0px 0px var(--Sizes-S-04, 4px) 0px rgba(0, 0, 0, 0.12);
    padding: 30px 20px;
    overflow: auto;
    height: calc(100vh - 260px);
}

body.light-theme .main-form {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #E5E7E9;
    background: #ffffff;
    box-shadow: 0px 0px var(--Sizes-S-04, 4px) 0px rgba(0, 0, 0, 0.12);
    padding: 30px 20px;
    overflow: auto;
    height: calc(100vh - 260px);
}
#multiAgentList .agent-card.multi-agent-card{
    border-radius: 4px !important;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
#multiAgentList .agent-card.multi-agent-card .connected-agents-container h4{
    color: #ffffff !important;
    opacity: 0.9;
}
#multiAgentList .agent-card.multi-agent-card .agent-tag{
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
#multiAgentList .agent-card.multi-agent-card .agent-details h3 {
    color: #ffffff !important;
}
#multiAgentList .agent-card.multi-agent-card .agent-details p {
    color: rgba(255, 255, 255, 0.7) !important;
}
#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: rgba(255, 255, 255, 0.6) !important;
}
#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #ffffff !important;
}
#multiAgentList .agent-card.multi-agent-card .agent-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#multiAgentList .agent-card.multi-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark mode styles */
#multiAgentList .agent-card.multi-agent-card {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #19223a 0%, #232b47 100%) !important;
    border: 1px solid rgba(99, 179, 237, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
}

#multiAgentList .agent-card.multi-agent-card .connected-agents-container h4 {
    color: rgba(255,255,255,0.85) !important;
    opacity: 1;
}

#multiAgentList .agent-card.multi-agent-card .agent-tag {
    border-radius: 8px;
    background: rgba(99, 179, 237, 0.12) !important;
    color: #b3d4fc !important;
    border: 1px solid rgba(99, 179, 237, 0.25) !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-details h3 {
    color: #fff !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-details p {
    color: #b3b8c5 !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: #b3b8c5 !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #fff !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-actions {
    border-top: 1px solid rgba(99, 179, 237, 0.10) !important;
}

#multiAgentList .agent-card.multi-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22) !important;
    border-color: rgba(99, 179, 237, 0.25) !important;
}

/* Light mode styles */
body.light-theme #multiAgentList .agent-card.multi-agent-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .connected-agents-container h4 {
    color: #1F2B4D !important;
    opacity: 0.9;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-tag {
    background: linear-gradient(109deg, #F1F6FF 9.27%, #FAF4FF 95.79%) !important;
    color: #1F2B4D !important;
    border: 1px solid rgba(31, 43, 77, 0.1) !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-details h3 {
    color: #1F2B4D !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-details p {
    color: rgba(31, 43, 77, 0.7) !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: rgba(31, 43, 77, 0.6) !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #1F2B4D !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(31, 43, 77, 0.2) !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: #fff !important;
}

/* DARK MODE: white for stat-label and stat-value */
body:not(.light-theme) #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label,
body:not(.light-theme) #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #fff !important;
}

/* LIGHT MODE: dark blue for stat-label and stat-value */
body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: rgba(31, 43, 77, 0.6) !important;
}
body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #1F2B4D !important;
}

/* Multi-agent card stats specific styles */
#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: #b3d4fc !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

#multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-label {
    color: #1F2B4D !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

body.light-theme #multiAgentList .agent-card.multi-agent-card .agent-stats .stat-value {
    color: #1F2B4D !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

body.light-theme .btn-more {
    background: #e7e7e7 !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
}
body.light-theme .btn-more:hover {
    background: #ddd !important;
    color: #333 !important;
}

body.light-theme .agent-actions-menu {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
body.light-theme .agent-actions-menu .menu-item {
    color: #333 !important;
}
body.light-theme .agent-actions-menu .menu-item.delete {
    color: #EF4444 !important;
}
body.light-theme .agent-actions-menu .menu-item:hover {
    background: #f5f5f5 !important;
    color: #2563EB !important;
}

/* Multi-agent cards responsive behavior */
#multiAgentList .agent-card {
    width: auto !important;
    min-width: 300px !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

#multiAgentList.card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    overflow: visible !important;
}

/* Expand multi-agent cards when sidebar is collapsed - same behavior as tool cards */
.app-container.sidebar-collapsed #multiAgentList.card-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

.app-container.sidebar-collapsed #multiAgentList .agent-card {
    min-width: 320px !important;
}

body:not(.light-theme) .tool_universe {
    border-color: rgba(255,255,255,0.18) !important;
}

body:not(.light-theme) .multi-agents-page .search-bar input {
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 33px !important;
    background-color: #181a20 !important;
    color: #fff !important;
    height: 40px !important;
    box-sizing: border-box;
    margin-left: 10px !important;
}

body:not(.light-theme) .multi-agents-page .agent-card-header {
    border-bottom: 1px dashed rgba(255,255,255,0.12) !important;
}

body:not(.light-theme) .multi-agent-card .connected-agents-container,
body:not(.light-theme) .multi-agent-card .magent-stats,
body:not(.light-theme) .multi-agent-card .agent-stats,
body:not(.light-theme) .multi-agent-card .connected-agents-container *,
body:not(.light-theme) .multi-agent-card .magent-stats *,
body:not(.light-theme) .multi-agent-card .agent-stats * {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

body:not(.light-theme) .multi-agent-card .magent-stats + *,
body:not(.light-theme) .multi-agent-card .agent-stats + * {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

body:not(.light-theme) .btn-more {
    border-radius: 44px 4px 4px 4px !important;
}

body:not(.light-theme) .btn-more {
    background: #333 !important;
    color: #888 !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
}
body:not(.light-theme) .btn-more {
    background: #333 !important;
    color: #888 !important;
}
body:not(.light-theme) .btn-more hover{
    background:  #444 !important;
    color: #fff !important;

    
}

body:not(.light-theme) .tool-integration-card {
    border-radius: 44px 4px 4px 4px !important;
}

body:not(.light-theme) .agent-card {
    border-radius: 44px 4px 4px 4px !important;
}

body:not(.light-theme) .agent-card .agent-actions,
body:not(.light-theme) .agent-card .btn-more {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    position: absolute !important;
    right: 6px !important;
    top: 8px !important;
    z-index: 10 !important;
}

body:not(.light-theme) .agent-card:hover .agent-actions,
body:not(.light-theme) .agent-card:hover .btn-more,
body:not(.light-theme) .agent-card:focus .agent-actions,
body:not(.light-theme) .agent-card:focus .btn-more {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

body:not(.light-theme) .agent-card .btn-more {
    background: #333 !important;
    color: #888 !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
}

body:not(.light-theme) .agent-card-header {
    position: relative !important;
}


body:not(.light-theme) .agent-card .btn-more {
    background: #333 !important;
    color: #888 !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    width: 14.28px !important;
    height: 27.78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
body:not(.light-theme) .agent-card .btn-more:hover {
    background: #444 !important;
    color: #fff !important;
}

body:not(.light-theme) .btn-more:hover {
    background: #444 !important;
    color: #fff !important;
}

.agent-details h3,
.tool-name,
.tool-info h3,
body.light-theme .agent-details h3,
body.light-theme .tool-name,
body.light-theme .tool-info h3 {
    text-transform: none !important;
}

.like-badge {
    position: absolute;
    top: 22px;
    right: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.like-badge img {
    width: 16px;
    height: 14.006px;
}
.like-badge span {
    color: #000;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-left: 4px;
}