/*body{*/
/*    font-size: 5vh;*/
/*    font-family: sans-serif;*/
/*    overflow: hidden;*/
/*    display: flex;*/
/*    margin: 0;*/
/*    padding:0;*/
/*    flex-direction: column;*/
/*}*/



/*.action-item.person .text {*/
/*    display: none;*/
/*    color: black;*/
/*    font-size: 0.9rem;*/
/*    z-index: 3;*/
/*    !* text-shadow: 1px 1px 1px rgba(0,0,0,0.95); *!*/
/*}*/

/*.message-item:hover .action-item.person .text {*/
/*    display: inline-block;*/
/*    !* position: absolute; *!*/
/*}*/

/*!*******!*/
/*.message-item {*/
/*    flex-direction: row;*/
/*    margin-top: 3px;*/
/*}*/

/*.message-item.is-current-user {*/
/*    flex-direction: row-reverse;*/
/*    gap: 0;*/
/*}*/

/*.message-item.same-person {*/
/*    margin-top:1px;*/
/*}*/

/*.message-item .circle {*/
/*    flex-direction: row;*/
/*    font-size: 8rem;*/
/*    gap: 3px;*/
/*    height: 3rem;*/
/*    padding-right: 0;*/
/*}*/

/*!*******!*/

/*.dialog .profile>.action-item.person .text,*/
/*.dialog .message-item .text,*/
/*.dialog .profile>.person-icon .text {*/
/*    display: block;*/
/*    opacity: 1;*/
/*    visibility: visible;*/
/*    max-height: 10rem;*/
/*    max-width: 10rem;*/
/*}*/

/*.dialog .search .action-item.person .text {*/
/*    display: none;*/
/*}*/

/*.message-item .message-text,*/
/*.message-item-sender .message-text {*/
/*    flex-direction: column;*/
/*    font-size: 1rem;*/
/*    gap: 1px;*/
/*    !* background: white; *!*/
/*    background: #CAF2FF;*/
/*    border: 1px solid #BAE2EF;*/
/*    margin: 0 24px 0 3px;*/
/*    padding: .75rem;*/
/*    border-radius: 9px 9px 9px 0;*/
/*    color: #000000CC;*/
/*    box-shadow: none;*/
/*    text-shadow: none;*/
/*    text-align: justify;*/
/*}*/

/*.message-item.is-current-user .message-text {*/
/*    background: #F0DCFF;*/
/*    border: 1px solid #E0CCEF;*/
/*    margin: 0 1px 0 50px;*/
/*    border-radius: .75rem .75rem 0 .75rem;*/
/*}*/

/*!*noinspection CssUnusedSymbol*!*/
/*!*.page.connect_chat .person.connect_person {*!*/
/*!*    display: none;*!*/
/*!*}*!*/

.icon{
    width: 1.5rem;
    height: 1.5rem;
}
.title-middle .icon{
    width: 1.5rem;
    height: 1.5rem;
}
.main-nav .icon{
    width: 1.75rem;
    height: 1.75rem;
}
.message-input{
    font-family: 'SF Pro Display', Arial, sans-serif;
    flex: 1;
    resize: both;
    width: 200px;
    height: 30px;
}

.bully{
    flex: 1;
}
.footer{
    padding: 6px;
    width: 100%;
}
/*.topic-panel {*/
/*    !*display: flex;*!*/
/*    !*justify-content: flex-end;*!*/
/*    !*flex-direction: row;*!*/
/*}*/
/*.message-panel {*/
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*    flex-direction: column;*/
/*}*/

.content-panel{
    font-size: 1rem;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 3px;
    gap:1em;
    /*height: 75vh;*/
    overflow-x: hidden;
    overflow-y: scroll;
    background: white;
    /*border-radius: 1rem;*/
}
/*.input-message{*/
/*    margin: 1rem;*/
/*}*/
/*#logout {*/
/*    margin: 1rem;*/
/*}*/

/*#topicList{*/
/*    margin: 0;*/
/*}*/

.invite-status{
    border-radius: 0.3rem;
    /*background-color: #ff6666;*/
    color: #eee;
    font-size: 0.8em;
    padding: 0.1rem;
    min-width: 7em;
    text-align: center;
    margin-left: 0.5rem;
}

.invite-status.going button{
    background-color: #336633;
}
.invite-status.maybe button{
    background-color: #999999;
}
.invite-status.pending button{
    background-color: #666666;
    color: #cccccc;

}
.invite-status.countered button{
    background-color: #cc9900;
}
.invite-status.declined button{
    background-color: #cc3333;
}

body{
    overflow: hidden;
    margin:0;
    padding:0;
}

.hidden {
    display: none !important;
}

/* LLM Registry Styles */
.llm-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

.llm-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
}

.llm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    margin-bottom: 15px;
}

.llm-info {
    flex: 1;
}

.llm-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.llm-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.llm-status {
    margin-left: 15px;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-indicator.configured {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.not-configured {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator.server-key {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.llm-config {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.api-key-section {
    margin-bottom: 10px;
}

.api-key-section .label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.api-key-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-direction: row;
}

.api-key-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
}

.api-key-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.test-key-btn, .save-key-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.test-key-btn {
    background: #17a2b8;
    color: white;
}

.test-key-btn:hover {
    background: #138496;
}

.save-key-btn {
    background: #28a745;
    color: white;
}

.save-key-btn:hover {
    background: #218838;
}

/* Server Key Styles */
.server-key-section {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.server-key-section .label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
    font-size: 13px;
}

.server-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-key-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    background: #e9ecef;
    color: #495057;
    cursor: not-allowed;
}

.server-key-note {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    white-space: nowrap;
}

.key-warning {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.warning-text {
    font-size: 13px;
    color: #856404;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Hide error elements when they have no content */
.error:empty {
    display: none;
}

/* Alternative: Hide error elements that only contain whitespace */
.error:blank {
    display: none;
}

/* For better browser support, you can also use this JavaScript approach */

.no-llms {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* LLM Selection Styles */
.llm-selection-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.llm-selection-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.llm-selection-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.selection-item {
    flex: 1;
    min-width: 200px;
}

.selection-item .label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.llm-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.llm-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.llm-warning {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.llm-warning.hidden {
    display: none;
}

.warning-item {
    color: #856404;
    margin-bottom: 5px;
    font-size: 14px;
}

.warning-item:last-child {
    margin-bottom: 0;
}

/* Highlight effect for selected LLMs */
.llm-item.highlight-selected {
    animation: highlight-pulse 2s ease-in-out;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

@keyframes highlight-pulse {
    0% {
        border-color: #ddd;
        box-shadow: 0 0 0 rgba(0, 123, 255, 0);
    }
    50% {
        border-color: #007bff;
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    }
    100% {
        border-color: #ddd;
        box-shadow: 0 0 0 rgba(0, 123, 255, 0);
    }
}
html{
    overflow: hidden;
    margin:0;
    padding:0;
}

/* Title row layout for explore detail pages */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.title-row .card-title {
    flex: 1;
    margin-right: 10px;
}

.enrich-button-container {
    flex-shrink: 0;
    margin-left: 10px;
}

/* Enrich button styling */
.enrich-button {
    cursor: pointer;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enrich-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.enrich-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.enrich-button .icon-frame {
    display: flex;
    align-items: center;
    gap: 8px;
}

.enrich-button .icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.enrich-button .text {
    color: white;
    font-weight: 500;
}

/* Enrichment progress styling */
.enrichment-progress {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
}

/* Enrichment status styling */
.enrichment-status.progress {
    color: #007bff;
}

.enrichment-status.completed {
    color: #28a745;
    background: #d4edda;
    border-color: #c3e6cb;
}

.enrichment-status.error {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* City progress styling */
.city-progress-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.city-progress-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.city-progress-item.completed {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.city-progress-item.processing {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffdf5 0%, #ffffff 100%);
}

.city-progress-item.pending {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.city-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.city-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.city-activity-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.city-change {
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.city-change.change-positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.city-change.change-negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.city-status {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8f9fa;
    color: #6c757d;
}

.city-status.completed {
    background: #d4edda;
    color: #155724;
}

.city-status.processing {
    background: #fff3cd;
    color: #856404;
}

.city-status.pending {
    background: #e2e3e5;
    color: #383d41;
}
