/* Sunset Theme for LiteBans Web Panel */

/* ========================
   Global / Body
======================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
}

body {
    background: url('/inc/img/litebans-bg.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #fdfdfd;
    font-family: 'Roboto', sans-serif; /* calmer font */
    font-weight: 400;
    padding-top: 70px;
}

/* Dark overlay for readability */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: -1;
}

/* ========================
   Container
======================== */
.container {
    margin-top: 0;
    padding: 20px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    flex: 1 0 auto; /* make content grow and push footer down */
}

/* ========================
   Navbar
======================== */
.navbar {
    background: linear-gradient(270deg, #ff6a88, #d38312, #ff9a8b);
    background-size: 600% 600%;
    animation: gradientShift 10s ease infinite;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-top: 0 !important;
    top: 0;
}
.navbar a {
    color: #fff !important;
    font-weight: 600;
}
.navbar a:hover {
    color: #ffe082 !important;
}
.navbar-brand {
    font-weight: normal;
}
.navbar-active {
    font-weight: bolder;
}
.my-lg-0 {
    font-weight: lighter;
}

/* ========================
   Tables
======================== */
.table {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.table th {
    background: rgba(255, 106, 136, 0.9);
    color: #fff;
    text-align: center;
}
.table td {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    vertical-align: middle !important;
}
.table tr:hover td {
    background: rgba(255, 255, 255, 0.15);
}
.table:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ========================
   Buttons
======================== */
.btn {
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary {
    background: linear-gradient(90deg, #ff9a8b, #ff6a88, #d38312);
    background-size: 300% 300%;
    border: none;
    transition: background-position 0.5s, transform 0.2s;
}
.btn-primary:hover {
    background-position: right center;
    transform: scale(1.05);
}

/* ========================
   Footer
======================== */
.footer {
    flex-shrink: 0;
    margin-top: auto;       /* stick footer at bottom */
    width: 100%;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    border-top: 2px solid rgba(255,255,255,0.2);
    z-index: 1000;
    overflow: hidden;
}

.footer a {
    color: #ffe082;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer a:hover {
    color: #fff59d;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Footer wave animation */
.footer::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 0;
    width: 200%;
    height: 90px;
    background: url('https://svgshare.com/i/ubS.svg') repeat-x;
    animation: wave 8s linear infinite;
    opacity: 0.3;
}

/* ========================
   Links
======================== */
a {
    color: #ffe082;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
    color: #fff59d;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* ========================
   Panels / Cards
======================== */
.panel, .card {
    background: rgba(0,0,0,0.35);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    padding: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ========================
   Avatars
======================== */
.avatar {
    margin-bottom: 5px;
    margin-right: 5px;
    border-radius: 2px;
}
.avatar-name { }
.avatar-name-left {
    display: flex;
}

/* ========================
   Headers
======================== */
.litebans-header {
    display: block;
    text-align: center;
}
.col-lg-12 {
    text-align: center;
}

/* ========================
   Tables (extra tweaks)
======================== */
th { text-align: center; }
p { margin-top: 2px; }
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 page
======================== */
.litebans-index { text-align: center; }
.litebans-index-main { font-weight: bold; }
.litebans-index-sub { font-weight: lighter; }

/* ========================
   Info page
======================== */
.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,
.litebans-label-permanent,
.litebans-label-ipban,
.litebans-label-ipmute {
    color: #fff; background-color: #ee5555;
}

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

/* ========================
   Utility
======================== */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.noalign-w { width: 0; }
.noalign-h { height: 0; }

/* ========================
   Background "alive" sparkles
======================== */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: -1;
}

/* ========================
   Animations
======================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes wave {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}
