* {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
  }
  .container {
    max-width: 100%;
    min-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  h1, h2 {
    font-weight: 600;
    margin-bottom: 1em;
    text-align: center;
  }
  h2 {
    font-size: 1.4rem;
    text-align: left;
  }
  section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  input[type="text"] {
    width: 70%;
    padding: 8px 10px;
    font-size: 1rem;
    margin-right: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  button {
    padding: 8px 14px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #275DA6;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  button:hover {
    background-color: #0d376e;
  }
  .search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
  #createResult, #result {
    margin-top: 10px;
    color: #0d376e; 
    font-weight: 500;
  }
  .search-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
  }
  .search-container input {
    width: auto;
    padding: 6px 8px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  .logo-container {
    text-align: center; 
    margin-bottom: 10px; 
  }
  .logo-container img {
    max-width: 300px; 
    height: auto;
  }
  /* Стили для иконок редактирования и удаления (Font Awesome) */
  .editIcon {
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    margin-right: 8px;
    color: #0d376e;
    float: right;
  }
  .deleteIcon {
    margin-right: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: #dc2626;
    float: right;
  }
  .originalUrlCell{
    .originalUrlValue {
      display: inline-block;
      max-width: 300px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }
    
  }
  .originalUrlCell:hover .editIcon,
  .shortIdCell:hover .editIcon,
  .shortIdCell:hover .deleteIcon {
    opacity: 1;
  }
  tr:hover .editIcon,
  tr:hover .deleteIcon {
    display: inline-block;
  }
  .saveIcon, .cancelIcon {
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    color: #0d376e;
  }
  th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    text-align: left;
  }
  th {
    background-color: #f5f5f5;
    font-weight: 600;
  }
  .originalUrlValue {
    color:#275DA6;
  }
  .originalUrlValue:hover {
    color: #0d376e;
  }
  .originalUrlValue:visited{
    color: #0d376e;
  }
  .shortIdValue {
    color:#275DA6;
  }
  .shortIdValue:hover {
    color: #0d376e;
  }
  .shortIdValue:visited{
    color:#0d376e;
  }
  tr:hover td {
    background-color: #f9f9f9;
  }
  .edit-btn {
    background-color: #eee;
    color: #0d376e;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    float: right;
    margin-left: 6px;
  }
  .edit-btn:hover {
    background-color: #cbd5e0;
  }
  .newOriginalUrlInput,
  .newShortIdInput {
    width: 80%;
    padding: 6px 8px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 6px;
  }
  /* Стили для drag-and-drop */
  tr.draggable {
    cursor: move;
  }
  tr.over {
    border: 2px dashed #275DA6;
  }
  /* Адаптивность */
  @media (max-width: 600px) {
    .container {
      padding: 10px;
    }
    table, thead, tbody, th, td, tr {
      display: block;
      width: 100%;
    }
    th {
      position: absolute;
      left: -9999px;
      top: -9999px;
    }
    td {
      border: none;
      position: relative;
      padding-left: 50%;
      margin-bottom: 10px;
    }
    td:before {
      position: absolute;
      left: 10px;
      top: 12px;
      white-space: nowrap;
      font-weight: 600;
    }
    td:nth-of-type(1):before { content: "ID"; }
    td:nth-of-type(2):before { content: "Оригинальный URL"; }
    td:nth-of-type(3):before { content: "Короткий идентификатор"; }
    td:nth-of-type(4):before { content: "Дата создания"; }
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    margin-bottom: 20px;
  }
  
  .logout-btn {
    text-decoration: none;
    font-size: 1rem;
    background-color: #275DA6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }
  
  .logout-btn:hover {
    background-color: #0d376e;
    color: #fff;
  }
  