/* ============================================
   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;
}

.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; }
}
