/*=============================================================
  GraceGiftCo - styles.css
  Author: David Cowart
  Description:
  This file defines basic layout for GraceGiftCo
  CSIS 410 - Liberty University
============================================================= */

/* 1. RESET DEFAULT BROWSER STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. BODY LAYOUT AND DEFAULT FONT */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3. NAVBAR LAYOUT (Brand | Links | Logo) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #eee;
  padding: 15px 30px;
  border-bottom: 1px solid #ccc;
}

.nav-left .brand {
  font-size: 28px;
  font-weight: bold;
  color: #245990;
}

.nav-center {
  display: flex;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  padding: 10px;
}

.nav-right .logo {
  max-height: 60px;
  width: auto;
  height: auto;
}

/* 4. TAGLINE BELOW NAVBAR */
.site-header {
  text-align: left;
  padding: 10px;
}

.tagline {
  font-size: 16px;
  font-style: italic;
  color: #666;
}

/* 5. MAIN CONTENT */
#main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-box {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 4px;
  max-width: 900px;
  width: 100%;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
}

.employee-photo {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.content-box ul {
  list-style-type: none;
  padding-left: 0;
  width: 100%;
}

.content-box ul li {
  margin-bottom: 10px;
  text-align: left;
  padding-left: 30px;
}

.content-box ul li a {
  color: #245990;
  text-decoration: none;
  font-weight: bold;
}

/* 6. PAGE TITLE */
.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* 7. FOOTER */
#footer {
  background-color: #333;
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 70%;
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.footer-socials img {
  width: 32px;
  height: 32px;
  border: 0;
  transition: transform 0.2s ease;
}

.footer-socials img:hover {
  transform: scale(1.1);
}

.footer-text {
  font-size: 12px;
  color: #cccccc;
  line-height: 1.6;
}

.footer-text img {
  vertical-align: middle;
  margin: 8px;
}

.footer-text p {
  margin: 12px 0;
}

/* 8. FORM INPUT FIELDS AND BUTTONS */
form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

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

input[type="submit"],
button {
  background-color: #245990;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
  background-color: #1a456e;
}

.radio-block label {
  display: block;
  margin-left: 20px;
  margin-bottom: 5px;
}

/* 9. DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed;
}

.data-table th {
  text-align: center;
}

.data-table td {
  text-align: left;
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.data-table th,
.data-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 70%;
}

.data-table th:last-child,
.data-table td:last-child {
  width: 30%;
  text-align: center;
}
.cart-table th,
.cart-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.cart-table th:nth-child(1),
.cart-table td:nth-child(1) {
  width: 50%;
  text-align: left;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
  width: 20%;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
  width: 30%;
}
.data-table th, .data-table td {
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  text-align: center;
  width: 100px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3),
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  text-align: right;
  width: 100px;
}
.product-poll img.product-image {
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* 10. Responsive Footer (Mobile Optimization) */
@media (max-width: 600px) {
  #footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-socials {
    justify-content: center;
    margin-top: 10px;
  }
}


/* 10. Cart */
.checkout-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #245990;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.checkout-btn:hover {
  background-color: #1a456e;
}

/* Align text and fix bunched columns in admin tables */
.data-table th,
.data-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px 14px;
  font-size: 14px;
  vertical-align: middle;
}

/* Admin dashboard tables - specific column widths for improved layout */
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 80px; }    /* Order ID */
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 150px; }  /* Name */
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 200px; }  /* Email */
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 250px; }  /* Address */
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 80px; text-align: right; }  /* Total */
.data-table th:nth-child(6), .data-table td:nth-child(6) { width: 140px; }  /* Date */