/* Filter button styles */
.filter-button-container {
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin: 0 auto;
}

.filter-btn-exact {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    padding: 14px 24px;
    border-radius: 40px;
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin: 8px auto;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn-exact:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.filter-btn-exact:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn-exact .filter-icon {
    margin-right: 14px;
}

/* Bottom sheet styles */
.filter-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.filter-sheet {
    background-color: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.filter-sheet-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.drag-handle {
    width: 48px;
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.filter-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding-top: 12px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #777;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.filter-sheet-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filter-actions button {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-reset {
    background-color: #f1f3f5;
    color: #333;
}

.btn-apply {
    background-color: #cf403d;
    color: white;
}

.price-range-container {
    margin-bottom: 24px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.price-range-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.price-inputs {
    display: flex;
    gap: 12px;
}

.price-inputs .form-group {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.category-scroll-wrapper {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    min-width: 100%;
    padding: 0 10px;
}

.category-item {
    display: inline-block;
    margin-right: 16px;
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 80px;
}

.category-image-container, .category-image-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    max-width: 45px!important;
    object-fit: cover;
}

.category-name {
    display: block;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Mobile-first styles for Property Inquiry Details */

/* Main layout */
.inquiry-details-page {
    padding-bottom: 70px;
}

.page-title {
    position: relative;
    padding: 16px 16px 8px;
    display: flex;
    align-items: center;
}

.back-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    margin-right: 12px;
}

.main-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Tabs */
.tabs-container {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.tab-buttons {
    display: flex;
    padding: 0 16px;
    margin-bottom: 8px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #007bff;
    font-weight: 600;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    border-radius: 3px 3px 0 0;
}

.count-badge {
    display: inline-block;
    margin-left: 4px;
    background: #f0f0f0;
    color: #666;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}

.tab-content {
    padding: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

/* Property Section */
.property-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.property-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.property-location img {
    width: 14px;
    height: 14px;
}

.property-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.property-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.area-label {
    font-size: 14px;
    color: #666;
}

.area-value {
    font-size: 14px;
    font-weight: 500;
}

.view-property-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.view-property-btn:hover {
    background: #e5e5e5;
}

.property-not-found {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Inquiry Info Section */
.inquiry-info-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 16px;
    height: 16px;
}

.info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.message-text {
    line-height: 1.4;
}

/* Viewings Section */
.viewings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

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

.viewing-count {
    font-size: 13px;
    color: #666;
}

.empty-viewings, .empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.empty-messages p {
    margin: 4px 0;
    color: #666;
}

.empty-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.viewing-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid #eee;
}

.viewing-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.viewing-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.viewing-id {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 8px;
}

/* Messages Section */
.messages-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.message-count {
    font-size: 13px;
    color: #666;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-divider {
    text-align: center;
    margin: 16px 0 8px;
    font-size: 12px;
    color: #999;
    position: relative;
}

.date-divider:before, .date-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.date-divider:before {
    left: 0;
}

.date-divider:after {
    right: 0;
}

.message-bubble {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
}

.message-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.sender-initial {
    width: 32px;
    height: 32px;
    background: #e3f2fd;
    color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.message-content {
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
}

.message-bubble.user .message-content {
    background: #e3f2fd;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.message-input-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.message-input:focus {
    border-color: #007bff;
}

.send-button {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.send-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Error State */
.error-state {
    padding: 32px 16px;
    text-align: center;
    color: #666;
}

.retry-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 16px;
    font-weight: 500;
}

/* Loading Skeleton */
.loading-skeleton {
    padding: 16px;
}

.skeleton-header {
    margin-bottom: 20px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-status {
    height: 20px;
    width: 25%;
    background: #e0e0e0;
    border-radius: 15px;
    animation: pulse 1.5s infinite;
    margin-top: 8px;
}

.skeleton-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.skeleton-subtitle {
    height: 18px;
    width: 40%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 180px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 80%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin-top: 8px;
}

.skeleton-icon {
    height: 16px;
    width: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-text-wide {
    height: 16px;
    width: 70%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-item-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

/* Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
/* Mobile-first styles for Property Inquiry Details */

/* Main layout */
.inquiry-details-page {
    padding-bottom: 70px;
}

.page-title {
    position: relative;
    padding: 16px 16px 8px;
    display: flex;
    align-items: center;
}

.back-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    margin-right: 12px;
}

.main-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Tabs */
.tabs-container {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.tab-buttons {
    display: flex;
    padding: 0 16px;
    margin-bottom: 8px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #007bff;
    font-weight: 600;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    border-radius: 3px 3px 0 0;
}

.count-badge {
    display: inline-block;
    margin-left: 4px;
    background: #f0f0f0;
    color: #666;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}

.tab-content {
    padding: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

/* Property Section */
.property-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.property-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.property-location img {
    width: 14px;
    height: 14px;
}

.property-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.property-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.area-label {
    font-size: 14px;
    color: #666;
}

.area-value {
    font-size: 14px;
    font-weight: 500;
}

.view-property-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.view-property-btn:hover {
    background: #e5e5e5;
}

.property-not-found {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Inquiry Info Section */
.inquiry-info-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 16px;
    height: 16px;
}

.info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.message-text {
    line-height: 1.4;
}

/* Viewings Section */
.viewings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

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

.viewing-count {
    font-size: 13px;
    color: #666;
}

.empty-viewings, .empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.empty-messages p {
    margin: 4px 0;
    color: #666;
}

.empty-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.viewing-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid #eee;
}

.viewing-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.viewing-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.viewing-id {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 8px;
}

/* Messages Section */
.messages-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.message-count {
    font-size: 13px;
    color: #666;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-divider {
    text-align: center;
    margin: 16px 0 8px;
    font-size: 12px;
    color: #999;
    position: relative;
}

.date-divider:before, .date-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.date-divider:before {
    left: 0;
}

.date-divider:after {
    right: 0;
}

/* Messages Section - Updated based on design */
.messages-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

.message-count {
    font-size: 13px;
    color: #666;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 0 4px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.date-divider {
    text-align: center;
    margin: 16px 0;
    font-size: 13px;
    color: #666;
    position: relative;
    padding: 0 16px;
}

.date-divider:before, .date-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.date-divider:before {
    left: 0;
}

.date-divider:after {
    right: 0;
}

/* New Message Item Layout */
.message-item {
    display: flex;
    margin-bottom: 16px;
    width: 100%;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6eef8;
    color: #4080ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-container {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 50px);
}

.message-content {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    display: inline-block;
    max-width: fit-content;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    margin-left: 4px;
}

.message-input-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    margin-top: auto;
    background: white;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.message-input:focus {
    border-color: #4080ff;
}

.send-button {
    width: 40px;
    height: 40px;
    background: #4080ff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.message-input-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.message-input:focus {
    border-color: #007bff;
}

.send-button {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.send-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.sending-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

/* Loading skeleton styles for messages */
.loading-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 0;
}

.skeleton-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    animation: pulse 1.5s infinite;
}

.skeleton-content {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px;
    width: 70%;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 50%;
    margin-bottom: 0;
}

/* Error State */
.error-state {
    padding: 32px 16px;
    text-align: center;
    color: #666;
}

.retry-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 16px;
    font-weight: 500;
}

/* Loading Skeleton */
.loading-skeleton {
    padding: 16px;
}

.skeleton-header {
    margin-bottom: 20px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-status {
    height: 20px;
    width: 25%;
    background: #e0e0e0;
    border-radius: 15px;
    animation: pulse 1.5s infinite;
    margin-top: 8px;
}

.skeleton-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.skeleton-subtitle {
    height: 18px;
    width: 40%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 180px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 80%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    margin-top: 8px;
}

.skeleton-icon {
    height: 16px;
    width: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-text-wide {
    height: 16px;
    width: 70%;
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-item-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

/* Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}