/* ----------------------------------------------------------
   GLOBAL STYLES
---------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */
nav {
    background: #111;
    color: #fff;
    padding: 10px 0;
}

nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

/* Left group: back button + logo */
.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* BACK BUTTON */
.back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: #555;
}

/* LOGO */
.logo {
    height: 34px;
    cursor: pointer;
}

/* Right nav links */
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.2s;
}

nav a:hover {
    background: #444;
}

/* Greeting text */
.nav-username {
    margin-right: 12px;
    font-weight: bold;
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn {
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: #d90000;
    color: white;
}

.btn-primary:hover {
    background: #b40000;
}

.btn-muted {
    background: #333;
    color: #fff;
}

.btn-muted:hover {
    background: #555;
}

/* ----------------------------------------------------------
   FORMS
---------------------------------------------------------- */
form input,
form textarea,
form select {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

textarea {
    resize: vertical;
}

form label {
    font-weight: bold;
}

/* ----------------------------------------------------------
   TABLES
---------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

table th {
    background: #eee;
}

/* ----------------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------------- */
@media(max-width: 768px) {

    .container {
        margin: 15px;
        padding: 15px;
    }

    nav .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
        display: inline-block;
        margin-right: 8px;
    }
}

@media(max-width: 480px) {
    .nav-left strong {
        font-size: 14px;
    }

    .logo {
        height: 28px;
    }

    .back-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* ----------------------------------------------------------
   TABS
---------------------------------------------------------- */

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 6px 0;
    flex-wrap: wrap;
}

/* Tab base style */
.tab {
    padding: 10px 20px;
    background: #e9e9e9;
    color: #333;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ccc;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Hover effect */
.tab:hover {
    background: #dcdcdc;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Active tab styling */
.tab.active {
    background: #0077ff;
    color: #fff;
    border-color: #005fd4;
    box-shadow: 0 3px 8px rgba(0,119,255,0.3);
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media(max-width: 480px) {
    .tab {
        padding: 8px 14px;
        font-size: 13px;
    }
}
