body { font-family: sans-serif; max-width: 600px; margin: 40px auto; padding: 0 20px; color: #333; background: #f9f9f9; }
.box { background: white; border: 1px solid #e0e0e0; padding: 20px; border-radius: 0 0 8px 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border-top: none; }

/* СТИЛИ ВКЛАДОК (ТАБОВ) */
.tabs-menu { display: flex; margin-bottom: 0; padding-left: 0; list-style: none; }
.tab-link { background: #e0e0e0; border: 1px solid #e0e0e0; padding: 10px 20px; cursor: pointer; border-radius: 8px 8px 0 0; font-weight: bold; color: #666; margin-right: 4px; transition: 0.2s; }
.tab-link:hover { background: #d5d5d5; }
.tab-link.active-tab { background: white; border-bottom: 1px solid white; color: #0066cc; border-color: #e0e0e0 #e0e0e0 white #e0e0e0; }
.tab-content { display: none; }
.tab-content.active-content { display: block; }

/* Стили файлообменника */
.file-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.file-item:last-child { border-bottom: none; }
.file-info-block { display: flex; flex-direction: column; max-width: 65%; }
.file-link { color: #0066cc; text-decoration: none; word-break: break-all; margin-bottom: 3px; font-weight: bold; }
.file-link:hover { text-decoration: underline; }
.file-meta { font-size: 11px; color: #777; }
.actions-block { display: flex; gap: 8px; }
button { border: 1px solid #ccc; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 13px; background: none; }
button.btn-rename { color: #0066cc; border-color: #0066cc; }
button.btn-rename:hover { background: #f0f7ff; }
button.btn-del { color: #ff3333; border-color: #ff3333; }
button.btn-del:hover { background: #fff0f0; }
.disk-info { font-size: 13px; color: #666; background: #f0f4f8; padding: 8px 12px; border-radius: 6px; margin-bottom: 15px; display: flex; justify-content: space-between; }
.queue-title { font-size: 14px; font-weight: bold; margin-top: 15px; color: #555; }
.queue-list { margin: 10px 0; background: #f5f5f5; border-radius: 4px; padding: 5px 10px; font-size: 14px; }
.queue-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid #ddd; margin: 4px 0; border-radius: 4px; background: #fff; }
.status-duplicate { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.status-sizematch { background: #fffde7; color: #f57f17; border: 1px solid #fff9c4; }
.progress-container { display: none; margin-top: 15px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-bar { width: 0%; height: 20px; background: #4caf50; text-align: center; color: white; line-height: 20px; font-size: 12px; }
input[type="submit"], .btn-send { background: #0066cc; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; margin-top: 10px; font-weight: bold; }
input[type="submit"]:hover, .btn-send:hover { background: #0052a3; }
input[type="submit"]:disabled { background: #cccccc; cursor: not-allowed; }

/* Стили чата */
.chat-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.online-count { font-size: 12px; background: #4caf50; color: white; padding: 3px 10px; border-radius: 12px; font-weight: bold; }
.chat-box { height: 280px; border: 1px solid #ddd; overflow-y: auto; padding: 10px; margin-bottom: 12px; border-radius: 4px; background: #fafafa; font-size: 14px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input { padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
#chatNick { max-width: 80px; }
#chatMsg { flex-grow: 1; }
.msg-line { margin-bottom: 6px; word-break: break-all; }
.msg-user { font-weight: bold; color: #1e88e5; }

.card {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

.card img {
    max-width: 100%;  
    height: auto;   
    margin-bottom: 20px; 
}

.card h1 {
  color: #0066cc;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 28px;
}

.card p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.btn-enter {
  display: inline-block;
  background: #0066cc;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.2s;
}

.btn-enter:hover {
  background: #0052a3;
}
