.avatar {
    margin-bottom: 5px;
    margin-right: 5px;
    border-radius: 2px;
}

.avatar-name {
}

.avatar-name-left {
    display: flex;
}

/* header */
.litebans-header {
    display: block;
    text-align: center;
}

.col-lg-12 {
    text-align: center;
}

/* navbar */
.navbar {
    position: static;
    font-weight: bold;
}

.navbar-brand {
    font-weight: normal;
}

.navbar-active {
    font-weight: bolder;
}

.my-lg-0 {
    font-weight: lighter;
}

/* tables */
th {
    text-align: center;
}

table tr td {
    padding-left: 0;
    padding-right: 0;
    vertical-align: middle !important;
    text-align: center;
}

p {
    margin-top: 2px;
}

/* table links */
a,
a:hover,
a:focus {
    text-decoration: none;
}

tr.hover {
    cursor: pointer;
}

/* check form */
.litebans-check {
    text-align: left;
}

.litebans-check-btn {
    margin-left: 5px;
}

.litebans-check-form {
    margin-left: 15px;
}

.litebans-check-output {
    margin-left: 3px;
}

/* pager */
.litebans-pager {
    font-size: 30px;
}

.litebans-pager-number {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
}

.litebans-pager-left {
    float: left;
}

.litebans-pager-right {
    float: right;
}

.litebans-pager-active {
    color: darkcyan;
}

.litebans-pager-inactive {
    visibility: hidden;
    pointer-events: none;
    cursor: default;
}

/* index.php */
.litebans-index {
    text-align: center;
}

.litebans-index-main {
    font-weight: bold;
}

.litebans-index-sub {
    font-weight: lighter;
}

/* info.php */
.badge, .badge-pill {
    font-weight: 100;
}

.litebans-label-container {
    display: inline-flex;
}

.litebans-label-info {
    margin-left: 15px;
    font-size: 17px;
    font-weight: 800;
}

.litebans-label-inactive {
    color: #fff;
    background-color: #f79720;
}

.litebans-label-expired {
    color: #fff;
    background-color: #777;
}

.litebans-label-active {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-permanent {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-ipban {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-ipmute {
    color: #fff;
    background-color: #ee5555;
}

/* history.php */
.litebans-label-history {
    display: inline;
    font-size: 16px;
    font-weight: 800;
}

.litebans-label-ban {
    background-color: darkred;
}

.litebans-label-mute {
    background-color: dimgrey;
}

.litebans-label-warn {
    background-color: darkorange;
}

.litebans-label-kick {
    background-color: tomato;
}

/* prevent mouse selection */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* prevent alignment */
.noalign-w {
    width: 0;
}

.noalign-h {
    height: 0;
}
/* LiteBans - Minimalistyczny Bajkowy CSS */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Kolory z bajkowego stylu */
    --font-headings: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --color-kociak-red: #E53935; 
    --color-kociak-red-dark: #C62828; 
    --color-primary: var(--color-kociak-red);      
    --color-primary-dark: var(--color-kociak-red-dark);

    --color-bg: #FFF9E6; 
    --color-surface: #FFFFFF; 
    --color-text: #4E342E; 
    --color-text-light: #795548; 
    
    --color-pink-accent: #FF8FAB;  
    --color-secondary: #F3D5A5; 
    --color-accent: #A7D8F0; 
    --color-accent-dark: #7AC5E8;

    --color-yes: #66BB6A; 
    --color-no: #EF5350;  

    --border-radius-soft: 12px;
    --border-radius-rounder: 25px;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--color-bg);
    min-height: 100vh;
}

/* Header Navigation */
.navbar {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-secondary) 100%) !important;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-headings) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

.nav-link {
    color: var(--color-text-light) !important;
    font-weight: 600;
    font-family: var(--font-headings);
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius-soft);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--color-primary) !important;
    background-color: var(--color-bg);
    transform: translateY(-2px);
}

.badge-pill {
    background: var(--color-primary) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-rounder);
}

/* Kontener główny */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Nagłówek strony */
.modal-header.litebans-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: var(--color-text);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-soft);
    text-align: center;
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--color-surface);
    margin-bottom: 2rem;
    position: relative;
}

.modal-header.litebans-header h1 {
    font-family: var(--font-headings);
    font-size: 2.5em;
    font-weight: 800;
    margin: 0;
    color: var(--color-primary);
    text-shadow: 1px 1px 2px rgba(93, 64, 55, 0.15);
}

/* Formularz wyszukiwania */
.litebans-check {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.litebans-check-form {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--color-secondary);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-control {
    background: var(--color-bg) !important;
    border: 2px solid var(--color-secondary) !important;
    color: var(--color-text) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-soft);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 250px;
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1) !important;
    outline: none !important;
    background: var(--color-surface) !important;
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.btn-primary.litebans-check-btn {
    background: var(--color-primary) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-soft);
    font-weight: 700;
    font-family: var(--font-headings);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
}

.btn-primary.litebans-check-btn:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Tabela */
.table {
    background: var(--color-surface) !important;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--color-secondary);
    margin-bottom: 2rem;
}

.table thead th {
    background: var(--color-accent) !important;
    color: var(--color-text) !important;
    font-family: var(--font-headings);
    font-weight: 700;
    padding: 1.2rem 1rem;
    border: none !important;
    font-size: 1rem;
    border-bottom: 3px solid var(--color-accent-dark) !important;
}

.table tbody tr {
    background: var(--color-surface) !important;
    transition: all 0.3s ease;
    border: none !important;
}

.table tbody tr:nth-child(even) {
    background: #FEFDFB !important;
}

.table tbody tr:hover {
    background: var(--color-bg) !important;
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 var(--color-primary);
}

.table td {
    padding: 1rem !important;
    border: none !important;
    color: var(--color-text);
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 1px dashed var(--color-secondary) !important;
}

.table td a {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* Awatary */
.avatar-name {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    padding: 2px;
    background-color: var(--color-surface);
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.avatar-name br + * {
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-headings);
}

/* Powody banów */
.table td:nth-child(3) a {
    background: rgba(229, 57, 53, 0.1);
    color: var(--color-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-soft);
    font-weight: 600;
    border: 1px solid rgba(229, 57, 53, 0.3);
    display: inline-block;
    transition: all 0.3s ease;
}

.table td:nth-child(3) a:hover {
    background: rgba(229, 57, 53, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Daty */
.table td:nth-child(4) a,
.table td:nth-child(5) a {
    color: var(--color-accent-dark) !important;
    font-weight: 500;
}

/* Status odbanowania */
.table td:contains("Odbanowany") {
    color: var(--color-yes) !important;
    font-weight: 600;
}

/* Paginacja */
.litebans-pager {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-soft);
    text-decoration: none !important;
    font-weight: 600;
    font-family: var(--font-headings);
    transition: all 0.3s ease;
    border: 2px solid var(--color-secondary);
    display: inline-block;
    margin: 0 0.5rem;
}

.litebans-pager:hover:not(.litebans-pager-inactive) {
    background: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.litebans-pager-inactive {
    opacity: 0.5;
    cursor: not-allowed;
}

.litebans-pager-number {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-accent), var(--color-secondary));
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-soft);
    font-weight: 700;
    font-family: var(--font-headings);
    border: 2px solid var(--color-surface);
    margin: 0 0.5rem;
    box-shadow: var(--shadow-soft);
}

/* Responsywność */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .modal-header.litebans-header {
        padding: 2rem 1rem;
    }
    
    .modal-header.litebans-header h1 {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .litebans-check-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-control {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Subtelne animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.table tbody tr {
    animation: fadeIn 0.4s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}