
/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  color: #ffffff;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Button Styles */
.button {
  background-color: #0066ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
}

.button:hover {
  background-color: #0055d4;
}

.button.secondary {
  background-color: #333;
  color: white;
}

.button.secondary:hover {
  background-color: #555;
}

/* Auth Page Styles */
.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: #1a1a1a;
  justify-content: center;
}

.auth-info {
  flex: 1;
  background-color: #0066ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.auth-info h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.tab-container {
  display: flex;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px;
  background-color: transparent;
  color: #999;
  border: none;
  border-bottom: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s;
}

.tab.active {
  color: white;
  border-bottom: 2px solid #0066ff;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 14px;
  color: #ccc;
}

.input-group input {
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: #222;
  color: white;
}

.error {
  color: #ff4d4d;
  font-size: 14px;
  min-height: 20px;
}

.forgot-password {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.forgot-password a {
  color: #0066ff;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Navigation Bar Styles */
nav {
  background-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-logo {
  width: 30px;
  height: 30px;
}

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

.nav-link, .nav-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  text-decoration: none;
  color: #ccc;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  background-color: #333;
  color: white;
}

.nav-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #ccc;
}

.nav-button:hover {
  background-color: #333;
  color: white;
}

/* Main Content Styles */
main {
  flex: 1;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-section {
  padding: 20px 0;
}

/* Monitor Page Styles */
.monitor-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}


/* Center the button container */
.button-container {
  display: flex;
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically */
  height: 100vh;             /* Full viewport height */
}


/* Style for the button */
.button-container button {
  background-color: #00c853;
  color: white;
  font-size: 1.1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 200, 83, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button-container button:hover {
  background-color: #009624;
  box-shadow: 0 6px 12px rgba(0, 150, 36, 0.6);
}

.button-container button:active {
  background-color: #006400;
  box-shadow: none;
}


.email-notification-form {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.email-notification-form h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4d4d;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.camera-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.alerts-panel {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
}

.alerts-panel h2 {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-item {
  background-color: #222;
  border-radius: 6px;
  padding: 15px;
  border-left: 4px solid #ff4d4d;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.alert-title {
  font-weight: bold;
  color: #ff4d4d;
}

.alert-message {
  margin-bottom: 5px;
  color: #ccc;
}

.alert-time {
  font-size: 12px;
  color: #888;
}

/* About Page Styles */
.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.about-logo {
  width: 50px;
  height: 50px;
}

.about-content p {
  line-height: 1.6;
  margin-bottom: 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: #ccc;
  font-size: 14px;
}

/* Team Page Styles */
.team-container {
  text-align: center;
  padding: 20px;
}

.team-container h1 {
  margin-bottom: 40px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: auto;
  display: block;
}

.team-member h3 {
  margin: 15px 0 5px;
}

.team-member p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 13px;
  padding: 0 10px;
  line-height: 1.4;
  height: auto;
  overflow: hidden;
}

/* Products Page Styles */
.products-container {
  padding: 20px;
}

.products-container h1 {
  margin-bottom: 30px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
}

.product-image img {
  max-width: 50%;
  max-height: 50%;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info p {
  color: #ccc;
  margin-bottom: 15px;
  min-height: 40px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #0066ff;
}

.cart-container {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
}

.cart-container h2 {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.cart-items {
  margin-bottom: 20px;
  min-height: 100px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.cart-item-name {
  flex: 2;
}

.cart-item-price {
  flex: 1;
  text-align: right;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background-color: #333;
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-remove {
  background-color: transparent;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  margin-left: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-top: 10px;
  border-top: 1px solid #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  
  .monitor-container {
    grid-template-columns: 1fr;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}
