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

body {
  background-color: #333333;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}

a { color: #000; }

/* === Site Wrapper (1000px fixed width, centered) === */
.site-wrapper {
  width: 1000px;
  margin: 0 auto;
}

/* === Banner === */
.banner-row {
  width: 1000px;
  min-height: 156px;
  background-repeat: no-repeat;
  background-size: 1000px auto;
}

.banner-row img {
  display: block;
}

.marquee-row {
  display: flex;
  align-items: center;
  height: 35px;
}

.marquee-pad-left { width: 59px; }
.marquee-pad-right { width: 27px; }
.marquee-content { flex: 1; }

.marquee-text {
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

/* === Sub-header === */
.subheader-row {
  width: 1000px;
  height: 64px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: 1000px auto;
}

.subheader-title {
  width: 255px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.subheader-desc {
  flex: 1;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  padding-top: 27px;
}

/* === Main Content === */
.main-content {
  width: 1000px;
  min-height: 400px;
  background-repeat: repeat-y;
  background-size: 1000px auto;
  padding: 10px 31px;
}

/* === Footer === */
.footer-row {
  width: 1000px;
  height: 71px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: 1000px auto;
  padding-bottom: 15px;
}

.footer-text {
  color: #FFFFFF;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-align: center;
}

/* === Car Plates Table === */
.plates-table {
  width: 838px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid #C0C0C0;
}

.plates-table th {
  height: 17px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #333333;
  background-color: #C0C0C0;
  border: 1px solid #C0C0C0;
}

.plates-table th.col-plate {
  width: 93px;
  background-image: url('/images/title1.gif');
  background-size: cover;
}

.plates-table th.col-price {
  width: 106px;
  background-image: url('/images/title2.gif');
  background-size: cover;
}

.plates-table td {
  height: 22px;
  text-align: center;
  border: 1px solid #C0C0C0;
  background-color: #C0C0C0;
}

.plates-table td.plate-cell {
  width: 93px;
  font-size: 15px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}

.plates-table td.plate-cell.row-even {
  background-image: url('/images/pic1.gif');
  background-size: cover;
}

.plates-table td.plate-cell.row-odd {
  background-image: url('/images/pic2.gif');
  background-size: cover;
}

.plates-table td.price-cell {
  width: 106px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
}

.plates-table td.price-cell.sold {
  background-image: url('/images/full.gif');
  background-size: cover;
}

.price-inner {
  display: flex;
  align-items: center;
}

.price-dollar {
  width: 28%;
  text-align: right;
}

.price-amount {
  width: 60%;
  text-align: right;
}

.price-spacer {
  width: 12%;
}

/* === Pagination === */
.pagination {
  text-align: center;
  padding: 8px 0;
}

.pagination a, .pagination span {
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 2px 6px;
  color: #000;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination .current-page {
  color: #CC0000;
  font-weight: bold;
}

.pagination .nav-arrow {
  font-weight: bold;
}

/* === Content Pages === */
.content-page {
  padding: 20px;
  color: #FFFFFF;
}

.content-page h1 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFCC00;
}

.content-page p, .content-page div {
  font-size: 14px;
  line-height: 1.6;
}

/* === Company Links Table === */
.links-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.links-table th {
  background-color: #FFCC00;
  padding: 8px;
  text-align: center;
  font-weight: bold;
}

.links-table td {
  padding: 8px;
  border: 1px solid #999;
  background-color: #EEE;
}

/* === Index Page (Homepage) === */
.index-card {
  width: 1000px;
  height: 460px;
  background-image: url('/images/card01.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.featured-numbers {
  position: absolute;
  right: 99px;
  top: 0;
  width: 294px;
  height: 460px;
}

.featured-slot {
  text-align: center;
  font-size: 16px;
  font-weight: bolder;
  font-family: Arial, Helvetica, sans-serif;
}

/* Featured number positioning (matching original layout) */
.feat-1 { margin-top: 96px; margin-left: 96px; width: 148px; }
.feat-2 { margin-top: 18px; margin-left: 44px; width: 153px; }
.feat-3 { margin-top: 18px; margin-left: 102px; width: 151px; }
.feat-4 { margin-top: 16px; margin-left: 76px; width: 151px; }
.feat-5 { margin-top: 23px; margin-left: 32px; width: 151px; }
.feat-6 { margin-top: 18px; margin-left: 107px; width: 149px; }

.index-bottom {
  height: 16px;
  background-image: url('/images/index_03.gif');
  background-size: 1000px auto;
}

/* Subheader for index page */
.index-subheader {
  display: flex;
  height: 64px;
}

.index-subheader-left {
  width: 257px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.index-subheader-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
  color: #FFFFFF;
}

/* === Download Page === */
.download-list {
  list-style: none;
  padding: 10px 0;
}

.download-list li {
  padding: 8px 0;
}

.download-list a {
  color: #FFCC00;
  text-decoration: underline;
  font-size: 14px;
}

.download-list a:hover {
  color: #FFFFFF;
}

/* === Discount Popup === */
.popup-body {
  background-image: url('/images/bg_pop.gif');
  background-repeat: no-repeat;
  padding: 30px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

/* ========================================= */
/* ADMIN STYLES                              */
/* ========================================= */

.admin-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  min-height: 100vh;
}

.admin-header {
  background: #FFCC00;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.admin-header h1 {
  font-size: 18px;
  margin: 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 15px;
  background: #eee;
  padding: 5px;
}

.admin-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #FFCC00;
  text-decoration: none;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #ccc;
}

.admin-nav a:hover {
  background: #FFE066;
}

.admin-nav a.nav-list {
  background: #CCCCCC;
}

.admin-nav a.nav-web {
  background: #9999FF;
  color: #fff;
}

.admin-nav a.nav-print {
  background: #CC3300;
  color: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.admin-table th {
  background: #FFCC00;
  padding: 8px;
  text-align: left;
  font-size: 13px;
  border: 1px solid #ccc;
}

.admin-table td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.admin-table tr:nth-child(even) {
  background: #f9f9f9;
}

.admin-form {
  max-width: 600px;
  margin-bottom: 20px;
}

.admin-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 13px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 6px 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
}

.admin-form textarea {
  height: 200px;
}

.admin-form button, .btn {
  display: inline-block;
  padding: 8px 20px;
  margin-top: 12px;
  background: #FFCC00;
  border: 1px solid #ccc;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.admin-form button:hover, .btn:hover {
  background: #FFE066;
}

.btn-danger {
  background: #cc3333;
  color: #fff;
}

.btn-danger:hover {
  background: #ff4444;
}

.admin-pagination {
  text-align: center;
  padding: 10px 0;
}

.admin-pagination a, .admin-pagination span {
  padding: 4px 10px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #ccc;
}

.admin-pagination .current {
  background: #FFCC00;
  font-weight: bold;
}

.login-wrapper {
  max-width: 350px;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #ccc;
}

.login-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-error {
  color: red;
  text-align: center;
  margin-bottom: 10px;
}

.msg-success {
  color: green;
  padding: 8px;
  background: #e6ffe6;
  border: 1px solid green;
  margin-bottom: 10px;
}
