
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  /*height: 100%;*/
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.logo i {
  color: #007bff;
  font-size: 26px;
}

.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
  position: relative;
  min-width: 0;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 25px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  font-size: 15px;
}

.search-box i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: #f97316;
}

.cart {
  font-size: 18px;
  cursor: pointer;
}

/* Messages */
.header+div[style*="color: red"] {
  margin: 10px 40px;
}

.header+div[style*="color: green"] {
  margin: 10px 40px;
}

main {
  flex: 1;
  padding: 30px 20px;
  background: #fff;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  min-height: 60vh;
}

.container {
  min-width: 500px;
}

.container-standard {
  margin: 10px auto;
  padding: 0 20px;
  max-width: 1200px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

form {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

button {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

button:hover {
  background-color: #0056b3;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger,
.btn-red {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover,
.btn-red:hover {
  background-color: #c82333;
}

.btn-delete {
  background-color: #b02a37;
  color: white;
  border: 1px solid #a02632;
}

.btn-delete:hover {
  background-color: #8b1f2a;
  border-color: #7a1c24;
}

.btn-warning,
.btn-yellow {
  background-color: #ffc107;
  color: #212529;
}

.btn-warning:hover,
.btn-yellow:hover {
  background-color: #e0a800;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-light {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

.btn-light:hover {
  background-color: #e2e6ea;
}

.btn-dark {
  background-color: #343a40;
  color: white;
}

.btn-dark:hover {
  background-color: #23272b;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: #007bff;
  color: white;
}

.badge-secondary {
  background-color: #6c757d;
  color: white;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-danger {
  background-color: #dc3545;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.badge-light {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #dee2e6;
}

.badge-dark {
  background-color: #343a40;
  color: white;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
  min-width: 450px;
  margin: 0 auto;
}

.card-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 24px;
  text-align: center;
  position: relative;
}

.card-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card-body {
  padding: 32px;
}

.card-footer {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.actions .btn {
  margin: 5px;
}

.actions .btn:first-child {
  margin-left: 0;
}

.actions .btn:last-child {
  margin-right: 0;
}

/* Responsive button spacing */
@media (max-width: 480px) {
  .actions .btn {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
}

.profile-info {
  margin-bottom: 20px;
}

.profile-info p {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.5;
}

.profile-info strong {
  color: #333;
  font-weight: 600;
  min-width: 120px;
  display: inline-block;
}

.profile-photo {
  text-align: center;
  margin: 20px 0;
}

.profile-photo img {
  border-radius: 8px;
  border: 3px solid #e0e0e0;
  max-width: 150px;
  height: auto;
}

.dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-menu li {
  margin: 15px 0;
}

.dashboard-menu a {
  display: block;
  padding: 18px 24px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dashboard-menu a:hover {
  background: #f97316;
  color: white;
  border-color: #f97316;
}

.dashboard-welcome {
  text-align: center;
  margin-bottom: 35px;
  color: #495057;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.9;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #007bff;
}

table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

table tbody tr:hover {
  background-color: #e8f4fd;
}

.status-active {
  color: #28a745;
  font-weight: 600;
}

.status-blocked {
  color: #dc3545;
  font-weight: 600;
}

.drop-zone {
  border: 2px dashed #ddd;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 6px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.drop-zone.dragover {
  border-color: #007bff;
  background-color: #e8f4fd;
}

.drop-zone p {
  margin: 0;
  font-size: 16px;
}

footer {
  flex-shrink: 0;
  background-color: #333;
  color: #ffffff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  flex: 1 1 250px;
  margin-bottom: 20px;
}

.footer-left h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  margin-bottom: 15px;
}

.social-icons a {
  margin-right: 10px;
  display: inline-block;
  color: #fff;
}

.footer-links {
  display: flex;
  flex: 2 1 500px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.newsletter form {
  display: flex;
  flex-direction: column;
}

.newsletter input[type="email"] {
  padding: 8px;
  margin-bottom: 10px;
  border: none;
  border-radius: 4px;
}

.newsletter button {
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: #e65c00;
}

.footer-contact {
  flex: 1 1 250px;
  /*margin-top: 20px;*/
  font-size: 14px;
  margin-left: 40px;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid #444;
  padding-top: 15px;
}

.policy-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 8px;
}

.policy-links a:hover {
  text-decoration: underline;
}

#login-form .btn-primary,
#registration-form .btn-success,
.card-footer .btn-primary,
#upload-form .btn-primary,
.member-list-search-form .btn-primary,
button[type="submit"].btn-primary {
  background-color: #f97316;
}

#login-form .btn-primary:hover,
#registration-form .btn-success:hover,
.card-footer .btn-primary:hover,
#upload-form .btn-primary:hover,
.member-list-search-form .btn-primary:hover,
button[type="submit"].btn-primary:hover {
  background-color: #f95616;
}

h2.form-title {
  text-align: center;
}

.card-header {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.82), #f97316);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .logo i {
    font-size: 20px;
  }

  .search-box {
    order: 3;
    width: 100%;
    margin: 0;
    max-width: 100%;
  }

  .search-box input {
    padding: 10px 35px 10px 12px;
    font-size: 14px;
  }

  .nav {
    order: 2;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .cart {
    order: 4;
  }

  main {
    margin: 10px;
    padding: 20px 15px;
  }

  .footer-contact {
    margin-left: unset;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
  }

  .logo {
    font-size: 16px;
    gap: 6px;
  }

  .logo i {
    font-size: 18px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    font-size: 13px;
    padding: 4px 6px;
  }

  .search-box input {
    padding: 8px 30px 8px 10px;
    font-size: 13px;
  }

  main {
    margin: 5px;
    padding: 15px 10px;
  }
}

/* Panel Layout Styles */
.panel-dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: #2c2c2c;
  color: #fff;
  padding: 20px;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.sidebar .logo i {
  font-size: 24px;
  color: #f97316;
}

.sidebar nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 500;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: #f97316;
}

.panel-main-content {
  flex: 1;
  padding: 30px;
  background: #f9f9f9;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top-bar h1 {
  font-size: 24px;
  color: #111;
}

.panel-user {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.product-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-controls input {
  flex: 1;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #f3f4f6;
  font-size: 15px;
  margin-right: 20px;
}

.control-buttons button {
  padding: 10px 16px;
  border: none;
  border-radius: 30px;
  background-color: #f97316;
  color: white;
  font-weight: 500;
  cursor: pointer;
  margin-left: 10px;
}

.control-buttons button:hover {
  background-color: #e65c00;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.product-table th,
.product-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.product-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.product-table td img {
  border-radius: 6px;
}

.product-table td button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}

.pages button {
  padding: 6px 12px;
  margin-right: 6px;
  border: none;
  border-radius: 20px;
  background-color: #f97316;
  color: white;
  cursor: pointer;
}

.pages button:hover {
  background-color: #e65c00;
}

.add-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.add-form h2 {
  margin-bottom: 15px;
}

.add-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.add-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background-color: #f97316;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

.add-form button:hover {
  background-color: #e65c00;
}

.drop-zone {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  transition: border-color 0.3s;
}

.drop-zone:hover {
  border-color: #007bff;
  color: #007bff;
}

.two-col {
  display: flex;
  gap: 40px;
}

.two-col>div {
  flex: 1;
}

.two-col-row {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
}

.form-col {
  flex: 1;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.alert-danger {
  background-color: #fdecea;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-danger ul {
  margin: 0;
  padding-left: 18px;
}

.alert-danger li {
  line-height: 1.5;
}

@media (max-width: 768px) {
  .profile-info.two-col {
    flex-direction: column;
    gap: 16px;
  }

  .two-col-row {
    flex-direction: column;
  }
}

.about-container {
  margin: 0;
  padding: 50px 20px;
  flex: 1;
  width: 100%;
  overflow-x: hidden;
}

.banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.banner-overlay h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-overlay p {
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Content Section */
.about-content {
  padding: 60px 0;
}

.about-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
  padding: 30px 20px;
  background: #fff7ed;
  border-radius: 8px;
}

/* Two Column Layout */
.about-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.about-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-right {
  flex: 1;
  min-width: 0;
}

.furniture-video {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.why-choose-heading {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.about-paragraph {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
  text-align: justify;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  padding: 14px 32px;
  border-radius: 80px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-section {
    gap: 50px;
  }

  .banner-overlay h1 {
    font-size: 36px;
  }

  .banner-overlay p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 18px;
  }

  .logo i {
    font-size: 22px;
  }

  .search-box {
    max-width: 200px;
    margin: 0 16px;
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .nav a {
    font-size: 12px;
  }

  .about-container {
    margin: 0;
    padding: 30px 16px;
  }

  .about-heading {
    margin-top: 40px;
  }

  .banner {
    height: 250px;
    margin: 0;
  }

  .about-heading {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .about-section {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 100%;
    width: 100%;
  }

  .about-left {
    width: 100%;
    flex: none !important;
  }

  .furniture-video {
    width: 100%;
    height: auto;
  }

  .why-choose-heading {
    font-size: 22px;
  }

  .about-paragraph {
    font-size: 14px;
    line-height: 1.7;
  }

  .banner-overlay h1 {
    font-size: 28px;
  }

  .banner-overlay p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  * {
    max-width: 100vw;
  }

  html,
  body {
    overflow-x: hidden;
    width: 100vw;
  }

  .header {
    padding: 10px 12px;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    gap: 5px;
  }

  .logo i {
    font-size: 18px;
  }

  .search-box {
    max-width: none;
    margin: 0;
    display: none;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 11px;
  }

  .about-container {
    margin: 0;
    padding: 20px 12px;
    width: 100%;
    max-width: 100vw;
  }

  .about-heading {
    margin-top: 30px;
  }

  .banner {
    height: 200px;
    margin: 0;
  }

  .about-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .about-section {
    flex-direction: column;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
  }

  .about-left {
    width: 100% !important;
    flex: none !important;
    max-width: 100vw !important;
  }

  .furniture-video {
    width: 100%;
    height: auto;
    max-width: 100vw;
  }

  .why-choose-heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .about-paragraph {
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 16px;
  }

  .banner-overlay h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .banner-overlay p {
    font-size: 14px;
  }

  .badge {
    padding: 10px 20px;
    font-size: 14px;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 15px;
  }
}