@import url("./collaboration.css?v=78-review-v13");

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      display: flex;
      height: 100vh;
    }

    #authView {
      width: 100%;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #111;
      color: white;
    }

    #authBox {
      width: 360px;
      background: #222;
      padding: 22px;
      border-radius: 10px;
      box-sizing: border-box;
    }

    #authBox h2 {
      margin-top: 0;
    }

    #planView {
      width: 100%;
      min-height: 100vh;
      height: auto;
      display: none;
      justify-content: center;
      align-items: flex-start;
      background: radial-gradient(circle at top, #1e3a8a 0%, #0f172a 42%, #050505 100%);
      color: white;
      overflow-y: auto;
      padding: 40px 24px;
      box-sizing: border-box;
    }

    #planBox {
      width: 1100px;
      max-width: 96%;
      background: rgba(15, 23, 42, 0.92);
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 18px;
      padding: 26px;
      box-sizing: border-box;
      box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    }

    #planBox h2 {
      margin-top: 0;
      margin-bottom: 8px;
      font-size: 30px;
    }

    .plan-subtitle {
      color: #cbd5e1;
      margin-bottom: 18px;
      line-height: 1.5;
    }

    .plan-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 18px !important;
      margin-top: 20px;
      align-items: stretch;
    }

    .plan-grid > .plan-card {
      width: 100% !important;
      max-width: none !important;
      grid-column: auto !important;
    }

    .plan-card button {
      margin-top: auto;
    }

    @media (max-width: 850px) {
      .plan-grid {
        grid-template-columns: 1fr !important;
      }
    }



    .plan-card {
      background: rgba(2, 6, 23, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 16px;
      padding: 20px;
      box-sizing: border-box;
      min-height: 260px;
      display: flex;
      flex-direction: column;
    }

    .plan-card.featured {
      border-color: #2f6fed;
      box-shadow: 0 0 0 1px rgba(47, 111, 237, 0.35), 0 20px 50px rgba(37, 99, 235, 0.16);
    }

    .plan-card h3 {
      margin-top: 0;
      margin-bottom: 6px;
      font-size: 24px;
    }

    .plan-price {
      font-size: 26px;
      font-weight: bold;
      margin: 12px 0;
    }

    .plan-note {
      color: #93c5fd;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .plan-feature {
      color: #dbeafe;
      font-size: 14px;
      margin-bottom: 8px;
    }

    .money-note {
      margin-top: 18px;
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.5;
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(148, 163, 184, 0.22);
      padding: 12px;
      border-radius: 10px;
    }

    input[type="email"],
    input[type="password"] {
      width: 100%;
      margin-bottom: 10px;
      padding: 10px;
      font-size: 14px;
      box-sizing: border-box;
    }

    #appView {
      display: none;
      width: 100%;
      height: 100vh;
    }

    #left {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #111;
      overflow: hidden;
    }

    #right {
      width: 360px;
      background: #222;
      color: white;
      padding: 12px;
      box-sizing: border-box;
      overflow-y: auto;
    }

    canvas {
      background: black;
      border: 1px solid #555;
      cursor: crosshair;
    }

    button, select, textarea, input[type="file"] {
      width: 100%;
      margin-bottom: 8px;
      padding: 8px;
      font-size: 14px;
      box-sizing: border-box;
    }

    button {
      cursor: pointer;
      transition: background 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
    }

    button:active {
      transform: scale(0.98);
      background: #666;
    }

    button.working {
      background: #2f6fed !important;
      color: white;
      opacity: 0.9;
      cursor: wait;
    }

    button:disabled {
      opacity: 0.65;
      cursor: wait;
    }

    textarea {
      min-height: 140px;
      resize: vertical;
      font-family: Consolas, monospace;
    }

    .small {
      font-size: 13px;
      margin-bottom: 8px;
      word-wrap: break-word;
    }

    .section-title {
      margin-top: 12px;
      margin-bottom: 6px;
      font-weight: bold;
    }

    .selected-box {
      color: #ffd966;
      font-weight: bold;
    }

    .danger-btn {
      background: #8b1e1e;
      color: white;
      border: none;
    }

    .danger-btn:hover {
      background: #a82525;
    }

    .secondary-btn {
      background: #444;
      color: white;
      border: none;
    }

    .primary-btn {
      background: #2563eb;
      color: white;
      border: none;
    }

    .primary-btn:hover {
      background: #1d4ed8;
    }

    .auth-toggle {
      color: #ffd966;
      cursor: pointer;
      text-decoration: underline;
    }

    #loadingOverlay {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.72);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      color: white;
    }

    #loadingBox {
      width: 360px;
      background: #222;
      border: 1px solid #555;
      border-radius: 10px;
      padding: 20px;
      box-sizing: border-box;
      text-align: center;
    }

    #loadingText {
      margin-bottom: 14px;
      font-size: 15px;
      font-weight: bold;
    }

    .progress-track {
      width: 100%;
      height: 10px;
      background: #444;
      border-radius: 999px;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      width: 35%;
      background: #2f6fed;
      border-radius: 999px;
      animation: loadingMove 1.1s infinite linear;
    }

    @keyframes loadingMove {
      0% { transform: translateX(-120%); }
      100% { transform: translateX(320%); }
    }
 
#left {
  display: flex;
  justify-content: center;
  align-items: center;
}

#canvasWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#imageNavigationBar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  margin-top: 10px;
  margin-bottom: 10px;
}

.image-nav-btn {
  min-width: 110px;

  border: none;
  border-radius: 8px;

  padding: 9px 14px;

  background: #333;
  color: white;

  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;

  text-align: center;
  white-space: nowrap;

  transition: 0.2s;
}

.image-nav-btn:hover {
  background: #555;
}

#canvas {
  cursor: crosshair;
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 230px);
  width: auto;
  height: auto;
}


#canvasContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#minimapPanel {
  display: flex;
  justify-content: center;

  margin-top: 10px;
}

#minimapCanvas {
  width: 220px;
  height: 140px;

  border: 2px solid #666;
  background: rgba(20,20,20,0.85);
}

#minimapCanvas {
  cursor: pointer;
}

.tool-section {
  margin-bottom: 14px;

  padding: 10px;

  background: #2b2b2b;

  border: 1px solid #444;

  border-radius: 8px;
}

.tool-section-title {
  font-weight: bold;

  font-size: 15px;

  margin-bottom: 8px;

  color: #ffd966;
}

.plan-home-link {
  display: inline-block;

  margin-bottom: 18px;

  padding: 10px 16px;

  border-radius: 10px;

  text-decoration: none;

  color: white;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );

  font-weight: bold;

  transition: 0.2s;
}

.plan-home-link:hover {
  transform: translateY(-1px);

  box-shadow:
    0 8px 18px rgba(37,99,235,0.35);
}

.plan-home-link:hover {
  background: #555;
}

.tool-nav-link,
.tool-nav-plan-btn {
  display: block;

  width: 100%;

  margin-bottom: 8px;

  padding: 10px 12px;

  border-radius: 9px;

  box-sizing: border-box;

  text-align: center;

  text-decoration: none;

  font-size: 14px;
  font-weight: bold;
}

.tool-nav-link.main-link {
  color: white;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );
}

.tool-nav-link.main-link:hover {
  box-shadow:
    0 8px 18px rgba(37,99,235,0.35);
}

.tool-nav-plan-btn {
  border: none;

  color: white;

  background: linear-gradient(
    135deg,
    #059669,
    #0ea5e9
  );

  cursor: pointer;
}

.tool-nav-plan-btn:hover {
  box-shadow:
    0 8px 18px rgba(14,165,233,0.25);
}


#backToProjectsBtn {
  background: linear-gradient(
    135deg,
    #475569,
    #2563eb
  );

  color: white;
  border: none;
}

#backToProjectsBtn:hover {
  box-shadow:
    0 8px 18px rgba(37,99,235,0.25);
}


.project-home-link,
.project-plans-btn {
  display: block;

  width: 100%;

  margin-bottom: 8px;

  padding: 10px 12px;

  border-radius: 9px;

  box-sizing: border-box;

  text-align: center;

  text-decoration: none;

  font-size: 14px;
  font-weight: bold;
}

.project-home-link {
  color: white;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );
}

.project-plans-btn {
  border: none;

  color: white;

  background: linear-gradient(
    135deg,
    #059669,
    #0ea5e9
  );

  cursor: pointer;
}

#canvasImageName {
  margin-top: 8px;

  color: #e5e7eb;

  font-size: 14px;
  font-weight: bold;

  text-align: center;
}


.workspace-cards {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.workspace-card {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.workspace-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.workspace-card.active-workspace {
  border: 2px solid #4aa3ff;
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.18);
}

.workspace-card button {
  margin-top: 10px;
}


.workspace-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.workspace-card {
  background: #181818;
  border: 1px solid #3b3b3b;
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
}

.workspace-card.active-workspace {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2);
}

.workspace-card h3 {
  margin: 0 0 12px 0;
}

.workspace-card input,
.workspace-card select {
  width: 100%;
  height: 38px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #444;
  box-sizing: border-box;
}

.project-card-btn {
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  padding: 8px 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.project-card-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.project-card-btn.create {
  width: 100%;
  background: #10a37f;
  margin-bottom: 8px;
}

.project-card-btn.open {
  background: #2f80ed;
}

.project-card-btn.rename {
  background: #6b7280;
}

.project-card-btn.delete {
  background: #b42318;
}

.project-card-btn.transfer {
  background: #7c3aed;
}

.project-card-btn.transfer-danger {
  background: #f97316;
}

.project-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.transfer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.project-action-row .project-card-btn,
.transfer-row .project-card-btn {
  width: 100%;
}

.project-home-link,
.project-plans-btn,
#projectsLogoutBtn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  box-sizing: border-box;
}

.workspace-card.inactive-workspace {
  opacity: 0.72;
  cursor: pointer;
}

.workspace-card.inactive-workspace input,
.workspace-card.inactive-workspace select,
.workspace-card.inactive-workspace button {
  opacity: 0.45;
}

.workspace-card.inactive-workspace {
  cursor: pointer;
}

.workspace-card.active-workspace input,
.workspace-card.active-workspace select,
.workspace-card.active-workspace button {
  opacity: 1;
}

.workspace-card.workspace-unavailable {
  opacity: 0.5;
}

#storageWarning {
  margin-top: 4px;
  min-height: 16px;
  color: #fbbf24;
  font-weight: 600;
  display: none;
}

.team-billing-box {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 10px;
}

.team-billing-box .small {
  margin-bottom: 6px;
}

#addTeamSeatsBtn {
  margin-top: 8px;
}


.team-settings-panel {
  width: 900px;
  max-width: 94%;
  background: #222;
  padding: 22px;
  border-radius: 12px;
  box-sizing: border-box;
}

.team-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.team-settings-card {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
}

#teamInviteEmail {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  box-sizing: border-box;
}

#teamScheduledSeatInfo {
  margin-top: 6px;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.3;
  max-height: 60px;
  overflow-y: auto;
  word-break: break-word;
}

@media (max-width: 760px) {
  .team-settings-grid {
    grid-template-columns: 1fr;
  }
}


.video-import-panel {
  margin-top: 18px;
  padding: 14px;
  background: #202020;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  box-sizing: border-box;
}

.video-import-header {
  margin-bottom: 16px;
}

.video-import-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #3a3a3a;
}

.video-import-section-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.video-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.video-import-field {
  min-width: 0;
}

.video-import-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.video-import-help {
  min-height: 32px;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #b8b8b8;
}

.video-import-field input,
.video-import-field select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.video-import-file-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.video-import-summary {
  margin-top: 14px;
  padding: 10px;
  background: #171717;
  border: 1px solid #333333;
  border-radius: 8px;
}

.video-import-summary .small + .small {
  margin-top: 6px;
}

.video-import-submit {
  width: 100%;
  margin-top: 14px;
}

.video-import-status {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.video-import-progress-track {
  width: 100%;
  height: 10px;
  margin-top: 8px;
  background: #333333;
  border-radius: 8px;
  overflow: hidden;
}

.video-import-progress-bar {
  width: 0%;
  height: 100%;
  background: #4ade80;
  transition: width 0.25s ease;
}

@media (max-width: 900px) {
  .video-import-grid {
    grid-template-columns: 1fr;
  }

  .video-import-help {
    min-height: 0;
  }
}
