/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Zerohold](//zerohold.sd1.su)
 * @project [SD1](sd1.su)
 * @summary SD1 › SVG to CSS URL Converter - стили сервиса
 * @created 2026-09
 * @modified 2026-09
 *
 * @include <link rel="stylesheet" href="https://services.sd1.su/convert-svg-to/css/styles-convert-svg-to.css">
 *
 * @file D:/node/sd1.su/services.sd1.su/convert-svg-to/css/styles-convert-svg-to.css
 * @link https://services.sd1.su/convert-svg-to/css/styles-convert-svg-to.css
 *
 * @remarks
 * - Перенесено из tests.zz2.su/Units/Css/styles.css
 * =============================================================================
 */

/* --- Контейнер --- */

.container
{
  max-width: 1200px;
}

.page-title
{
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: rgb(44, 62, 80);
  border-bottom: 2px solid rgb(238, 238, 238);
  padding-bottom: 10px;
}

/* --- Форма --- */

.form-group
{
  margin-bottom: 20px;
}

.input-label
{
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.input-hint
{
  font-size: 12px;
  color: rgb(119, 119, 119);
  margin-bottom: 5px;
  display: block;
}

.input-textarea
{
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid rgb(221, 221, 221);
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.input-text
{
  padding: 8px 10px;
  border: 1px solid rgb(221, 221, 221);
  border-radius: 4px;
  font-size: 14px;
  width: 150px;
}

.error-message
{
  margin-bottom: 20px;
  padding: 12px 15px;
  background-color: rgb(253, 237, 237);
  border: 1px solid rgb(245, 198, 203);
  border-radius: 4px;
  color: rgb(185, 28, 28);
  font-size: 14px;
}

.row
{
  display: flex;
  gap: 20px;
}

.btn
{
  display: inline-block;
  padding: 10px 20px;
  background-color: rgb(52, 152, 219);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover
{
  background-color: rgb(41, 128, 185);
}

.btn-copy
{
  background-color: rgb(46, 204, 113);
  font-size: 14px;
  padding: 5px 10px;
  text-align: center;
  margin: 5px auto;
  display: block;
}

.btn-copy:hover
{
  background-color: rgb(39, 174, 96);
}

.btn-copy--success
{
  background-color: rgb(39, 174, 96);
  cursor: default;
}

.btn-copy--error
{
  background-color: rgb(192, 57, 43);
}

/* --- Результаты --- */

.results-container
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  align-items: start;
}

.result-box
{
  border: 1px solid rgb(221, 221, 221);
  border-radius: 6px;
  padding: 20px;
  background-color: rgb(249, 249, 249);
}

.result-box--winner
{
  border-color: rgb(46, 204, 113);
  background-color: rgb(232, 248, 245);
  position: relative;
}

.result-box--loser
{
  border-color: rgb(231, 76, 60);
  opacity: 0.9;
}


.result-header
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
  min-height: 40px;
}

.result-title
{
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.result-size
{
  font-family: monospace;
  font-weight: bold;
  color: rgb(85, 85, 85);
}

.winner-badge
{
  display: inline-block;
  background-color: rgb(46, 204, 113);
  color: rgb(255, 255, 255);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 10px;
  vertical-align: middle;
}

.code-display
{
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(204, 204, 204);
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: rgb(51, 51, 51);
}

.comparison-summary
{
  margin-top: 20px;
  padding: 15px;
  background-color: rgb(255, 243, 205);
  border: 1px solid rgb(255, 238, 186);
  border-radius: 4px;
  color: rgb(133, 100, 4);
}

.preview-box
{
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed rgb(204, 204, 204);
  background-color: rgb(255, 255, 255);
  text-align: center;
  overflow: auto;
  max-height: 500px;
}

.preview-canvas
{
  display: inline-block;
  width: 100px;
  height: 100px;
  border: 1px solid rgb(221, 221, 221);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: rgb(240, 240, 240);
}

/* SVG внутри canvas оригинала */
.preview-canvas svg
{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.preview-result-clean
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-result-clean svg
{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

/* Блок SVG на всю ширину */
.result-box--svg
{
  margin-top: 20px;
}
