/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Login Page */
#loginPage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #f2f2f2;
}

#loginForm {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 300px;
}

#loginForm input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

#loginForm button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* Dashboard Layout */
#dashboard {
  display: none;
  height: 100%;
}

#mainContainer {
  display: flex;
  height: 100%;
  transition: all 0.3s ease;
}

#videoContainer {
  flex: 1;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.3s ease;
}

#videoContainer iframe, #videoContainer #player {
  width: 100%;
  height: 100%;
}

#rightContainer {
  width: 30%;
  display: flex;
  flex-direction: column;
  background: #eaeaea;
  transition: width 0.3s ease;
}

.panel {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  overflow: auto;
  transition: max-height 0.3s ease, padding 0.3s ease;
  max-height: 300px;
}

.panel h3 {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-button {
  background: #007BFF;
  border: none;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

/* Collapsed state for panels */
.collapsed {
  max-height: 0;
  padding: 0 10px;
  border: none;
  opacity: 0;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  #mainContainer {
    flex-direction: column;
  }
  #rightContainer {
    width: 100%;
    flex-direction: row;
  }
  .panel {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid #ccc;
  }
}