/*
Theme Name: Excel Theme
Theme URI: https://example.com
Author: Tuan Tien le
Author URI: https://example.com
Description: Theme kết hợp dạng Sàn Đấu Thầu + Excel bảng dữ liệu
Version: 1.0
License: GNU GPL v2 or later
Text Domain: san-excel-theme
*/

/* Reset */
body, html {
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background: #004085;
  color: white;
  padding: 20px 30px;
}
header .site-title {
  font-size: 24px;
  font-weight: bold;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  margin: 10px 0 0 0;
  padding: 0;
}
nav.main-nav li {
  margin-right: 20px;
}
nav.main-nav a {
  color: white;
  text-decoration: none;
}
nav.main-nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Search form */
.search-form {
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.search-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}
.search-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.search-form button:hover { background: #0056b3; }

/* Kết quả */
.result-list { margin-top: 30px; }
.result-item {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Excel Page */
#excelTable {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}
.handsontable th { background: #007bff; color: white; font-weight: bold; }
.handsontable td { background: #fafafa; transition: background 0.2s; }
.handsontable td:hover { background: #e6f7ff; }

/* Footer */
footer {
  background: #f1f1f1;
  padding: 20px 30px;
  text-align: center;
  color: #666;
  margin-top: 40px;
}

/* Header chung */
.site-header {
  background: #0073aa;
  padding: 10px 0;
  color: white;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.site-title a {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

/* Menu chính */
.main-nav {
  margin-left: auto;
}
.main-nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}
.main-nav ul.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.main-nav ul.menu li a:hover {
  text-decoration: underline;
}

/* Auth links */
.auth-links .btn {
  padding: 6px 12px;
  margin-left: 5px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.login-btn { background: #17a2b8; color: white; }
.register-btn { background: #28a745; color: white; }
.logout-btn { background: #dc3545; color: white; }
.login-btn:hover { background: #117a8b; }
.register-btn:hover { background: #1e7e34; }
.logout-btn:hover { background: #a71d2a; }

/* Nút hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul.menu {
    flex-direction: column;
    background: #006799;
    padding: 10px;
    border-radius: 4px;
  }

  .main-nav ul.menu li {
    margin: 5px 0;
  }

  .auth-links {
    width: 100%;
    margin-top: 10px;
  }
}

