* {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f5f5f7;
}

/* Apple-style card */
.apple-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Minimal input styling */
.minimal-input {
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.minimal-input:hover {
    background: #e8e8ed;
}

.minimal-input:focus {
    background: white;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Apple-style button */
.apple-button {
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.apple-button:hover {
    background: #0077ed;
    transform: scale(1.01);
}

.apple-button:active {
    transform: scale(0.99);
}

.apple-button:disabled {
    background: #e8e8ed;
    color: #86868b;
    cursor: not-allowed;
    transform: none;
}

input[type="radio"] {
    accent-color: #0071e3;
}

/* Secondary button */
.secondary-button {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.secondary-button:hover {
    background: #e8e8ed;
    border-color: #c0c0c5;
}

/* Chat message styling */
.chat-message {
    animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Typing indicator */
.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86868b;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Table styling */
.data-table {
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: #f5f5f7;
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 1px solid #d2d2d7;
    text-align: left;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f2;
}

.data-table tr:hover td {
    background: #f5f5f7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c0c0c5;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #86868b;
    background-clip: content-box;
}

/* Toast notification */
.toast {
    animation: toastSlide 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Loading state */
.loading-shimmer {
    background: linear-gradient(90deg, #f5f5f7 25%, #e8e8ed 50%, #f5f5f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Icon styling */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* Suggestion pill */
.suggestion-pill {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #1d1d1f;
    transition: all 0.2s ease;
    cursor: pointer;
}

.suggestion-pill:hover {
    background: #e8e8ed;
    border-color: #86868b;
    transform: scale(1.02);
}

/* Better table handling for long content */
.table-fixed {
    table-layout: fixed;
}

.data-table th.truncate,
.data-table td.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td {
    max-width: 300px;
}

/* Tooltip on hover for truncated content */
.data-table td:hover,
.data-table th:hover {
    position: relative;
    z-index: 10;
}

.data-table td:hover::after,
.data-table th:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    white-space: normal;
    max-width: 400px;
    word-wrap: break-word;
    z-index: 1000;
    pointer-events: none;
}

/* Sticky table header in modal */
.sticky {
    position: sticky;
}

/* Better modal scrolling */
.h-\[60vh\] {
    height: 60vh;
}

/* Ensure proper z-index stacking */
.z-10 {
    z-index: 10;
}