    :root {
      --bg: linear-gradient(135deg, #0a0a0f 0%, #15151c 100%);
      --panel: radial-gradient(circle at top left, #1d1f26 0%, #17191f 100%);
      --accent: linear-gradient(90deg, #ff7e00 0%, #ff9a00 100%);
      --text: #f0f0f0;
      --muted: #a0a0b0;
      --border: rgba(255, 255, 255, 0.08);
      --success: #00cc88;
      --warning: #ffcc00;
      --danger: #ff4d6d;
      --offline: #f00000;
      --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
      --glow: 0 0 15px rgba(255, 122, 0, 0.3);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Segoe UI', 'Roboto', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      overflow-x: hidden;
    }
    
    /* Скрываем scrollbar в WebKit (Chrome, Safari, Edge) */
    body::-webkit-scrollbar {
      display: none;
    }

    header {
      background: var(--panel);
      padding: 22px 40px;
      font-size: 26px;
      font-weight: 700;
      border-bottom: 1px solid var(--border);
      box-shadow: var(--card-shadow);
      position: relative;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .logo-icon {
      background: var(--accent);
      width: 45px;
      height: 45px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      box-shadow: var(--glow);
      animation: pulse 2s infinite;
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 15px;
      font-size: 16px;
      font-weight: 500;
    }

    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(45deg, #ff7e00, #ffcc00);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .container {
      max-width: 1800px;
      margin: 40px auto;
      padding: 0 25px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      gap: 30px;
      grid-template-areas:
        "status console"
        "config console"
        "mods mods";
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 28px;
      box-shadow: var(--card-shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: var(--accent);
    }

    .card h2 {
      margin-top: 0;
      margin-bottom: 24px;
      font-size: 22px;
      font-weight: 600;
      padding-left: 15px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .card h2::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 5px;
      background: var(--accent);
      border-radius: 5px;
    }

    /* Распределение карточек по областям */
    .status-card {
      grid-area: status;
    }
    
    .console-card {
      grid-area: console;
      height: 100%;
    }
    
    .config-card {
      grid-area: config;
    }
    
    .mods-card {
      grid-area: mods;
    }

    .status-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }

    .status-item {
      background: rgba(40, 42, 50, 0.7);
      padding: 18px 15px;
      border-radius: 12px;
      font-size: 16px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
    }

    .status-item i {
      font-size: 24px;
    }

    .online {
      color: var(--success);
    }

    .offline {
      color: var(--offline);
    }

    .players {
      color: #5d9bff;
    }

    .map {
      color: #ff7e5f;
    }

    .ip {
      color: #9d7cff;
    }

    .name {
      color: #ffcc00;
    }

    .command-bar {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .command-bar input {
      flex: 1;
      padding: 15px 20px;
      border: none;
      border-radius: 12px;
      background: rgba(20, 22, 28, 0.7);
      color: var(--text);
      font-size: 16px;
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }

    .command-bar input:focus {
      outline: none;
      border-color: rgba(255, 126, 0, 0.5);
      box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.2);
    }

    .btn {
      padding: 14px 24px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 16px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .btn:hover::before {
      opacity: 1;
    }

    .btn:active {
      transform: translateY(2px);
    }

    .btn-accent {
      background: var(--accent);
      color: #1a1a1a;
    }

    .btn-red { 
      background: linear-gradient(90deg, #e03131 0%, #ff4d6d 100%);
      color: white;
    }

    .btn-black { 
      background: linear-gradient(90deg, #000000 0%, #000000 100%);
      color: white;
    }

    .btn-green { 
      background: linear-gradient(90deg, #2f9e44 0%, #40c057 100%);
      color: white;
    }

    .btn-yellow { 
      background: linear-gradient(90deg, #f59f00 0%, #ffd43b 100%);
      color: #1a1a1a;
    }

    .btn-gray { 
      background: linear-gradient(90deg, #5c5f66 0%, #868e96 100%);
      color: white;
    }

    .btn:hover {
      opacity: 0.9;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    .command-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 20px;
    }

    /* Стили для iframe консоли */
    .console-container {
      background: rgba(10, 12, 18, 0.7);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      flex: 1;
      min-height: 500px;
      display: flex;
      overflow: hidden;
    }

    #consoleFrame {
      width: 100%;
      height: 100%;
      border: none;
      background-color: #0a0c12;
    }

    textarea {
      width: 100%;
      height: 300px;
      background: rgba(10, 12, 18, 0.7);
      color: #00ffaa;
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      font-family: 'Fira Code', 'Consolas', monospace;
      font-size: 14px;
      resize: none;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      line-height: 1.6;
      overflow-y: auto;
    }

        textarea::-webkit-scrollbar {
      width: 8px;
    }

    textarea::-webkit-scrollbar-track {
      background: rgba(20, 20, 30, 0.5);
      border-radius: 4px;
    }

    textarea::-webkit-scrollbar-thumb {
      background: rgba(255, 126, 0, 0.5);
      border-radius: 4px;
    }

    textarea:focus {
      outline: none;
      border-color: rgba(255, 126, 0, 0.5);
      box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.2);
    }

    input[type="file"] {
      background: rgba(40, 42, 50, 0.7);
      padding: 15px;
      color: white;
      border-radius: 12px;
      border: 1px dashed rgba(255, 255, 255, 0.1);
      width: 100%;
      font-size: 16px;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    input[type="file"]:hover {
      border-color: rgba(255, 126, 0, 0.3);
    }

    .file-upload {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .file-actions {
      display: flex;
      gap: 12px;
    }

    .server-stats {
      display: flex;
      gap: 20px;
      margin-top: 20px;
    }

    .stat-card {
      flex: 1;
      background: rgba(40, 42, 50, 0.7);
      border-radius: 12px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-value {
      font-size: 28px;
      font-weight: 700;
    }

    .stat-label {
      font-size: 14px;
      color: var(--muted);
    }

    .cpu-stat {
      color: #ff7e5f;
    }

    .ram-stat {
      color: #5d9bff;
    }

    .disk-stat {
      color: #9d7cff;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0.6); }
      70% { box-shadow: 0 0 0 12px rgba(255, 126, 0, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .card:nth-child(1) { animation: fadeIn 0.4s ease; }
    .card:nth-child(2) { animation: fadeIn 0.6s ease; }
    .card:nth-child(3) { animation: fadeIn 0.8s ease; }
    .card:nth-child(4) { animation: fadeIn 1s ease; }

    /* Стили для модального окна */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(5px);
    }

    .modal-content {
      background: var(--panel);
      border-radius: 18px;
      padding: 30px;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
      border: 1px solid var(--border);
      position: relative;
      animation: modalAppear 0.3s ease-out;
    }

    @keyframes modalAppear {
      from { opacity: 0; transform: translateY(-30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .close-modal {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 24px;
      cursor: pointer;
      color: var(--muted);
      transition: color 0.3s;
    }

    .close-modal:hover {
      color: var(--text);
    }

    .modal-title {
      font-size: 24px;
      margin-bottom: 20px;
      color: #ff9a00;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-buttons {
      display: flex;
      gap: 15px;
      margin-top: 25px;
      justify-content: flex-end;
    }

    /* Стили для списка модов */
    .mods-list {
      list-style-type: none;      
      padding-left: 0;
      display: grid;
      gap: 12px;
    }

    .mod-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(40, 42, 50, 0.7);
      padding: 12px 15px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .mod-item:hover {
      background: rgba(50, 52, 60, 0.8);
      transform: translateX(5px);
    }

    .mod-actions {
      display: flex;
      gap: 10px;
    }

    .mod-delete {
      background: rgba(255, 77, 109, 0.15);
      color: #ff4d6d;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
    }

    .mod-delete:hover {
      background: rgba(255, 77, 109, 0.3);
      transform: scale(1.1);
    }

    @media (max-width: 1200px) {
      .container {
        grid-template-columns: 1fr;
        grid-template-areas:
          "status"
          "console"
          "config"
          "mods";
      }
    }

    @media (max-width: 768px) {
      .container {
        grid-template-columns: 1fr;
      }
      
      .command-bar {
        flex-direction: column;
      }
      
      .server-stats {
        flex-direction: column;
      }
      
      header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
      }
      
      .logo {
        justify-content: center;
      }
      
      .user-info {
        justify-content: center;
      }
    }

.alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}
.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* Стили для уведомлений */
#notificationContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification {
  position: relative;
  width: 350px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 18px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #4CAF50;
  background: linear-gradient(to right, #f8fff8, #ffffff);
}

.notification.error {
  border-left: 4px solid #F44336;
  background: linear-gradient(to right, #fff8f8, #ffffff);
}

.notification.info {
  border-left: 4px solid #2196F3;
  background: linear-gradient(to right, #f8fbff, #ffffff);
}

.notification-icon {
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
}

.notification.success .notification-icon {
  color: #4CAF50;
}

.notification.error .notification-icon {
  color: #F44336;
}

.notification.info .notification-icon {
  color: #2196F3;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.notification-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.notification-progress::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  animation: progress 5s linear forwards;
}

.notification.success .notification-progress::after {
  background: linear-gradient(to right, #4CAF50, #81C784);
}

.notification.error .notification-progress::after {
  background: linear-gradient(to right, #F44336, #E57373);
}

.notification.info .notification-progress::after {
  background: linear-gradient(to right, #2196F3, #64B5F6);
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Улучшенный стиль для блокировки порта */
.config-line {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  color: #495057;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.param-name {
  font-weight: 700;
  color: #212529;
  margin-right: 6px;
  font-size: 15px;
}

.param-value {
  color: #0d6efd;
  font-weight: 600;
  font-size: 15px;
}

.lock-icon {
  margin-left: 15px;
  color: #ff6b6b;
  font-size: 16px;
}

.hint {
  margin-left: 12px;
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
  flex-grow: 1;
  text-align: right;
}

/* Анимация загрузки */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}