/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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: #1a1a1a;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #F76300 0%, #A23FFF 50%, #3F92FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.dashboard-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #F76300 0%, #A23FFF 50%, #3F92FF 100%);
  opacity: 0.6;
}

.dashboard-cell h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
  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: #d0d0d0;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #e0e0e0;
  transition: all 0.3s;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3F92FF;
  box-shadow: 0 0 0 3px rgba(63, 146, 255, 0.2);
  background: #1f1f1f;
}

.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, #F76300 0%, #A23FFF 50%, #3F92FF 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
}

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

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

.visibility-percentage {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #F76300 0%, #A23FFF 50%, #3F92FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.visibility-image {
  width: 300px;
  height: auto;
  margin-top: 100px;
  opacity: 1;
  filter: brightness(1.3) contrast(1.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: #3F92FF;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.placement-link:hover {
  color: #A23FFF;
  text-decoration: underline;
}

.placement-link:visited {
  color: #A23FFF;
}

/* 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, #2a2a2a 0%, #1f1f1f 100%);
  border-bottom: 2px solid #444;
}

.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 #333;
  color: #d0d0d0;
}

.competitors-list tbody tr:hover {
  background: rgba(63, 146, 255, 0.1);
}

.competitors-list tbody tr.our-brand {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #3F92FF;
}

.competitors-list tbody tr.our-brand:hover {
  background: rgba(255, 255, 255, 0.15);
}

.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 {
  /* Золотая медаль */
}

.medal-2 {
  /* Серебряная медаль */
}

.medal-3 {
  /* Бронзовая медаль */
}

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

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

.competitors-list tr.our-brand .brand-cell strong {
  color: #ffffff;
  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: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Notifications */
.error-notification {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(247, 99, 0, 0.15);
  border: 1px solid rgba(247, 99, 0, 0.4);
  border-radius: 6px;
  color: #ff9966;
  font-size: 0.9rem;
}

.success-notification {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(63, 146, 255, 0.15);
  border: 1px solid rgba(63, 146, 255, 0.4);
  border-radius: 6px;
  color: #66b3ff;
  font-size: 0.9rem;
}

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

  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}




