/* assets/css/style-portchecker.css - Clean Dark Mode */

:root {
    /* Tło zgodne z dashboardem (Slate 900) */
    --bg-color: #0f172a;
    /* Karty nieco jaśniejsze (Slate 800) */
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Akcent (Fiolet/Róż) - bez neonu */
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    
    /* Inputy ciemniejsze od karty */
    --input-bg: #020617;
    
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* KARTA - Czysty styl bez glassmorphism */
.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tool-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 700;
}

.tool-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Inputy */
input[type="text"], 
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus, 
input[type="number"]:focus {
    border-color: #8b5cf6;
    outline: none;
    /* Usunięty cień neonowy */
}

/* Radio Buttony */
.radio-group { display: flex; gap: 10px; }
.radio-option { flex: 1; position: relative; }
.radio-option input { position: absolute; opacity: 0; cursor: pointer; }

.radio-option label {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.radio-option input:checked + label {
    background: #8b5cf6; /* Flat color zamiast glow */
    border-color: #8b5cf6;
    color: white;
    font-weight: 600;
}

/* Tagi Portów */
.quick-ports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.port-chip {
    background: var(--input-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.port-chip:hover {
    border-color: #8b5cf6;
    color: white;
}

.port-chip.active {
    background: var(--border-color);
    color: white;
    border-color: #8b5cf6;
}

/* Przycisk - NAPRAWIONY MARGINES */
.btn-primary {
    width: 100%;
    padding: 16px;
    margin-top: 30px; /* Dodano oddech od góry */
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    /* Usunięty cień box-shadow */
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background: #334155;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Wyniki */
#result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 600;
}

.result-open {
    background: rgba(16, 185, 129, 0.1); /* Bardzo delikatne tło */
    color: #34d399;
    border: 1px solid #059669;
}

.result-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid #b91c1c;
}

/* Responsywność */
@media (max-width: 600px) {
    .tool-card { padding: 1.5rem; }
}
