body {
    font-family: monospace, Consolas, "Courier New", Courier, monospace;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2 {
    margin-top: 0;
}

textarea {
    width: 80%;
    height: 150px;
    resize: none;
    font-size: 16px;          /* większa czcionka */
    padding: 10px;            /* wewnętrzny odstęp */
    border-radius: 10px;      /* ładne, zaokrąglone rogi */
    border: 1px solid #ccc;   /* delikatna ramka */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); /* delikatny cień wewnątrz */
    font-family: inherit;     /* dopasuj do reszty strony */
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4A90E2;    /* niebieska ramka po focusie */
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

.low {
    color: green;
}

.medium {
    color: orange;
}

.high {
    color: red;
}

.rate-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

/* Layout: lewa i prawa kolumna */
.container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Lewy panel (formularz + wyniki) */
.left-panel {
    flex: 1;
    min-width: 0;
}

/* Prawy panel (.htaccess) */
.right-panel {
    width: 25%;
    padding: 10px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px); /* uwzględnia padding z góry i dołu body */
    overflow-y: auto;
}

/* Styl tabeli wyników */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
    table-layout: auto;
}

th, td {
    text-align: left;
    padding: 6px 8px;
    font-size: 0.95em;
    vertical-align: top;
}

th {
    font-weight: bold;
    color: #444;
}

/* Bez widocznych linii */
table, th, td {
    border: none;
}

/* Tooltip (ładny popup z danymi) */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 5px;
}

.tooltip .tooltip-content {
    visibility: hidden;
    width: 320px;
    max-height: 300px;
    overflow: auto;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: pre-wrap;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

button {
    background-color: #BBB;       /* jasnoszary */
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #AAA;       /* trochę ciemniejszy przy hover */
    box-shadow: 0 5px 7px rgba(0,0,0,0.15);
}

button:active {
    background-color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.5);
}

