/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Layout */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
}

/* Headings */
h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  color: #34495e;
  margin-bottom: 10px;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
}

/* Public Info */
.public-info {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.public-info p {
  color: #333;
}

/* Private Info Box */
.private-info {
  background-color: #34495e;
  color: #ecf0f1;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Login Prompt */
.login-prompt {
  background-color: #f9c742;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.login-prompt a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.login-prompt a:hover {
  text-decoration: underline;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 10px 20px;
}

header .logo a {
  text-decoration: none;
}

.logo-image {
  max-width: 150px;
  height: auto;
}

/* Navigation */
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
}

header nav ul li a:hover {
  background-color: #34495e;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .logo-image {
    max-width: 120px;
  }

  main {
    padding: 20px 10px;
  }
}

/* Login/Register Wrappers */
.login-wrapper,
.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

/* Shared Boxes */
.login-box,
.register-box {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.login-box h2,
.register-box h2 {
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: bold;
  text-align: left;
}

/* Forms */
.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  padding: 15px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

/* Buttons */
.login-button,
.register-button,
input[type="submit"] {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s ease;
}

.login-button:hover,
.register-button:hover,
input[type="submit"]:hover {
  background-color: #34495e;
}

/* Errors */
.login-error,
.register-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

/* Highlight Box (e.g., login CTA) */
.login-highlight-box {
  background-color: #fff7cc;
  color: #000;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.login-highlight-box a {
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}

.login-highlight-box a:hover {
  text-decoration: underline;
}

/* Logged-In Dashboard Section */
.private-dashboard {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.instructions-box {
  margin-top: 25px;
}

.instructions-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.instructions-box ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 0;
  color: #333;
}

.instructions-box ul ul {
  list-style-type: circle;
  margin-top: 5px;
  padding-left: 20px;
}

.instructions-box li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.preview-image {
  max-width: 150px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 10px;
}

.preview-image:hover {
  transform: scale(1.05);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.manage-wrapper {
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.manage-wrapper h2 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: left;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.folder-form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.folder-form input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  font-size: 16px;
}

.folder-form button {
  padding: 10px 20px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.folder-form button:hover {
  background-color: #34495e;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.media-item {
  width: 220px;
  background: #fafafa;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  text-align: center;
}

.preview-image {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.rename-form,
.move-form {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.rename-form input,
.move-form input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.rename-form button,
.move-form button {
  padding: 6px 12px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.rename-form button:hover,
.move-form button:hover {
  background-color: #34495e;
}

.folder-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}
.folder-link:hover {
  text-decoration: underline;
}

.download-zip {
  margin-bottom: 20px;
  display: inline-block;
  padding: 10px 16px;
  background-color: #27ae60;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}
.download-zip:hover {
  background-color: #219150;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.image-name {
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
  word-break: break-word;
  text-align: center;
}

/* ADMIN DASHBOARD STYLES */
.admin-dashboard {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  margin: 30px auto;
  max-width: 1100px;
}

.admin-dashboard h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.admin-dashboard section {
  margin-bottom: 40px;
}

.admin-dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-dashboard table th,
.admin-dashboard table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.admin-dashboard table th {
  background-color: #f4f4f4;
  color: #333;
}

.admin-dashboard table tr:nth-child(even) {
  background-color: #fafafa;
}

.admin-dashboard table tr:hover {
  background-color: #f0f8ff;
}

.admin-dashboard .public-info h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #34495e;
}

.admin-dashboard .manage-links a {
  color: #3498db;
  text-decoration: none;
  margin-right: 10px;
}

.admin-dashboard .manage-links a:hover {
  text-decoration: underline;
}

.admin-dashboard ul {
  list-style: disc inside;
  padding-left: 20px;
}

.admin-dashboard li {
  margin-bottom: 8px;
  line-height: 1.5;
}
