/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* Header styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    color: white;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Authentication status styles */
.auth-status {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.user-info,
.guest-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name,
.guest-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.auth-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    color: white;
    font-family: inherit;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.auth-btn.login {
    color: rgba(255, 255, 255, 0.9);
}

.auth-btn.register {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.auth-btn.register:hover {
    background: rgba(255, 255, 255, 0.25);
}

.auth-btn.logout {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-btn.logout:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.toggle-btn:active {
    transform: translateY(0);
}

.toggle-icon {
    font-size: 12px;
}

/* Main content area */
.main-content {
    display: flex;
    height: calc(100vh - 60px);
    margin-top: 60px;
    overflow: hidden;
}

/* Panel base styles */
.panel {
    display: flex;
    flex-direction: column;
    background: white;
    border-right: 1px solid #e0e0e0;
    overflow: hidden;
}

.panel-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

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

/* Left panel */
.left-panel {
    width: 300px;
    min-width: 200px;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.left-panel.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
}

/* Center panel */
.center-panel {
    flex: 1;
    min-width: 400px;
    border-right: 1px solid #e0e0e0;
}

/* Right panel */
.right-panel {
    width: 300px;
    min-width: 200px;
    max-width: 500px;
    overflow: hidden;
    border-right: none;
    position: relative;
}

/* Chat interface styles */
.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background-color: #4CAF50;
    animation: none;
}

.status-indicator.disconnected {
    background-color: #f44336;
    animation: none;
}

.status-indicator.connecting {
    background-color: #ff9800;
}

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

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease-in;
}

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

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.ai-message .message-content {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 6px;
}

.message-content p {
    margin: 0 0 8px 0;
}

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

/* Markdown styling */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: 12px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.message-content h1 { font-size: 1.4em; }
.message-content h2 { font-size: 1.3em; }
.message-content h3 { font-size: 1.2em; }
.message-content h4 { font-size: 1.1em; }
.message-content h5 { font-size: 1.0em; }
.message-content h6 { font-size: 0.9em; }

.message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.user-message .message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.message-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.user-message .message-content pre {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.message-content blockquote {
    border-left: 4px solid #667eea;
    margin: 8px 0;
    padding-left: 12px;
    color: #666;
    font-style: italic;
}

.user-message .message-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.message-content ul,
.message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 4px 0;
    border: none;
    padding: 0;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

.message-content a {
    color: #667eea;
    text-decoration: none;
}

.user-message .message-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.message-content a:hover {
    text-decoration: underline;
}

.chat-input-container {
    border-top: 1px solid #e5e5e5;
    padding: 20px;
    background: white;
    position: relative;
}

.chat-form {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.input-group:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f, 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    max-height: 200px;
    min-height: 24px;
    color: #374151;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.chat-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.send-btn {
    background: #10a37f;
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.send-btn:hover {
    background: #0d8a6f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Loading indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #f1f3f4;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    max-width: 85%;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite ease-in-out;
}

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error message styling */
.error-message {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    max-width: 85%;
    align-self: flex-start;
    font-size: 14px;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    cursor: col-resize;
    z-index: 10;
}

.resize-handle:hover,
.resize-handle.resizing {
    background: #667eea;
}

.left-panel .resize-handle {
    right: -2px;
}

.right-panel .resize-handle {
    left: -2px;
}

/* Hide resize handles when panels are collapsed */
.left-panel.collapsed .resize-handle,
.right-panel.collapsed .resize-handle {
    display: none;
}

.right-panel.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
}

/* Content styling */
.dummy-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.dummy-content h4 {
    color: #495057;
    margin-bottom: 10px;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.info-box h4 {
    color: #1976d2;
    margin-bottom: 8px;
}

/* List styling */
ul {
    list-style: none;
    margin-top: 15px;
}

li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

li:last-child {
    border-bottom: none;
}

/* Scrollbar styling */
.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .left-panel,
    .right-panel {
        width: 250px;
        min-width: 150px;
    }
    
    .center-panel {
        min-width: 300px;
    }
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
    .chat-messages {
        padding: 8px 0;
    }
    
    .message-content {
        max-width: 90%;
        padding: 8px 12px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .input-group {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .chat-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .send-btn {
        width: 32px;
        height: 32px;
    }
    
    .send-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Data Explorer Styles */
.data-explorer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.explorer-header h4 {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.refresh-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.refresh-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-btn span {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.refresh-btn:not(:disabled):hover span {
    transform: rotate(180deg);
}

/* Tree View Styles */
.tree-view {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tree-item {
    display: flex;
    flex-direction: column;
}

.tree-node {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
}

.tree-node:hover {
    background: #f8f9fa;
}

.tree-node.selected {
    background: #e3f2fd;
    border: 1px solid #2196f3;
}

.tree-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.toggle-icon {
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.tree-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 16px;
}

.tree-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tree-label {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.repo-visibility {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repo-visibility.public {
    background: #d4edda;
    color: #155724;
}

.repo-visibility.private {
    background: #f8d7da;
    color: #721c24;
}

.dataset-count {
    font-size: 11px;
    color: #6c757d;
}

.dataset-type {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

/* Repository node specific styles */
.repo-node {
    font-weight: 500;
}

.repo-node.expanded .toggle-icon {
    transform: rotate(90deg);
}

/* Dataset node specific styles */
.dataset-item {
    margin-left: 24px;
}

.dataset-node {
    padding: 6px 12px;
    min-height: 36px;
}

.dataset-node .tree-label {
    font-size: 13px;
    font-weight: 400;
}

/* Tree children container */
.tree-children {
    margin-left: 16px;
    border-left: 1px solid #e9ecef;
    padding-left: 8px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Empty and loading states */
.tree-view.empty,
.tree-view.loading {
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.empty-state,
.loading-state {
    text-align: center;
    color: #6c757d;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.empty-hint {
    font-size: 12px !important;
    margin-top: 4px !important;
    opacity: 0.7;
}

.loading-state p {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-state p::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Table node specific styles */
.table-count {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
}

.table-item {
    margin-left: 24px;
}

.table-node {
    padding: 6px 12px;
    min-height: 32px;
    background: rgba(52, 152, 219, 0.05);
    border-left: 2px solid transparent;
}

.table-node:hover {
    background: rgba(52, 152, 219, 0.1);
}

.table-node.selected {
    background: rgba(52, 152, 219, 0.15);
    border-left-color: #3498db;
}

.table-node .tree-label {
    font-size: 12px;
    font-weight: 400;
    color: #34495e;
}

.table-type {
    font-size: 10px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Data Display Styles */
.table-data-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.table-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
}

.table-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 14px;
    color: #6c757d;
}

.stat-item strong {
    color: #495057;
}

.table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-row {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.table-row:nth-child(even) {
    background-color: #fafbfc;
}

.table-row:nth-child(even):hover {
    background-color: #f1f3f4;
}

.table-cell {
    padding: 12px 16px;
    border-right: 1px solid #e9ecef;
    color: #495057;
    word-break: break-word;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-cell:last-child {
    border-right: none;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 16px;
    color: #6c757d;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 16px;
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 16px;
    margin-bottom: 8px;
}

.retry-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: #0056b3;
}

.retry-btn:active {
    background: #004085;
}

/* Default Content */
.default-content {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.default-content p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .table-cell {
        padding: 8px 12px;
        font-size: 13px;
        max-width: 200px;
    }
    
    .table-header {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Creation Button Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-weight: 600;
}

.create-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.create-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.create-dataset-btn {
    background: #17a2b8;
    border: 1px solid #17a2b8;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    font-weight: 600;
    opacity: 0;
}

.tree-node:hover .create-dataset-btn {
    opacity: 1;
}

.create-dataset-btn:hover {
    background: #138496;
    border-color: #117a8b;
    transform: scale(1.1);
}

.create-dataset-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed;
    transform: none;
}

/* Phantom Item Styles */
.phantom-item .tree-node {
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 6px;
    animation: phantomFade 0.3s ease-in;
}

.phantom-item .tree-node.phantom {
    padding: 6px 12px;
}

.tree-label-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    width: 100%;
    padding: 2px 4px;
    border-radius: 3px;
}

.tree-label-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.tree-label-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

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

/* Animation for spinning icons */
.create-btn span,
.create-dataset-btn span {
    display: inline-block;
    transition: transform 0.6s ease;
}

.create-btn:disabled span,
.create-dataset-btn:disabled span {
    animation: spin 1s linear infinite;
}
