/*
Theme Name: Innense
Author: Innense Team
Description: Innense WordPress Theme - Refactored (Visual Compatibility V2)
Version: 1.2
*/

/* ==========================================================================
   1. CSS VARIABLES (Kolory)
   ========================================================================== */
:root {
    --primary-blue: #203876;
    --secondary-blue: #13aee1;
    --accent-green: #68b43f;
    --accent-green-alt: #91bf2f;
    --text-color: #646e84;
    --bg-light: #f5f6f8;
    --border-color: #ddd;
    --white: #ffffff;
    --shadow: 0px 12px 22px -13px rgba(66, 68, 90, 0.3);
}

/* ==========================================================================
   2. FIXY WORDPRESS & RWD
   ========================================================================== */
/* Fix dla paska admina */
.admin-bar .top-bar { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .top-bar { top: 46px; }
}

/* Wyrównania obrazków w treści */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }

/* ==========================================================================
   3. RESET I STYLE BAZOWE
   ========================================================================== */
body { 
    background: var(--white); 
    font-size: 15px; 
    color: var(--text-color); 
    font-family: 'Roboto', arial, tahoma, sans-serif; 
    line-height: 1.6em;
    margin: 0;
}

h1, h2, h3 { 
    color: var(--primary-blue); 
    font-weight: 600; 
    margin: 0 0 10px 0; 
}

a { 
    color: var(--accent-green); 
    text-decoration: none; 
}

/* ==========================================================================
   4. ELEMENTY FORMULARZA I PRZYCISKI
   ========================================================================== */
.button, input[type="submit"] {
    padding: 10px 20px;
    background-color: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.button:hover, input[type="submit"]:hover {
    background-color: var(--primary-blue);
}

.custom-checkbox {
    display: flex;
    align-items: center;
}
.custom-checkbox input[type="checkbox"] { margin-right: 10px; }

/* User Registration Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ==========================================================================
   5. TABELE (Przywrócony wygląd oryginalny)
   ========================================================================== */
#content table {
    width: 55%; /* Przywrócona oryginalna szerokość */
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

/* Na telefonach tabela musi być szersza */
@media screen and (max-width: 768px) {
    #content table { width: 100%; }
}

#content table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

#content table tr:hover { background-color: #f5f5f5; }
#content table thead tr:hover { background-color: transparent; }

/* Styl ogólny tabeli */
.vr-list {
    width: 55%; /* Twoja preferowana szerokość */
    border-collapse: collapse;
    margin: 20px 0;
}

/* NAGŁÓWEK - Stały i niezmienny */
.vr-list thead tr {
    background-color: #13aee1 !important; /* Twój niebieski */
    color: #ffffff !important;
    text-align: left;
}

.vr-list thead th {
    padding: 12px 10px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

/* BODY - Tylko tutaj działają hover i obramowania wierszy */
.vr-list tbody tr {
    border-bottom: 1px solid #eee;
    background-color: #ffffff;
}

.vr-list tbody td {
    padding: 10px;
}

/* Efekt najechania tylko na wiersze z DANYCH */
.vr-list tbody tr:hover {
    background-color: #f9f9f9 !important;
}

/* Kolory dla kodów */
.addon-code-active { color: #68b43f; }
.addon-code-none { color: #999; font-size: 0.9em; }

/* RWD - Tabela na całą szerokość na telefonach */
@media screen and (max-width: 768px) {
    .vr-list { width: 100%; }
}

/* ==========================================================================
   6. HEADER I MENU
   ========================================================================== */
.top-bar {
    width: 100%;
    z-index: 99997;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    padding: 0;
}

#menu-wrap {
    background: var(--white);
    padding: 14px 0;
    overflow: visible;
}

#logo-top {
    background: url(img/logo.png) center no-repeat;
    background-size: cover; /* Przywrócone cover */
    float: left;
    width: 24%; /* Przywrócona szerokość procentowa */
    max-width: 314px;
    height: auto;
    padding: 30px 0;
    line-height: 0;
    margin: 0;
}

#menu {
    float: right;
    max-width: 70%;
    width: auto;
    position: relative;
    text-align: left;
}

#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: table; /* Przywrócony display table z oryginału dla zgodności */
    transition: opacity 1s ease;
}

#menu ul li {
    display: table-cell; /* Przywrócone table-cell */
    vertical-align: middle;
    padding: 10px 17px;
    position: relative;
}

#menu ul li a {
    font-weight: 600;
    display: inline-block;
    color: var(--primary-blue);
    font-size: 1.1em;
    line-height: 1.3em;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    text-align: center;
}

/* Animacja podkreślenia menu */
#menu ul li:after {
    content: " ";
    display: block;
    background: var(--accent-green-alt);
    height: 2px;
    width: 0%;
    position: absolute;
    bottom: 0px;
    left: 30%;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

#menu ul li:hover:after,
#menu ul .current-menu-item:after {
    height: 2px !important;
    opacity: 1 !important;
    width: 40% !important;
    background: var(--accent-green-alt);
}

/* ==========================================================================
   7. FOOTER (Przywrócony układ kolumnowy)
   ========================================================================== */
#footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

#footer-bottom {
    overflow: hidden;
    position: relative;
}

#footer-left {
    width: 49%;
    float: left;
    color: var(--white);
    text-align: left;
}

#footer-left img {
    max-width: 300px;
    height: auto;
}

#footer-left p { margin-top: 0; } /* Reset marginesu dla tekstu INFORMACJE */

#footer-right {
    width: 50%;
    float: left;
    color: var(--white);
    text-align: right;
}

#footer-credits {
    width: 94%;
    padding: 8px 3%;
    color: rgba(255,255,255,0.8);
    text-align: right;
    clear: both; /* Ważne, żeby creditsy spadły pod kolumny */
}

#footer a { color: var(--white); }

/* ==========================================================================
   8. STRONA GŁÓWNA & UTILITIES
   ========================================================================== */
.group {
    max-width: 1318px; /* Oryginalna szerokość */
    padding: 0 20px;
    margin: 0 auto;
}
/* Clearfix dla group */
.group:before, .group:after { content:""; display:table; }
.group:after { clear:both; }

.page-top-image {
    background: var(--bg-light) url(img/tlo.png) left top repeat;
    padding: 120px 0 40px 0;
    margin-bottom: 20px;
    position: relative;
}

.page-main-title {
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
    margin-bottom: 30px;
}

.page-main-title:after {
    content: " ";
    display: block;
    background: #efd244;
    height: 8px;
    width: 70px;
    position: absolute;
    bottom: -25px;
}