/*
 * style.css
 *
 * This stylesheet defines the look and feel of the TRBL operations
 * dashboard. Colours and typography are chosen to reflect a modern,
 * light–orange theme with plenty of white space for a clean user
 * experience. Feel free to adjust variables as needed to match your
 * corporate branding.
 */

/* CSS variables for consistent theming */
:root {
    --primary-colour: #f5a623; /* light orange */
    --secondary-colour: #ffffff; /* white */
    --accent-colour: #333333; /* near black for text */
    --light-grey: #f7f7f7;
    --border-radius: 6px;
    --transition: 0.3s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--light-grey);
    color: var(--accent-colour);
}

/* Navigation bar */
.navbar {
    background-color: var(--secondary-colour);
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-colour);
    flex: 1;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin-left: 1rem;
}

.navbar a {
    text-decoration: none;
    color: var(--accent-colour);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition);
}

.navbar a:hover, .navbar a.active {
    background-color: var(--primary-colour);
    color: var(--secondary-colour);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background-color: var(--secondary-colour);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin-bottom: 0.5rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0.25rem 0;
}

/* Form styles */
form {
    background-color: var(--secondary-colour);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="file"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    margin-bottom: 1rem;
}

button, input[type="submit"] {
    background-color: var(--primary-colour);
    color: var(--secondary-colour);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition);
}

button:hover, input[type="submit"]:hover {
    background-color: #e59417; /* slightly darker orange */
}

.error {
    color: #d9534f;
    margin-bottom: 1rem;
}

.success {
    color: #28a745;
    margin-bottom: 1rem;
}

/* Grid layout for items and designs */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}