/* ============================================
   DODAJ SERWER - dodaj-serwer.css
   ============================================ */

.add-server-main {
    padding: 32px 20px 64px;
    display: flex;
    justify-content: center;
}

.add-server-card {
    background: rgba(26, 26, 26, 0.97);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 40px;
    max-width: 600px;
    width: 100%;
}

.add-server-title {
    font-family: 'Minecraft', sans-serif;
    font-size: 20px;
    color: white;
    text-align: center;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: var(--primary);
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.add-server-info {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* FORMULARZ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.add-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
    font-family: Arial, sans-serif;
}

.add-input:focus {
    border-color: var(--primary);
    background: rgba(22, 163, 74, 0.06);
}

.add-input::placeholder { color: var(--text-dim); }
.add-input[readonly] { opacity: 0.6; cursor: not-allowed; }

textarea.add-input {
    resize: vertical;
    min-height: 100px;
}

select.add-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

select.add-input option,
select.add-input optgroup {
    background: #1a1a1a;
    color: var(--text);
}

select.add-input optgroup {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
}

/* TURNSTILE */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    min-height: 65px;
}

/* PRZYCISKI */
.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) { background: var(--primary-dark); }
.btn-submit:disabled {
    background: #3a3a3a;
    color: var(--text-dim);
    cursor: not-allowed;
}

.btn-submit-full {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-submit-full:hover { background: var(--primary-dark); }
.btn-submit-full:disabled { background: #555; cursor: not-allowed; }

.form-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 10px;
}

/* STEP 2 */
.step2-verified {
    display: inline-block;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

/* ERROR */
.add-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* SUKCES */
.success-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 12px;
}

.success-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.btn-success-home {
    padding: 12px 24px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.btn-success-home:hover { border-color: var(--primary); color: var(--primary); }

.btn-success-my {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

/* ─── Multiselect trybów ──────────────────────────────────────────────── */

.multiselect {
    position: relative;
    width: 100%;
    user-select: none;
}

.multiselect-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    gap: 8px;
}

.multiselect-box:focus,
.multiselect-box[aria-expanded="true"] {
    border-color: var(--primary, #4a90d9);
}

.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 26px;
    align-items: center;
}

.multiselect-placeholder {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
}

.multiselect-arrow {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.multiselect-box[aria-expanded="true"] .multiselect-arrow {
    transform: rotate(180deg);
}

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ms-tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
}

.ms-tag-remove:hover { opacity: 1; }

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #222;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    overflow: hidden;
}

.multiselect-search-wrap {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.multiselect-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
}

.multiselect-search:focus { border-color: var(--primary, #4a90d9); }
.multiselect-search::placeholder { color: rgba(255,255,255,0.3); }

.multiselect-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}

.ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.12s;
}

.ms-option:hover { background: rgba(255,255,255,0.06); }
.ms-option.selected { color: #4ade80; }
.ms-option.selected:hover { background: rgba(74,222,128,0.07); }
.ms-option.disabled { color: rgba(255,255,255,0.3); cursor: not-allowed; opacity: 0.5; }

.ms-check {
    width: 16px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
}

.btn-success-my:hover { background: var(--primary-dark); }

/* LOGIN REQUIRED */
.login-required-box {
    text-align: center;
    padding: 24px 0;
}

.login-required-box p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-discord-big {
    background: #5865F2;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-discord-big:hover { background: #4752C4; }

@media (max-width: 600px) {
    .add-server-card { padding: 24px 20px; }
    .success-actions { flex-direction: column; }
}
