.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s;
  height: auto;
}

.glass-enabled .navbar {
  backdrop-filter: blur(15px);
  background: rgba(37, 37, 38, 0.7);
  border-bottom-color: rgba(0, 212, 255, 0.2);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #007acc, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}

.navbar-logo:hover {
  background: linear-gradient(135deg, #00d4ff, #007acc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #007acc;
}

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

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-btn {
  padding: 8px 14px;
  background: none;
  border: 1px solid transparent;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(0, 122, 204, 0.1);
  border-color: #007acc;
  color: #00d4ff;
}

.logout-btn {
  background-color: #d4534f;
  color: white;
  border-color: #d4534f;
}

.logout-btn:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  color: var(--color-text);
}

.theme-toggle:hover {
  background: rgba(0, 122, 204, 0.1);
  border-color: #007acc;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 13px;
  color: var(--color-text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007acc;
}

.menu-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text);
  transition: all 0.2s;
}

.menu-btn:hover {
  background: rgba(0, 122, 204, 0.1);
  border-color: #007acc;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  margin-top: 8px;
  z-index: 1000;
  overflow: hidden;
}

.glass-enabled .menu-dropdown {
  backdrop-filter: blur(15px);
  background: rgba(37, 37, 38, 0.9);
  border-color: rgba(0, 212, 255, 0.2);
}

.menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-weight: 500;
}

.menu-item:hover {
  background: rgba(0, 122, 204, 0.1);
  color: #00d4ff;
}

.menu-item.danger {
  color: #d4534f;
}

.menu-item.danger:hover {
  background: rgba(212, 83, 79, 0.1);
  color: #ff6666;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 12px;
  }

  .navbar-center {
    display: none;
  }

  .user-name {
    display: none;
  }

  .theme-toggle {
    padding: 6px 8px;
    font-size: 14px;
  }
}
:root {
  --editor-bg: #1E1E1E;
  --editor-surface: #2D2D2D;
  --editor-text: #D4D4D4;
  --editor-hint: #808080;
  --accent-primary: #007ACC;
  --divider: #3E3E3E;
}

.home-page {
  flex: 1;
  overflow-y: auto;
  background: var(--editor-bg);
  color: var(--editor-text);
  display: flex;
  flex-direction: column;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 20px 16px;
  background: var(--editor-surface);
}

.home-title-section {
  flex: 1;
}

.home-title {
  margin: 0;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--editor-text);
}

.home-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--accent-primary);
}

.new-file-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  color: var(--editor-bg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.new-file-btn:hover {
  background: #0099ff;
}

.new-file-icon {
  font-size: 16px;
}

.search-bar-container {
  display: flex;
  align-items: center;
  margin: 12px 16px 4px;
  padding: 0 14px;
  background: var(--editor-surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
}

.search-icon {
  font-size: 14px;
  padding-right: 8px;
  color: var(--editor-hint);
}

.search-bar {
  width: 100%;
  height: 44px;
  background: none;
  border: none;
  color: var(--editor-text);
  font-size: 13px;
}

.search-bar::placeholder {
  color: var(--editor-hint);
}

.search-bar:focus {
  outline: none;
}

.files-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 6px;
}

.files-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--editor-text);
}

.open-file-btn {
  padding: 6px;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 12px;
  cursor: pointer;
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 56px;
  color: var(--accent-primary);
  opacity: 0.4;
}

.empty-state-title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: bold;
  color: var(--editor-text);
}

.empty-state-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--editor-hint);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
  overflow-y: auto;
  flex: 1;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--editor-surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.file-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.2);
}

.file-card-icon {
  font-size: 24px;
  color: var(--accent-primary);
}

.file-card-details {
  flex: 1;
}

.file-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--editor-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-meta {
  font-size: 12px;
  color: var(--editor-hint);
}

.file-card-date {
  font-size: 11px;
  color: var(--editor-hint);
  text-align: right;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-dialog {
  background: var(--editor-surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 450px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--divider);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--editor-text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--editor-hint);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--editor-text);
}

.modal-content {
  padding: 20px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--editor-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--editor-bg);
  border: 1px solid var(--divider);
  border-radius: 6px;
  color: var(--editor-text);
  font-size: 13px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 122, 204, 0.3);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--editor-bg);
  border-top: 1px solid var(--divider);
  justify-content: flex-end;
}

.btn-cancel,
.btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel {
  background: var(--editor-surface);
  color: var(--editor-text);
  border: 1px solid var(--divider);
}

.btn-cancel:hover {
  background: var(--divider);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: #0099ff;
}

.open-file-dialog .modal-content {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.open-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--editor-bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  color: var(--editor-text);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.open-option:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 122, 204, 0.1);
}

.open-option .option-icon {
  font-size: 32px;
}

.open-option .option-text h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
}

.open-option .option-text p {
  margin: 0;
  font-size: 12px;
  color: var(--editor-hint);
}
.file-manager {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-background, #1e1e1e);
  color: var(--color-text, #d4d4d4);
}

.file-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--color-border, #333);
}

.file-manager-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.file-count {
  background: var(--color-border, #3e3e42);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--color-text-secondary, #999);
}

.file-tree {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.folder-group {
  margin-bottom: 4px;
}

.folder-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text, #d4d4d4);
  padding: 6px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.folder-toggle:hover {
  background-color: var(--color-surface-hover, #2d2d2d);
}

.folder-files {
  padding-left: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 2px 4px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s;
  user-select: none;
  border-left: 3px solid transparent;
}

.file-item:hover {
  background-color: var(--color-surface-hover, #2d2d2d);
}

.file-item.active {
  background-color: var(--color-primary-light, #1e3a5f);
  border-left-color: var(--color-primary, #007acc);
}

.file-icon {
  flex-shrink: 0;
  font-size: 12px;
}

.file-name {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-item:hover .file-actions {
  opacity: 1;
}

.file-action-btn {
  background: none;
  border: none;
  color: var(--color-text, #d4d4d4);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.file-action-btn:hover {
  background-color: var(--color-border, #3e3e42);
}

.file-edit {
  width: 100%;
}

.file-edit input {
  width: 100%;
  background: var(--color-background, #1e1e1e);
  border: 1px solid var(--color-primary, #007acc);
  color: var(--color-text, #d4d4d4);
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}

.file-edit input:focus {
  outline: none;
}

.empty-state {
  padding: 24px 12px;
  text-align: center;
  color: var(--color-text-tertiary, #666);
}

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

.empty-state .hint {
  color: var(--color-text-tertiary, #555);
  font-style: italic;
}

.android-file-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.file-actions {
  padding: 8px;
  border-top: 1px solid var(--color-border, #333);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload-input {
  display: none;
}

.android-style-btn {
  background: var(--color-primary, #007acc);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.android-style-btn:hover {
  background: var(--color-primary-hover, #005a9e);
}

.android-style-btn:active {
  transform: scale(0.98);
}

.open-file-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

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

.open-file-dialog {
  background: var(--color-surface, #252526);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

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

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, #333);
}

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

.close-btn {
  background: none;
  border: none;
  color: var(--color-text, #d4d4d4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.close-btn:hover {
  background: var(--color-border, #333);
}

.dialog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border, #333);
  border-radius: 8px;
  background: var(--color-background, #1e1e1e);
  color: var(--color-text, #d4d4d4);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.dialog-option:hover {
  background: var(--color-surface, #252526);
  border-color: var(--color-primary, #007acc);
  transform: translateX(4px);
}

.option-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

.option-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
}

.option-text p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary, #999);
}
.file-tabs {
  background: #1e1e1e;
  border-bottom: 1px solid #3e3e42;
  overflow-x: auto;
  overflow-y: hidden;
}

.tabs-container {
  display: flex;
  gap: 2px;
  padding: 0 4px;
  min-height: 35px;
}

.file-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #252526;
  border: 1px solid transparent;
  border-radius: 3px 3px 0 0;
  color: #d4d4d4;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  margin: 4px 2px 0 2px;
}

.file-tab:hover {
  background: #2d2d2d;
}

.file-tab.active {
  background: #1e1e1e;
  border-bottom-color: #007acc;
  color: #fff;
}

.tab-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.tab-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab-close:hover {
  background-color: #3e3e42;
  color: #d4d4d4;
}

/* Scrollbar styling for tabs */
.file-tabs::-webkit-scrollbar {
  height: 6px;
}

.file-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.file-tabs::-webkit-scrollbar-thumb {
  background: #3e3e42;
  border-radius: 3px;
}

.file-tabs::-webkit-scrollbar-thumb:hover {
  background: #4a4a4f;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 24px;
  background: #007acc;
  color: white;
  font-size: 11px;
  border-top: 1px solid #005a9e;
}

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

.status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.status-separator {
  opacity: 0.5;
  margin: 0 2px;
}

@media (max-width: 768px) {
  .status-bar {
    font-size: 10px;
    padding: 0 8px;
  }

  .status-item {
    gap: 2px;
  }

  .status-right {
    gap: 6px;
  }
}

.editor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1e1e1e;
  overflow: hidden;
}

.editor-content {
  flex: 1;
  overflow: hidden;
}

.editor-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 16px;
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #252526;
  border-bottom: 1px solid #3e3e42;
  font-size: 13px;
  color: #d4d4d4;
}

.file-name {
  font-weight: 500;
}

.syncing-indicator {
  margin-left: auto;
  color: #007acc;
  font-size: 12px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  background: var(--color-surface, #252526);
  border-bottom: 1px solid var(--color-border, #3e3e42);
  color: var(--color-text, #d4d4d4);
  gap: 16px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--color-text, #d4d4d4);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.toolbar-btn:hover:not(:disabled) {
  background-color: var(--color-border, #3e3e42);
  border-color: var(--color-primary, #555);
}

.toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toolbar-btn:active:not(:disabled) {
  background-color: var(--color-border, #4a4a4f);
  border-color: var(--color-primary, #007acc);
}

.toolbar-btn-danger {
  color: var(--color-error, #d4534f);
}

.toolbar-btn-danger:hover:not(:disabled) {
  background-color: var(--color-border, #3e3e42);
  border-color: var(--color-error, #d4534f);
  color: var(--color-error-hover, #ff6666);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-secondary, #999);
}

.file-stats {
  display: flex;
  gap: 8px;
}

.file-lang {
  background: var(--color-border, #3e3e42);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--color-primary, #007acc);
  font-size: 11px;
  font-weight: 600;
}

.no-file {
  color: var(--color-text-tertiary, #666);
  font-style: italic;
}
.collab-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #1e1e1e;
}

.chat-messages {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.empty-chat {
  margin: auto;
  text-align: center;
  color: #a0a0a0;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 85%;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  flex-shrink: 0;
}

.message-content {
  background: #2d2d2d;
  padding: 12px;
  border-radius: 12px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.message-user {
  font-weight: bold;
  color: #007acc;
}

.message-time {
  font-size: 12px;
  color: #a0a0a0;
  margin-left: 8px;
}

.message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

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

.own-message .message-content {
  background: #007acc;
  color: white;
}

.own-message .message-user {
  color: white;
}

.chat-input-container {
  display: flex;
  padding: 8px;
  background: #2d2d2d;
  border-top: 1px solid #3e3e3e;
}

.chat-input {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid #3e3e3e;
  border-radius: 20px;
  padding: 10px 16px;
  color: #d4d4d4;
  resize: none;
}

.send-btn {
  background: #007acc;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  font-size: 20px;
  flex-shrink: 0;
}
.collaboration-panel {
  padding: 16px;
  background-color: #1e1e1e;
  color: #d4d4d4;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.collab-header {
  text-align: center;
  margin-bottom: 24px;
}

.collab-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: #007acc;
  margin: 0;
}

.error-message {
  background-color: #ff3b30;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.session-actions .action-group {
  background-color: #2d2d2d;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.action-group h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px;
}

.action-group p {
  font-size: 14px;
  color: #a0a0a0;
  margin: 0 0 16px;
}

.btn-primary {
  width: 100%;
}

.divider {
  text-align: center;
  color: #a0a0a0;
  margin: 16px 0;
}

.session-input-group {
  display: flex;
  gap: 8px;
}

.session-input-group input {
  flex: 1;
  background-color: #1e1e1e;
  border: 1px solid #3e3e3e;
}

.collab-active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  margin-bottom: 16px;
  background-color: #2d2d2d;
  border-radius: 8px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
}

.tab-content {
  flex: 1;
  background-color: #2d2d2d;
  padding: 16px;
  border-radius: 12px;
}

.session-info .info-item {
  margin-bottom: 16px;
}

.info-item label {
  font-size: 12px;
  color: #a0a0a0;
  display: block;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 16px;
  margin: 0;
}

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

.code {
  font-family: monospace;
  font-size: 18px;
  background-color: #1e1e1e;
  padding: 8px;
  border-radius: 6px;
}

.creator-badge {
  font-size: 12px;
  font-weight: bold;
  color: #007acc;
  background-color: rgba(0, 122, 204, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.session-users h4 {
  font-size: 18px;
  margin: 0 0 16px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #3e3e3e;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
}

.user-status {
  font-size: 12px;
  color: #a0a0a0;
}

.btn-kick {
  background: none;
  border: none;
  color: #ff3b30;
  font-size: 20px;
}

.settings-group h4 {
  font-size: 18px;
  margin: 0 0 16px;
}

.setting-item {
  margin-bottom: 16px;
}

.danger-zone {
  margin-top: 24px;
  border-top: 1px solid #3e3e3e;
  padding-top: 16px;
}

.danger-zone h5 {
  color: #ff3b30;
  font-size: 16px;
  margin: 0 0 8px;
}

.btn-danger {
  background-color: #ff3b30;
  color: white;
  width: 100%;
}

.collab-actions {
  margin-top: 16px;
}
:root {
  --editor-bg-primary: #1c1c1e;
  --editor-bg-secondary: #252528;
  --editor-border: #3a3a3c;
  --editor-text-primary: #f0f0f0;
  --editor-text-secondary: #a0a0a0;
  --accent-color: #0a84ff;
  --tab-inactive: #8e8e93;
}

.editor-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--editor-bg-primary);
}

.editor-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background-color: var(--editor-bg-secondary);
  border-right: 1px solid var(--editor-border);
  transition: width 0.2s ease-in-out;
}

.left-sidebar {
  width: 260px;
}

.right-sidebar {
  width: 320px;
  border-right: none;
  border-left: 1px solid var(--editor-border);
}

.sidebar-tabs {
  display: flex;
  padding: 4px;
  background-color: #343437;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--tab-inactive);
  cursor: pointer;
  font-size: 20px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--editor-text-primary);
}

.tab-btn.active {
  color: var(--accent-color);
  background-color: rgba(10, 132, 255, 0.1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--editor-border);
  background-color: #343437;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--tab-inactive);
  cursor: pointer;
  font-size: 20px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-close:hover {
  color: var(--editor-text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
}

.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--editor-bg-primary);
  overflow: hidden;
}

.file-actions {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--editor-border);
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0060df;
}

.btn-secondary {
  background-color: #3a3a3c;
  color: var(--editor-text-primary);
}

.btn-secondary:hover {
  background-color: #4a4a4f;
}

/* Responsive design */
@media (max-width: 1024px) {
  .right-sidebar {
    width: 280px;
  }

  .left-sidebar {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .editor-container {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar {
    width: 100%;
    height: auto;
    border: none;
    border-bottom: 1px solid var(--editor-border);
  }

  .right-sidebar {
    display: none; /* Can be toggled */
  }
}
.beeta-ai-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-background, #1e1e1e);
  color: var(--color-text, #d4d4d4);
}

.beeta-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border, #333);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.beeta-ai-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.beeta-ai-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
  flex: 1;
}

.beeta-ai-modes {
  display: flex;
  gap: 8px;
}

.beeta-ai-modes button {
  padding: 6px 12px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.beeta-ai-modes button.active {
  background: white;
  color: #667eea;
}

.beeta-ai-modes button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.clear-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.beeta-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 80%;
  animation: slideIn 0.3s ease-out;
}

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

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

.message.assistant {
  align-self: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-content {
  background: var(--color-surface, #2d2d2d);
  padding: 12px 16px;
  border-radius: 16px;
  word-wrap: break-word;
}

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

.message-content p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text, #d4d4d4);
  animation: typing 1.4s infinite;
}

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

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

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

.beeta-ai-input {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--color-border, #333);
  background: var(--color-surface, #2d2d2d);
}

.upload-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary, #007acc);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn:hover {
  background: var(--color-primary-hover, #005a9e);
}

.beeta-ai-input input[type="text"] {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--color-border, #333);
  border-radius: 8px;
  background: var(--color-background, #1e1e1e);
  color: var(--color-text, #d4d4d4);
  font-size: 14px;
  outline: none;
}

.beeta-ai-input input[type="text"]:focus {
  border-color: var(--color-primary, #007acc);
}

.beeta-ai-input button:last-child {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.beeta-ai-input button:last-child:hover:not(:disabled) {
  transform: scale(1.05);
}

.beeta-ai-input button:last-child:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background, #1e1e1e);
}
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1e1e 0%, #252526 100%);
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 420px;
  padding: 40px;
  background: #252526;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #d4d4d4;
}

.login-header {
  text-align: center;
}

.login-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  color: #007acc;
  font-weight: 700;
}

.login-header p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

.login-content {
  width: 100%;
}

.login-content h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.login-content > p:first-of-type {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #999;
}

.error-message {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #d4534f;
  color: white;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

.btn-google {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #3e3e42;
  background: #3e3e42;
  color: #d4d4d4;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover:not(:disabled) {
  background: #4a4a4f;
}

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

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #666;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3e3e42;
}

.divider span {
  padding: 0 12px;
}

.info-text {
  margin: 0;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.login-footer {
  width: 100%;
  border-top: 1px solid #3e3e42;
  padding-top: 24px;
  text-align: center;
}

.login-footer p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.login-footer a {
  color: #007acc;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

:root {
  --color-background: #1e1e1e;
  --color-surface: #252526;
  --color-text: #d4d4d4;
  --color-primary: #007acc;
  --color-border: #333;
  --color-error: #d4534f;
  --color-error-hover: #ff6666;
  --color-text-secondary: #999;
  --color-text-tertiary: #666;
  --glass-blur: 10px;
  --glass-enabled: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Glass Theme Backgrounds */
.theme-glass {
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

.theme-glass-dark {
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
}

/* Glassmorphic styling for glass themes */
.glass-enabled {
  --glass-blur: 15px;
  --glass-enabled: 1;
}

.glass-enabled .navbar,
.glass-enabled .sidebar,
.glass-enabled .editor-panel,
.glass-enabled .editor-container,
.glass-enabled .toolbar,
.glass-enabled .settings-panel,
.glass-enabled .chat-panel,
.glass-enabled .file-explorer {
  backdrop-filter: blur(var(--glass-blur));
  background: rgba(37, 37, 38, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-enabled .settings-section {
  background: rgba(37, 37, 38, 0.6) !important;
  border-left-color: rgba(0, 212, 255, 0.6);
}

.app-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #1e1e1e;
  color: #d4d4d4;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top-color: #007acc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Android-style UI enhancements */
.android-style-container {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.android-style-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.android-style-btn:hover {
  background: #357ae8;
}

.navbar-title {
  font-size: 24px;
  font-weight: 600;
}

.nav-btn {
  margin: 0 12px;
  padding: 10px 18px;
  background: #e0e0e0;
  border-radius: 6px;
}

.nav-btn:hover {
  background: #d0d0d0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chat-message.own {
  background: #e3f2fd;
  border-left: 4px solid #4285f4;
}

.chat-message.ai {
  background: #f8f9fa;
  border-left: 4px solid #6c757d;
}

.message-bubble.android-style {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  max-width: 60%;
}

.file-item.active {
  background: #e0f7fa;
  border-left: 4px solid #4caf50;
}

.folder-toggle {
  background: #e0e0e0;
  padding: 8px 12px;
  border-radius: 6px;
}

.folder-toggle:hover {
  background: #d0d0d0;
}

.file-action-btn {
  margin-left: 8px;
  font-size: 16px;
}

.file-upload-input {
  display: none;
}

.file-upload-input:focus {
  outline: 2px solid #4285f4;
}


/* Glass Mode Theme - Applied to body */
body.glass-mode {
  background: linear-gradient(135deg, #0a0e14 0%, #1a1f26 50%, #0a0e14 100%) !important;
  background-attachment: fixed !important;
}

.glass-mode {
  --glass-bg: rgba(13, 17, 23, 0.7);
  --glass-surface: rgba(13, 17, 23, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-mode .app {
  background: transparent !important;
}

.glass-mode .editor-container,
.glass-mode .toolbar,
.glass-mode .file-manager,
.glass-mode .sidebar,
.glass-mode .navbar {
  background: var(--glass-surface) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.glass-mode .monaco-editor,
.glass-mode .monaco-editor-background {
  background: rgba(10, 14, 20, 0.6) !important;
}

.glass-mode .file-card,
.glass-mode .chat-message,
.glass-mode .collab-dialog,
.glass-mode .settings-container {
  background: var(--glass-surface) !important;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-mode button,
.glass-mode input,
.glass-mode textarea,
.glass-mode select {
  background: rgba(10, 14, 20, 0.5) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.glass-mode button:hover {
  background: rgba(137, 180, 250, 0.2) !important;
  border-color: var(--accent-primary);
}

.glass-mode h1,
.glass-mode h2,
.glass-mode h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.glass-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.glass-mode ::-webkit-scrollbar-track {
  background: rgba(10, 14, 20, 0.3);
  border-radius: 5px;
}

.glass-mode ::-webkit-scrollbar-thumb {
  background: rgba(137, 180, 250, 0.3);
  border-radius: 5px;
}

.glass-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(137, 180, 250, 0.5);
}

.glass-mode .file-card,
.glass-mode .chat-message {
  animation: glassSlideIn 0.4s ease-out;
}

@keyframes glassSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(12px);
  }
}

.glass-mode .file-card:hover,
.glass-mode .transform-btn:hover {
  background: rgba(137, 180, 250, 0.1) !important;
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(137, 180, 250, 0.2);
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
}

body {
  margin: 0;
  display: flex;
  min-width: 320px;
  min-height: 100vh;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Firefox scrollbar */
* {
  scrollbar-color: #555 transparent;
  scrollbar-width: thin;
}

/* Selection color */
::selection {
  background: #007acc;
  color: #fff;
}

