:root {
    --color-faculty: #27AE60;
    --color-purchasing: #E67E22;
    --color-others: #BE44AD;
    --color-bg: #F4F6F7;
    --color-text: #2C3E50;
    --color-card-bg: #FFFFFF;
    --login-color-bg: #F4F6F7;
    --color-border: transparent;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 40px 20px;
    border: 0px
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #95A5A6;
    font-size: 0.9rem;
}

.container {
    max-width: 900px; /* Adjusted max-width, less columns needed */
    margin: auto;
    margin-bottom: 24px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Still good practice for very long names or many columns */
}

#s-container {
    margin-top: 10px;
    background-color: var(--color-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: left;
}

.hb-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}


h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
h3 {
    text-align: left;
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
    background-color: #35e17d;
    text-indent: 10px;
    border-radius: 8p
}
.add-user-btn {
    display: inline-block;
    background-color: #27c04a; /* Green for add */
    color: white;
    padding: 10px 15px;
    border: 0; /* Changed from none to 0 to explicitly reset button borders */
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 0px;
    transition: background-color 0.3s ease;
    /* CRITICAL ADDITIONS FOR MATCHING SIZES */
    box-sizing: border-box; /* Includes padding in width/height calculations */
    font-family: inherit; /* Forces button to use the page font instead of system font */
    line-height: 1.2; /* Standardizes the vertical text height */
    text-align: center; /* Centers text horizontally if they expand */
    cursor: pointer; /* Makes the button show a pointer hand like the link */
}

    .add-user-btn:hover {
        background-color: #218838;
    }
/* Dual-Logo Navigation Header System */
header {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    /* padding: 15px 30px; */
    margin-bottom: 0px;
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.05); */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    header h1 {
        font-size: 2.0rem;
        color: var(--color-text);
        margin-top: 10px;
        margin-bottom: 10px;
    }

    header p {
        color: #7F8C8D;
        font-size: 1.1rem;
    }

/* Right side: Engineering / Robotics group identifier icon */
.header-right {
    display: flex;
    flex-direction: column; /* Places user meta text directly under the logo element */
    align-items: center;
    gap: 6px; /* Control tight spacing between team logo and metadata string */
}


.logo-team {
    height: 65px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    display: block;
    background-color: black;
    border-radius: 10px;
}

/* Left side: Purchasing Department branding dimensions managed strictly */
.header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
}


.logo-purchasing {
    width: 343px;
    height: 61px;
    object-fit: contain;
    display: block;
    background-color: #EAECEE; /* Placeholder tint if asset drops */
    border-radius: 4px;
}
/* New User profile meta link text typography configuration instructions */
.user-meta-bar {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: #7F8C8D; /* Neutral gray base accent */
    font-weight: 500;
}

.user-profile-link {
    color: #2980B9; /* Contrasting workspace blue theme accent color */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s ease-in-out;
}

    /* Highlight user interactions elegantly */
    .user-profile-link:hover {
        color: #C0392B; /* Changes to administrative alert red to warn of the logout action */
        border-bottom: 1px solid #C0392B;
    }


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 600px; /* Smaller min-width as fewer columns */
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    word-break: break-word; /* Prevent long strings from breaking layout */
}

th {
    background-color: #27AE60;
    font-weight: bold;
    color: #333;
}

tr:nth-child(even) {
    background-color: #e8ebeb;
}

tr:hover {
    background-color: #caf885;
}

.actions a {
    margin-right: 10px;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
}

    .actions a:hover {
        text-decoration: underline;
    }

.actions .edit {
    color: #ffc107; /* Yellow for edit */
}

.actions .delete {
    color: #dc3545; /* Red for delete */
}

.actions .edit:hover {
    color: #d39e00;
}

.actions .delete:hover {
    color: #c82333;
}

.no-users {
    text-align: center;
    color: #666;
    padding: 30px;
}

.status-active {
    color: green;
    font-weight: bold;
}

.status-inactive {
    color: orange;
    font-weight: bold;
}

.status-pending {
    color: gray;
    font-weight: bold;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    th, td {
        padding: 8px;
        font-size: 12px; /* Smaller font on small screens */
    }

    .add-user-btn {
        width: 100%;
        text-align: center;
    }

    .actions a {
        display: inline-block; /* Keep actions on one line if possible */
        margin-bottom: 5px;
        margin-right: 5px;
    }

    table {
        min-width: auto; /* Allow table to shrink */
    }
}
/* Style for the initial hidden state of the form container */
.hidden {
    display: none;
}
