/* 
 * Global Styles and CSS Reset 
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --accent-color: #f39c12;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --muted-color: #7f8c8d;
    --radius: 10px;
    --font-family: 'Poppins', sans-serif;
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --text-color: #333;
  --text-light: #666;
  --background-color: #f5f5f5;
  --border-color: #ddd;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
  
/* Main Content */
  #Rmain {
    padding: 2rem 5%;
  }

  /* Form Styles */
  #Rform {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .Rinput,
  select,
  textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: var(--font-family);
    transition: border 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Focus and hover effects for form inputs */
  .Rinput:hover,
  select:hover,
  textarea:hover,
  input:focus,
  select:focus,
  textarea:focus {
    border: 1px solid #e74c3c; /* Red border on hover/focus */
    outline: none;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); /* Red shadow */
  }
  
  button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: none;
    transition: background-color 0.3s ease;
  }
  
  button[type="submit"]#regular {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  }


button[type="submit"]#regular:hover {
  text-decoration: none;
  transform: translateY(-2px);
}



  /* Button hover effect */
  button[type="submit"]:hover {
    background-color: #d35400; /* Darker on hover */
  }
  
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

main {
  flex: 1;
}

/* 
 * Header & Navigation 
 */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: var(--text-color);
  padding: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

/* 
 * Footer 
 */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: auto;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

/* 
 * Form Elements 
 */
.auth-form, .settings-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-actions {
  margin-top: 2rem;
}

.form-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* 
 * Buttons 
 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--white);
}

.secondary-btn:hover {
  background-color: var(--secondary-dark);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* 
 * Flash Messages 
 */
.flash-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  position: relative;
  animation: slideDown 0.3s ease-in-out;
}

.flash-message.success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success-color);
  color: #27ae60;
}

.flash-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error-color);
  color: #c0392b;
}

.flash-message.warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left: 4px solid var(--warning-color);
  color: #d35400;
}

.flash-message p {
  margin: 0;
  padding-right: 30px;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.close-btn:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 
 * Form Errors 
 */
.form-errors {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--error-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.5rem;
}

.form-errors li {
  color: var(--error-color);
}

/* 
 * Home Page 
 */
.welcome-section {
  text-align: center;
  padding: 3rem 0;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.features-section {
  margin-top: 3rem;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.features-section h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

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

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 
 * About Page 
 */
.about-section, .tech-stack {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.about-section h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-section ul, .tech-stack ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.tech-stack h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 
 * Profile Page 
 */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-container h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.profile-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  overflow: hidden;
}

.profile-avatar span {
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
}

.movie-avatar span {
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
}


.movie-avatar {
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title .subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}

.profile-info {
  margin-bottom: 2rem;
}

.info-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  font-weight: 500;
  color: var(--text-light);
}

.profile-section, .settings-section {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.profile-section h3, .settings-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.profile-section p {
  margin-bottom: 1rem;
}

.settings-section ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

/* 
 * Error Page 
 */
.error-container {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
}

.error-container h1 {
  color: var(--error-color);
  margin-bottom: 1.5rem;
}

.error-box {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.error-message {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.error-code {
  color: var(--text-light);
  margin-bottom: 1rem;
}

details {
  margin-top: 1.5rem;
  text-align: left;
}

details summary {
  cursor: pointer;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

details pre {
  background-color: #f8f8f8;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
}


/* 
 * Responsive Design 
 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .info-item {
    flex-direction: column;
  }
  
  .info-item .label {
    margin-bottom: 0.5rem;
  }
}