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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  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;
  background: white;
  min-height: 100vh;
  color: #111827;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: white;
}

.main-content {
  flex: 1 1;
  background: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  min-height: calc(100vh - 112px);
  color: #e0e0e0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

p {
  font-size: 1.125rem;
  color: #b0b0b0;
}

/* Dashboard Layout */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 2rem;
  min-height: 600px;
}

.dashboard-cell {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 40, 0.9) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.dashboard-cell h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Form Styles */
.brand-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  background: rgba(20, 20, 40, 0.6);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #e0e0e0;
  transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 0 20px rgba(102, 126, 234, 0.1);
  background: rgba(20, 20, 40, 0.8);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

.submit-button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Visibility Display */
.visibility-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.visibility-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.visibility-percentage {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.visibility-brand-name {
  font-size: 1.25rem;
  color: #b0b0b0;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Placement Links */
.placement-links {
  min-height: 200px;
}

.placement-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0;
}

.placement-item {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.placement-link {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.placement-link:hover {
  color: #764ba2;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.placement-link:visited {
  color: #9b7dd4;
}

/* Competitors Table */
.competitors-table {
  min-height: 200px;
  overflow-x: auto;
}

.competitors-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.competitors-list thead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.competitors-list th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.competitors-list td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  color: #d0d0d0;
}

.competitors-list tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

.competitors-list tbody tr.our-brand {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 3px solid #667eea;
}

.competitors-list tbody tr.our-brand:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.rank-cell {
  width: 60px;
  text-align: center;
}

.rank-number {
  font-weight: 600;
  color: #b0b0b0;
}

.medal {
  font-size: 1.5rem;
  display: inline-block;
  line-height: 1;
}

.medal-1 {
  /* Золотая медаль */
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

.medal-2 {
  /* Серебряная медаль */
  filter: drop-shadow(0 2px 4px rgba(192, 192, 192, 0.5));
}

.medal-3 {
  /* Бронзовая медаль */
  filter: drop-shadow(0 2px 4px rgba(205, 127, 50, 0.5));
}

.brand-cell {
  font-weight: normal;
}

.competitors-list tr.our-brand .brand-cell {
  font-weight: bold;
}

.competitors-list tr.our-brand .brand-cell strong {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.05rem;
}

.percentage-cell {
  text-align: right;
  font-weight: 500;
  color: #b0b0b0;
  width: 100px;
}

/* Loading and Placeholder */
.loading {
  color: #b0b0b0;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.placeholder {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Notifications */
.error-notification {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.success-notification {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(46, 213, 115, 0.2);
  border: 1px solid rgba(46, 213, 115, 0.5);
  border-radius: 8px;
  color: #51cf66;
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}




