/* /home7/aappbuil/public_html/addons/visitor_tracker_system/admin/assets/css/admin_styles.css */
/* UPDATED: Fixed centered header and working marquee footer - v2 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #cce7ff;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.header-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #3498db;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-backdrop h1 {
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.header-title {
  text-align: center;
  margin: 20px 0;
  color: #2c3e50;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(65vh - 200px);
  margin-top: 80px;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  width: 320px;
}

input,
button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 1em;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 220px;
  height: calc(100vh - 120px);
  background: #2980b9;
  padding: 20px 0;
  overflow-y: auto;
  z-index: 999;
}

.sidebar a {
  display: block;
  text-align: center;
  margin: 10px 15px;
  padding: 10px;
  background: #3498db;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.sidebar a:hover {
  background: #1abc9c;
}

.logout-link {
  margin-top: 30px;
}

.main-content {
  position: fixed;
  top: 80px;
  left: 220px;
  right: 0;
  bottom: 40px;
  padding: 20px;
  background: #cce7ff;
  overflow: auto;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.marquee-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #222222;
  overflow: hidden;
  z-index: 1000;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;
  font-size: 20px;
  font-weight: normal;
  padding-left: 100%;
  animation: marquee-left 15s linear infinite;
  line-height: 40px;
  font-family: Arial, sans-serif;
}

.marquee-link {
  color: #ffffff;
  text-decoration: underline;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}