/* ============================================================
   GLOBAL VARIABLES & THEME SETUP
   ============================================================ */
:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2d2d2d;
    --text-main: #eeeeee;
    --text-muted: #999999;
    --accent: #00adb5;
    --accent-hover: #008c95;
    --danger: #ff4d4d;
    --danger-hover: #cc3333;
    --border: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ============================================================
   LAYOUT CONTAINERS (Universal Centering)
   ============================================================ */
main,
.dashboard-container {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    border: 1px solid var(--border);
}

h1,
h2,
h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

h2 {
    font-size: 1.3rem;
    margin-top: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* ============================================================
   FORMS & INPUT FIELDS
   ============================================================ */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

input,
select {
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--accent);
}

input:disabled,
select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Inline wrapper for weight inputs */
.inline-group {
    display: flex;
    gap: 10px;
}

.inline-group input {
    flex: 2;
}

.inline-group select {
    flex: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
button {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
}

button:hover {
    background-color: var(--accent-hover);
}

#logoutButton,
.danger-btn {
    background-color: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    margin-top: 10px;
}

#logoutButton:hover,
.danger-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
}

.approve-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: inline-block;
    margin-left: 10px;
}

/* ============================================================
   LISTS & DATA TIMELINES (History & Admins)
   ============================================================ */
ul {
    list-style: none;
    margin-bottom: 15px;
}

li {
    background-color: var(--bg-main);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid var(--accent);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li strong {
    color: var(--text-main);
}

li em {
    color: var(--accent);
    font-style: normal;
    font-weight: bold;
}
/* ============================================================
   NAVIGATION LINKS (Styled as Buttons)
   ============================================================ */
.button-link {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;     /* Removes the default browser underline */
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 100%;               /* Spans full width to match form fields */
    margin-bottom: 20px;       /* Adds breathing room before the form begins */
    transition: background-color 0.2s;
}

.button-link:hover {
    background-color: var(--accent-hover);
}

.navigation-links {
    width: 100%;
    display: flex;
    justify-content: center;
}
