/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Global styles for ReelsFabric */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  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;
}

body {
  color: #333;
  background: #f5f5f5;
}

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

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #0070f3;
  color: white;
}

.btn-primary:hover {
  background: #0051cc;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

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

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
}

.form-select:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

/* Card styles */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-processing {
  background: #cfe2ff;
  color: #084298;
}

.status-ready {
  background: #d1e7dd;
  color: #0f5132;
}

.status-failed {
  background: #f8d7da;
  color: #842029;
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.alert-info {
  background: #cfe2ff;
  color: #084298;
  border: 1px solid #b6d4fe;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0070f3;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

/* Header styles */
.header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  min-height: 80px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-link {
  color: #666;
  font-weight: 500;
  transition: color 0.2s;
}

.header-link:hover {
  color: #0070f3;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.balance-label {
  color: #666;
  font-size: 0.875rem;
}

.balance-value {
  font-weight: 600;
  color: #0070f3;
}

/* ============================================
   Workspace Styles (RFC v2 - URL-stateful)
   ============================================ */

/* Workspace Container */
.reels-workspace-container {
  height: calc(100vh - 100px); /* Минус высота header */
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Workspace Header */
.reels-workspace-header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.reels-workspace-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
  min-width: 0;
}

.reels-workspace-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reels-workspace-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.reels-toggle-button {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.reels-toggle-button:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.reels-toggle-indicator {
  color: #1d4ed8;
  font-size: 20px;
  line-height: 1;
  margin-left: 4px;
}

/* Workspace Content (3 columns) */
.reels-workspace-content {
  flex: 1 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar: Projects */
.reels-projects-sidebar {
  width: 300px;
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  background-color: #f9fafb;
}

/* Center: Chat/Commander */
.reels-chat-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: white;
}

/* Right Sidebar: Pipeline */
.reels-pipeline-sidebar {
  width: 300px;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  background-color: #f9fafb;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .reels-projects-sidebar,
  .reels-pipeline-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
  }
  
  .reels-projects-sidebar {
    left: 0;
  }
  
  .reels-pipeline-sidebar {
    right: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .reels-projects-sidebar:not(.mobile-visible) {
    transform: translateX(-100%);
  }
  
  .reels-pipeline-sidebar:not(.mobile-visible) {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .reels-workspace-container {
    height: calc(100vh - 80px);
  }

  .reels-workspace-header {
    padding: 12px 16px;
  }

  .reels-workspace-title {
    font-size: 16px;
  }

  .reels-toggle-button {
    width: 36px;
    height: 36px;
    padding: 6px;
    font-size: 14px;
  }
}


