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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Clean sans-serif */
    line-height: 1.6;
    background-color: #fff9f7; /* Pale Peach */
    color: #4A4A4A; /* Dark Grey for text */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 85%; /* Slightly wider */
    max-width: 1200px; /* Max width */
    margin: auto;
    overflow: hidden; /* Clears floats */
    padding: 0 20px;
    flex-grow: 1;
}

/* Header & Navigation */
header {
    background: #ffffff; /* White header background */
    color: #4A4A4A;
    padding: 1rem 0;
    border-bottom: 3px solid #f75132; /* Primary Orange accent */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header nav { /* .container class is applied in HTML */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav .logo a {
    color: #f75132; /* Primary Orange for logo */
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #555; /* Dark grey for nav links */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    padding-bottom: 5px; /* Space for border on hover */
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Assuming an 'active' class might be added via JS/PHP */
    color: #f75132; /* Primary Orange for hover/active */
    border-bottom: 2px solid #f75132;
}


/* Main Content Area */
main { /* .container class is applied in HTML */
    padding-top: 30px; /* More space from header */
    padding-bottom: 30px;
    flex-grow: 1;
}

/* Footer */
footer {
    background: #4A4A4A; /* Dark Grey footer */
    color: #fffdf6; /* Off-white text */
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    width: 100%;
}

/* Forms */
form {
    margin-bottom: 25px;
    background: #ffffff; /* White form background */
    padding: 25px;
    border-radius: 8px; /* Softer radius */
    border: 1px solid #e0e0e0; /* Light pastel grey border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* Softer shadow */
}

form div {
    margin-bottom: 18px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555; /* Slightly softer label color */
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form input[type="time"],
form select,
form textarea {
    width: 100%;
    padding: 12px; /* Increased padding */
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 4px;
    font-size: 16px;
    background-color: #fdfdfd; /* Very light off-white for inputs */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="time"]:focus,
form select:focus,
form textarea:focus {
    border-color: #f75132; /* Primary Orange on focus */
    box-shadow: 0 0 8px rgba(247, 81, 50, 0.3); /* Softer, wider shadow */
    outline: none; /* Remove default outline */
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button[type="submit"],
.btn {
    display: inline-block;
    background-color: #f75132; /* Primary Orange */
    color: white;
    padding: 12px 20px; /* Increased padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

form button[type="submit"]:hover,
.btn:hover {
    background-color: #e64a2e; /* Darker shade of orange */
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 8px; /* Rounded corners for table */
    overflow: hidden; /* Ensures border-radius clips th/td */
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
}

table th, table td {
    border: 1px solid #e8e8e8; /* Lighter pastel border */
    padding: 14px; /* Increased padding */
    text-align: left;
}

table th {
    background-color: #ffdab9; /* Peach Puff - pastel orange/peach */
    color: #54381e; /* Dark brown for contrast on peach */
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #fffdf6; /* Very light beige for zebra striping */
}

table tr:hover {
    background-color: #fff0e1; /* Lighter peach on hover */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.2rem;
    color: #d9482d; /* Darker variant of primary orange */
    font-weight: 500; /* Slightly less bold for a softer look */
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.6rem; }

/* Links */
a {
    color: #f75132; /* Primary Orange for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none; /* No underline on hover by default, color change is primary feedback */
    color: #e64a2e; /* Darker orange on hover */
}

/* Utility Classes for Messages */
.message, .error-message, .success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px; /* Softer radius */
    border: 1px solid transparent;
    font-size: 15px;
}

.error-message, p.error-message /* Target generated <p class="error-message"> */ {
    color: #c0392b; /* Darker pastel red text */
    background-color: #fadbd8; /* Lighter pastel red background */
    border-color: #f1c6c2; /* Soft red border */
}

.success-message, p.success-message {
    color: #27ae60; /* Darker pastel green text */
    background-color: #d4efdf; /* Lighter pastel green background */
    border-color: #bde0bd; /* Soft green border */
}

/* For blue info messages, if any were styled with inline CSS */
p[style*="color:blue"] {
    color: #2980b9; /* Darker pastel blue text */
    background-color: #d6eaf8; /* Lighter pastel blue background */
    border: 1px solid #c0dff1; /* Soft blue border */
    padding: 10px;
    border-radius: 4px;
}


/* Specific Nav adjustments from previous version, kept for consistency */
header nav .logo a {
    font-size: 1.8em; /* Adjusted size */
    text-transform: none;
}

/* Card-like appearance for grouped content (can be applied to divs) */
.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Light pastel grey border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Centering content for pages like login, register */
.centered-form-container { /* Renamed from centered-content */
    max-width: 550px; /* Slightly wider for forms */
    margin: 30px auto; /* More margin */
}
/* Forms inside this container won't need their own full shadow if card provides it */
.centered-form-container form {
    box-shadow: none; /* Remove individual form shadow if it's in a card/container that has one */
    border: none; /* Remove individual form border if container provides it */
}


/* Responsive simple table (from previous version, kept for basic responsiveness) */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr { border: 1px solid #ccc; margin-bottom: 10px; border-radius: 0; } /* Simpler border for mobile */
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: left;
        white-space: normal; /* Allow text wrapping */
    }
    td:before { /* This requires data-label attributes in HTML for table cells */
        position: absolute;
        top: 12px; /* Adjust padding */
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }
    header nav {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        margin-top: 10px;
        flex-direction: column;
        width: 100%;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    header nav ul li a {
        display: block; /* Make links take full width for easier tapping */
        padding: 10px;
        background-color: #f8f8f8; /* Light background for tappable area */
        border-radius: 4px;
    }
    header nav ul li a:hover {
        background-color: #f75132;
        color: white;
        border-bottom: none;
    }
}
