/* styles.css */

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f8fa;
  color: #333;
  height: 100%;
  margin: 0;
  padding: 0;
}

.dashboard-main container {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minman(0, 1fr);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header & Footer */
header, footer {
  background-color: #0072ff;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  
}

header h1, footer p {
  margin: 0;
}

/* Navigation */
.nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #0072ff;
  background: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background: #e0e0e0;
}

/* Cards (used in registration, login, settings) */
.card {
  background: #fff;
  border: none;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  margin-top: 30px;
}

/* Forms */
form label {
  font-weight: bold;
}

form .form-control {
  border-radius: 5px;
  padding: 10px;
}

/* Buttons */
.btn {
  border-radius: 5px;
  transition: background 0.3s ease;
}
.btn-primary {
  background-color: #0072ff;
  border: none;
}
.btn-primary:hover {
  background-color: #005bb5;
}

/* Registration / Login specific */
.register-body, .login-body {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Dashboard */
.dashboard-main {
  padding: 20px;
  text-align: center;
}

/* Chat Page */
#video-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

video {
  width: 100%;
  max-width: 480px;
  border: 2px solid #0072ff;
  border-radius: 10px;
}

#chat-box {
  width: 100%;
  max-width: 700px;
  height: 250px;
  margin: 0 auto;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#message-form {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  display: flex;
}

#message-form input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

#message-form button {
  padding: 10px 20px;
  border: 1px solid #0072ff;
  background: #0072ff;
  color: #fff;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#message-form button:hover {
  background: #005bb5;
}

.message {
  margin-bottom: 10px;
}
.sender {
  font-weight: bold;
  color: #0072ff;
}
.time {
  font-size: 0.85em;
  color: #999;
}

/* Settings Page */
.settings-form {
  max-width: 600px;
  margin: 0 auto;
}

.matching-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
}

.matching-container {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 90%;
}

.matching-container h2 {
  font-size: 2em;
  color: #0072ff;
  margin-bottom: 15px;
}

#status {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
  animation: fadePulse 2s ease-in-out infinite;
}

@keyframes fadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#cancelBtn {
  background-color: #ff4d4f;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cancelBtn:hover {
  background-color: #d9363e;
}


/* Responsive */
@media (max-width: 768px) {
  #video-section {
    flex-direction: column;
  }
  #chat-box {
    height: 200px;
  }
}
