/* style.css — Haxed-liknande design */

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

/* Body */
body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
    line-height: 1.5;
}

/* Header */
.header {
    background: #222;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}
.header a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}
.header a:hover {
    color: #0f0;
}

/* Layout */
.container {
    display: flex;
    min-height: calc(100vh - 50px);
}
.sidebar {
    width: 200px;
    background: #222;
    padding: 20px;
    border-right: 1px solid #333;
}
.sidebar h3 {
    margin-bottom: 15px;
}
.sidebar p {
    margin-bottom: 10px;
}
.sidebar a {
    display: block;
    padding: 5px 0;
    color: #fff;
    text-decoration: none;
}
.sidebar a:hover {
    color: #0f0;
}
.main {
    flex: 1;
    padding: 20px;
}

/* Boxes */
.inventory, .equipment, .events {
    background: #222;
    padding: 15px;
    border: 1px solid #333;
    margin-bottom: 20px;
}
.inventory table, .equipment table {
    width: 100%;
    border-collapse: collapse;
}
.inventory th, .inventory td, .equipment th, .equipment td {
    border: 1px solid #333;
    padding: 5px;
    text-align: left;
}

/* Buttons and Inputs */
input[type=text], input[type=password], input[type=number] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: #333;
    border: 1px solid #555;
    color: #eee;
}
input[type=submit] {
    padding: 8px 12px;
    background: #444;
    border: 1px solid #666;
    color: #fff;
    cursor: pointer;
}
input[type=submit]:hover {
    background: #555;
}

/* Flash messages */
.flash {
    padding: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}
.flash.error { background: #7a1f1f; color: #fff; }
.flash.success { background: #1f7a33; color: #fff; }

/* Tabs (login/register) */
.tabs {
    display: flex;
    margin-bottom: 20px;
}
.tab {
    flex: 1;
    padding: 10px;
    background: #333;
    text-align: center;
    cursor: pointer;
    border: 1px solid #444;
    color: #eee;
}
.tab.active {
    background: #444;
    font-weight: bold;
}

/* Forms */
.form-box { display: none; }
.form-box.active { display: block; }

/* Tables on market page */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #333;
    padding: 5px;
    text-align: left;
}

/* Links inside main */
.main a {
    color: #0f0;
    text-decoration: none;
}
.main a:hover {
    text-decoration: underline;
}
