
html {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fffaf0;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.6;
   
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto; 
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    /* This makes the white container grow to fill any available space */
    flex-grow: 1; 
}

/*HEADER AND LOGO STYLES*/
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5%;
    background-color: #d4a373;
    color: white;
    border-bottom: 5px solid #af855a;
}

.logo {
    max-height: 80px;
    margin-right: 10px;
}

.header-text {
    text-align: center;
}

.header-text h1, .header-text p {
    margin: 0;
}

/*NAVIGATION BAR*/
nav {
    background: #3a3a3a;
    text-align: center;
    padding: 12px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

/*HEADINGS AND GRIDS*/
h2 {
    color: #af855a;
    border-bottom: 2px solid #f0e6d2;
    padding-bottom: 10px;
    margin-top: 0;
}

h5 {
    font-size: 1.1em;
    color: #af855a;    
    padding-bottom: 10px;
    margin-top: 0;    
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px; 
    margin-top: 20px;
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/*PRODUCT CARDS*/
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
}

.specials-grid .product-card img {
    height: 280px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.1em; 
    margin: 10px 10px 5px;
    color: #af855a;
}

.product-card .description {
    font-size: 0.85em;
    color: #666;
    padding: 0 10px 10px;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    padding: 10px;
    background: #f9f9f9;
}

.product-card .price.special span {
    color: #c0392b;
    display: block;
}

.product-card .price.special del {
    font-size: 0.7em;
    color: #999;
    font-weight: normal;
}

/*FORMS AND TABLES*/
form {
    margin-top: 20px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="email"],
form textarea {
    width: 100%;
    box-sizing: border-box; 
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form input[type="submit"] {
    background-color: #af855a;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #8c6b4a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
th {
    background-color: #d4a373;
    color: white;
}
.sortable-header a {
    color: white;
    text-decoration: none;
    display: block;
    position: relative;
    padding-right: 20px;
}
.sortable-header a:hover { text-decoration: underline; }
.sortable-header a::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
}
.sortable-header a.sort-none::after {
    border-top-color: #ffffff99;
    border-bottom-color: #ffffff99;
}
.sortable-header a.sort-asc::after { border-bottom-color: white; }
.sortable-header a.sort-desc::after { border-top-color: white; }

/*FEEDBACK ITEM STYLE*/
.feedback-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}
.feedback-item p { margin: 0 0 10px 0; }
.feedback-item p:last-child { margin-bottom: 0; }
.feedback-item .meta {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

/*BUTTONS AND MESSAGES*/
.btn {
    display: inline-block;
    padding: 10px 18px;
    margin-top: 15px;
    margin-bottom: 10px;
    background-color: #af855a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #8c6b4a;
    color: white;
}
.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.error, .success {
    border: 1px solid;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
.error {
    color: #D8000C;
    background-color: #FFD2D2;
}
.success {
    color: #4F8A10;
    background-color: #DFF2BF;
}

/*DASHBOARD BUTTONS*/
.dashboard-links ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
}

.dashboard-links li {
    margin-bottom: 0;
}

.dashboard-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 25px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-links a:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.dashboard-links a strong {
    display: block;
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #343a40;
}

.dashboard-links a span {
    font-size: 0.95em;
    color: #6c757d;
}

/*SEARCH FORM STYLES*/
.search-form {
    display: flex;
    margin-bottom: 25px;
    border: none;
    padding: 0;
}

.search-form input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
    margin-bottom: 0;
}

.search-form input[type="submit"] {
    margin-top: 0;
    white-space: nowrap;
}
