/* public/style.css */

/* General Body Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100vh;
  background-color: var(--background);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Drag and Drop Overlay Styles */
#dropOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 123, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s;
}

#dropOverlay.hidden {
  display: none;
}

.drop-message {
  font-size: 2rem;
  color: var(--button-bg);
}

/* Container and Layout */
.container {
  display: flex;
  gap: 20px;
  width: 90%;
  max-width: 1400px;
  padding: 20px;
  background-color: var(--card-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  flex-grow: 1;
}

.left {
  flex: 4; /* 80% */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right {
  flex: 1; /* 20% */
  display: none; /* Hidden initially */
}

/* Card Styling */
.card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

/* Share Link Section Styling */
#shareLinkSection {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.share-link-container {
  display: flex;
  width: 100%;
  gap: 10px;
}

.share-link-container input {
  flex-grow: 1;
  background-color: #f1f1f1;
}

#copyShareLink {
  background-color: #28a745;
}

#copyShareLink:hover {
  background-color: #218838;
}

/* Input Styling */
input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="file"]:focus,
textarea:focus {
  border-color: var(--button-bg);
  outline: none;
}

/* Textarea Specific Styling */
textarea {
  resize: vertical;
  min-height: 150px;
  max-height: 400px;
  font-family: inherit;
}

/* Button Styling */
button {
  cursor: pointer;
  padding: 12px 20px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Special Button Styling */
.leaveRoomBtn {
  background-color: #dc3545;
}

.leaveRoomBtn:hover {
  background-color: #c82333;
}

/* Destroy Room Button Styling */
#destroyRoomBtn {
  background-color: #dc3545;
  margin-top: 15px;
}

#destroyRoomBtn:hover {
  background-color: #c82333;
}

/* Hidden Section Styling */
.hidden {
  display: none; /* To hide sections */
}

/* Theme Toggle Button */
#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#themeToggle:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
}

#themeToggle:active {
  transform: translateY(0);
}

/* Theme Colors */
:root {
  --background: #f4f4f4;
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-color: #cccccc;
  --button-bg: #007bff;
  --button-hover-bg: #0056b3;
  --button-text: #ffffff;
  --input-bg: #ffffff;
}

:root.dark {
  --background: #1e1e1e;
  --card-bg: #2c2c2c;
  --text-color: #ffffff;
  --border-color: #555555;
  --button-bg: #1a73e8;
  --button-hover-bg: #1669c1;
  --button-text: #ffffff;
  --input-bg: #3c3c3c;
}

/* File List Styling */
#files {
  list-style-type: none;
  padding: 0;
}

#files li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

#files li a {
  color: var(--button-bg);
  text-decoration: none;
  flex-grow: 1;
}

#files li a:hover {
  text-decoration: underline;
}

#files li button {
  margin-left: 15px;
  background-color: #dc3545;
}

#files li button:hover {
  background-color: #c82333;
}
