/*
    DBUniverse theme for Nicaw AAC
    Inspired by DBU website
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-color: #eef4ff;
    --text-color: #e1e1e1;
    --muted-color: #8fa0b5;
    --bg-color: #121a25;
    --sidebar-bg: #131f2d;
    --header-height: 250px;
}

body {
    background: url('skins/dbu/header_background.png') top center no-repeat,
                url('skins/dbu/bottom_bg.png') bottom center no-repeat;
    background-color: var(--bg-color);
    background-attachment: fixed;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

a {
    transition: all 0.3s ease;
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    filter: brightness(120%);
    text-decoration: none;
    color: #fff;
}

/* Top Panel */
.top-panel {
    background: #0d121b;
    border-bottom: 1px solid #1c2635;
    height: 40px;
    position: relative;
    z-index: 1000;
}

.top-panel .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.top-panel .menu li {
    margin: 0 15px;
    line-height: 40px;
}

.top-panel .menu a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.top-panel .menu li.active a, .top-panel .menu a:hover {
    color: #f4dd9a;
}

/* Wrapper */
.wrapper {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header */
header.header {
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo {
    text-align: center;
}

#logo-2 {
    margin-top: -100px;
}

/* Social Links */
#social-links {
    position: absolute;
    top: 60px;
    left: 20px;
    z-index: 100;
}

#social-links .links a {
    display: block;
    width: 28px;
    height: 30px;
    margin-bottom: 10px;
    background: url('skins/dbu/social_media_icons.png') no-repeat;
    transition: 0.3s;
}

#social-links .facebook { background-position: 0 0; }
#social-links .discord { background-position: -52px 0; }

/* Main Layout */
#container {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: 0 auto;
    background: none;
    padding: 0;
    border: none;
}

#container2 {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Sidebar (Nicaw #panel) */
#panel {
    width: 280px;
    position: relative;
    border: none;
    margin-right: 20px;
}

/* Nicaw Content */
#content {
    width: 880px;
    margin-left: 0;
    background: url('skins/dbu/content-bg.jpg');
    border: 1px solid #1d2b3c;
    border-radius: 5px;
    min-height: 800px;
    padding: 20px;
    box-sizing: border-box;
}

/* Sidebar Blocks */
.sidebar-block {
    background: url('skins/dbu/sidebar-bg.jpg');
    border: 1px solid #1d2b3c;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-title {
    background: url('skins/dbu/forum-title-bg.png') no-repeat;
    background-size: cover;
    height: 50px;
    line-height: 50px;
    padding-left: 50px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 12px;
    width: 24px;
    height: 24px;
    background: url('skins/dbu/left-sidebar-icon.png') no-repeat;
}

/* Login Box (Modernizing Nicaw Login if it exists) */
.login-block {
    background: url('skins/dbu/login-block-bg.jpg') no-repeat top center,
                url('skins/dbu/login-block-repeat.jpg') repeat-y bottom center;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Main Content Tab Header */
#content::before {
    display: block;
    background: #1c2635;
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid #2c3545;
}

/* Sidebar Navigation (Nicaw #navigation) */
#navigation {
    background: none;
}

#navigation .top {
    background: #131f2d;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 0;
    border: 1px solid #1d2b3c;
    border-bottom: none;
    text-align: left;
    padding-left: 50px;
    position: relative;
    border-radius: 5px 5px 0 0;
}

#navigation .top::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 13px;
    width: 24px;
    height: 24px;
    background: url('skins/dbu/left-sidebar-icon.png') no-repeat;
    z-index: 2;
}

#navigation .top::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 4px;
    width: 43px;
    height: 42px;
    background: url('skins/dbu/forum-title-bg.png') no-repeat;
    background-size: contain;
    z-index: 1;
}

#navigation .top .symbol {
    display: none;
}

#navigation ul.category-content {
    background: rgba(19, 31, 45, 0.8);
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #1d2b3c;
    border-top: none;
    margin-bottom: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#navigation ul.category-content.open {
    max-height: 2000px;
}

#navigation li {
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navigation li a {
    color: var(--muted-color);
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    display: block;
    transition: all 0.3s ease;
    background: url('skins/dbu/li-icon.png') left 15px center no-repeat;
    padding: 9px 15px 9px 35px;
}

#navigation li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    background-position: left 20px center;
    padding-left: 40px;
}

/* Hide legacy info styling from notes.inc */
.info hr, .info p[style*="font-size:15px"], .info h1, .info > div:not(.text-wrap) {
    display: none;
}

/* Sidebar Block Titles (General) */
.sidebar-title {
    background: #131f2d;
    height: 50px;
    line-height: 50px;
    padding-left: 50px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    border: 1px solid #1d2b3c;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 13px;
    width: 24px;
    height: 24px;
    background: url('skins/dbu/left-sidebar-icon.png') no-repeat;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 4px;
    width: 43px;
    height: 42px;
    background: url('skins/dbu/top-player-title-bg.png') no-repeat;
    background-size: contain;
}

/* News Styling */
.news-title {
    background: #131f2d;
    height: 38px;
    line-height: 38px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-radius: 3px 3px 0 0;
    border: 1px solid #1d2b3c;
    position: relative;
}

.news-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('skins/dbu/news_title.png') no-repeat right center;
    pointer-events: none;
    opacity: 0.5;
}

.news-title .titletxt {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.news-title .titletxt img {
    margin-right: 10px;
}

.news-title .date {
    color: var(--muted-color);
    font-size: 11px;
}

.news-content {
    padding: 10px;
    color: var(--text-color);
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    margin-top: -15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
input[type=button], input[type=submit], .green-button {
    background: url('skins/dbu/green-button.jpg') center no-repeat;
    background-size: cover;
    border: none;
    color: #c3eaee;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0px 0px 20px 0px rgba(119, 240, 241, 0.2);
}

/* Inputs */
input[type=text], input[type=password], textarea {
    background: #131f2d;
    border: 1px solid #2c3545;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background: url('skins/dbu/top-player-title-bg.png') no-repeat;
    background-size: cover;
    height: 40px;
    color: #fff;
    padding: 0 15px;
    text-align: left;
}

td {
    padding: 10px 15px;
    border-bottom: 1px solid #1d2b3c;
    background: rgba(19, 31, 45, 0.4);
    color: var(--text-color);
}

tr:nth-child(even) td {
    background: rgba(19, 31, 45, 0.6);
}

/* Footer */
#footer {
    text-align: center;
    padding: 40px 0;
    color: var(--muted-color);
    background: none;
    border: none;
}

/* Status Box */
#friends {
    background: rgba(19, 31, 45, 0.6);
    border: 1px solid #1d2b3c;
    border-radius: 5px;
    margin-bottom: 20px;
}

#friends .top {
    background: url('skins/dbu/forum-title-bg.png') no-repeat;
    background-size: cover;
    height: 40px;
    line-height: 40px;
    padding-left: 20px;
    color: #fff;
    text-transform: uppercase;
}

#friends .mid {
    padding: 15px;
}

.online { color: #5cb85c; }
.offline { color: #d9534f; }

/* iobox & Registration fix */
#form {
    position: absolute;
    width: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
}
#iobox {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    background: #131f2d;
    border: 1px solid #2c3545;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
    min-width: 450px;
    color: #eee;
}
#iobox fieldset {
    border: 1px solid #2c3545;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
}
#iobox legend {
    color: #fff;
    font-weight: 700;
    padding: 0 10px;
}
#iobox input[type="text"], #iobox input[type="password"] {
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Task Menu (Account Manager / Login) */
.task-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.task-menu li {
    padding: 10px 15px 10px 40px;
    margin-bottom: 5px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    border: 1px solid #1d2b3c;
    border-radius: 4px;
    background-color: rgba(19, 31, 45, 0.4);
    cursor: pointer;
    transition: 0.3s;
    color: #82a5dd;
    line-height: 20px;
}
.task-menu li:hover {
    background-color: rgba(19, 31, 45, 0.8);
    color: #fff;
    border-color: #2c3545;
}

/* Fix nested containers in notes.php */
.news-list {
    margin: 0;
    padding: 0;
}
.news-content .info-reset {
    margin: 0 !important;
    padding: 0 !important;
}
.news-content .info-reset * {
    margin-left: 0 !important;
    position: static !important;
}
.news-content .text-wrap {
    margin-left: 0 !important;
    padding: 0 !important;
}

/* Hide legacy info styling from notes.inc */
.info hr, .info p[style*="font-size:15px"], .info h1, .info > div:not(.text-wrap) {
    display: none;
}

/* Changelog scoping */
.ch-wrapper {
    display: flex;
    align-items: center;
}
.ch-zoom {
    z-index: 10000;
}
