/* Compross Cloud Storage & Auth Modal Styles */
.cc-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.cc-btn-login {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.cc-btn-login:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.cc-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cc-user-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.cc-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #334155;
}
.cc-btn-cloud {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.cc-btn-cloud:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.4);
}
.cc-btn-cloud:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
#cc-editor-bar {
  max-width: calc(100vw - 24px);
}
@media (max-width: 800px) {
  #cc-editor-bar {
    top: auto !important;
    bottom: 12px;
    right: 12px;
  }
}

/* Modal Overlay */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cc-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: #f1f5f9;
  overflow: hidden;
  animation: ccModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ccModalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cc-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-modal-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  margin: 0;
}
.cc-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
}
.cc-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cc-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Quota Bar */
.cc-quota-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.cc-quota-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #cbd5e1;
}
.cc-quota-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.cc-quota-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #10b981, #059669);
}
.cc-quota-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.cc-quota-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.cc-quota-alert {
  margin-top: 10px;
  font-size: 12px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Files List */
.cc-files-empty {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 14px;
}
.cc-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.cc-file-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.cc-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.cc-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.cc-file-icon.word { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.cc-file-icon.spreadsheet { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cc-file-icon.presentation { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.cc-file-meta {
  overflow: hidden;
}
.cc-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-file-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.cc-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cc-btn-action {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.cc-btn-open {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
.cc-btn-open:hover {
  background: rgba(59, 130, 246, 0.25);
}
.cc-btn-delete {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.cc-btn-delete:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Auth Modal specifics */
.cc-oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cc-btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-btn-vk {
  background: #0077ff;
  color: #fff;
}
.cc-btn-vk:hover {
  background: #0066dc;
  box-shadow: 0 4px 16px rgba(0, 119, 255, 0.4);
}
.cc-btn-yandex {
  background: #fc3f1d;
  color: #fff;
}
.cc-btn-yandex:hover {
  background: #e03212;
  box-shadow: 0 4px 16px rgba(252, 63, 29, 0.4);
}

/* Toast */
.cc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.cc-toast.success { border-color: #10b981; }
.cc-toast.error { border-color: #ef4444; }
