* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.hidden {
  display: none !important;
}

/*login*/
body.main-content {
  background: linear-gradient(135deg, #4a0d23, #801336);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body.main-content h1 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 10px;
}

body.main-content h2 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: normal;
}

.login-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box label {
  display: block;
  text-align: left;
  margin-top: 15px;
  margin-bottom: 5px;
  color: white;
  font-weight: bold;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
}

.login-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-box input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.login-btn button {
  width: 100%;
  background-color: #ffa200;
  color: white;
  padding: 15px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn button:hover {
  background-color: #ff8800;
  transform: translateY(-2px);
}

body.main-content .register {
  margin-top: 20px;
}

body.main-content .register a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

body.main-content .register a:hover {
  text-decoration: underline;
}

/*reg*/
body.main-register {
  background: linear-gradient(135deg, #4a0d23, #801336);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body.main-register h1 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 10px;
}

body.main-register h2 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: normal;
}

.register-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.register-box label {
  display: block;
  text-align: left;
  margin-top: 15px;
  margin-bottom: 5px;
  color: white;
  font-weight: bold;
}

.register-box input[type="text"],
.register-box input[type="email"],
.register-box input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
}

.register-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.register-box input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.gen-btn,
.reg-btn button {
  width: 100%;
  background-color: #ffa200;
  color: white;
  padding: 15px;
  margin-top: 15px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.gen-btn:hover,
.reg-btn button:hover {
  background-color: #ff8800;
  transform: translateY(-2px);
}

body.main-register .register {
  margin-top: 20px;
}

body.main-register .register a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

body.main-register .register a:hover {
  text-decoration: underline;
}

/*home*/
body:not(.main-content):not(.main-register) {
  background-color: white;
  padding-top: 80px;
}

.navbar {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar h2 {
  color: #ffa200;
  margin: 0;
}

.navbar div {
  position: absolute;
  right: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  padding: 10px 20px;
  background-color: #ffa200;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.navbar a:hover {
  background-color: #ff8800;
}

/* Main Content */
.container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.container h1 {
  color: black;
  margin-bottom: 10px;
}

.container p {
  color: #666;
  margin-bottom: 40px;
}

/* Post Card */
.post {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.post-header strong {
  font-size: 1.1rem;
  color: black;
}

.post-header span {
  color: #999;
  font-size: 0.9rem;
}

.post-content {
  margin: 15px 0;
  line-height: 1.6;
  color: #333;
}

.post-footer {
  display: flex;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #666;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/*admin*/

/*Admin Navigation*/
.admin-nav {
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-nav h1 {
  font-size: 1.5rem;
}

.admin-nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: 0.3s;
}

.admin-nav-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Admin Container */
.admin-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background-color: #f5f5f5;
}

/* Welcome Box */
.welcome {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h3 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4a0d23;
}

.stat-card.warning .number {
  color: #ffa200;
}

/* Section Boxes */
.section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.section h2 {
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #4a0d23;
  padding-bottom: 10px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: #f8f9fa;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  color: #333;
}

table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

table tr:hover {
  background: #f8f9fa;
}

/* Badges */
.badge {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge.pending {
  background: #fff3cd;
  color: #856404;
}

.badge.reviewed {
  background: #cfe2ff;
  color: #084298;
}

.badge.action_taken {
  background: #d4edda;
  color: #155724;
}

.badge.dismissed {
  background: #f8d7da;
  color: #721c24;
}

/* Buttons */
.btn {
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #4a0d23;
  color: white;
}

.btn-primary:hover {
  background: #801336;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.quick-action {
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

.quick-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.quick-action h3 {
  margin-bottom: 5px;
  color: white;
}

.quick-action p {
  color: rgba(255, 255, 255, 0.8);
}

.no-data {
  text-align: center;
  padding: 20px;
  color: #999;
}
/* ===== CYBERSOCIAL HOMEPAGE STYLING ===== */

/* Main container styling */
body:not(.main-content):not(.main-register) {
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
  padding-top: 100px;
}

/* Navbar redesign */
.navbar {
  background: linear-gradient(135deg, #2a002d, #801336);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.navbar h2 {
  color: #ffa200;
  margin: 0;
  font-size: 1.6rem;
}

.navbar a {
  background: #ffa200;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
}

.navbar a:hover {
  background: #ff8800;
  transform: translateY(-2px);
}

/* ===== POST AREA ===== */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.post-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.post-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.post-box input[type='file'] {
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.post-box button {
  background: #801336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  margin-top: 10px;
}

.post-box button:hover {
  background: #a11d4b;
}

/* ===== POSTS ===== */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.post {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  position: relative;
}

.post-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #801336;
  flex-shrink: 0;
}

.post-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-header strong {
  color: #333;
  font-size: 1rem;
  line-height: 1.2;
}

.post-time {
  color: #999;
  font-size: 0.85rem;
}

.post-header span {
  color: #999;
  font-size: 0.9rem;
}

/* fix: report menu stays attached to post, not navbar */
.post-menu {
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
  font-size: 1.4rem;
  color: #801336;
}

.menu-options {
  position: absolute;
  top: 35px;
  right: 10px;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 140px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.menu-options a {
  color: #801336;
  padding: 10px;
  text-decoration: none;
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
}

.menu-options a:hover {
  background: #f9f9f9;
}

.menu-options.show {
  display: flex;
}

/* Post content */
.post-content {
  margin: 15px 0;
  color: #333;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Post image */
.post-image {
  margin: 15px 0;
  border-radius: 10px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Post Location */
.post-location {
  margin: 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.post-location span {
  display: inline-block;
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 15px;
}

/* Post Actions (Like button) */
.post-actions {
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 15px;
  border-radius: 20px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-btn:hover {
  background: #f0f0f0;
}

.like-btn .heart {
  font-size: 1.5rem;
  transition: 0.2s;
}

.like-btn.liked .heart {
  animation: heartbeat 0.3s;
}

.like-btn .like-count {
  color: #666;
  font-weight: bold;
  font-size: 1rem;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Comments */
.comment-box {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: block;
}

.comment-input {
  width: 80%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

.comment-btn {
  padding: 8px 15px;
  border: none;
  background: #801336;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.comment-btn:hover {
  background: #a11d4b;
}

.comment {
  text-align: left;
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
}

.comment strong {
  color: #801336;
}

/* Footer */
footer {
  margin-top: 60px;
  background: #2a002d;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* Post Controls */
.post-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.post-controls input[type="file"] {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 300px;
  font-size: 0.85rem;
}

/* Privacy Select */
.privacy-select {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

.privacy-select:hover {
  border-color: #801336;
}

.privacy-select:focus {
  outline: none;
  border-color: #801336;
  box-shadow: 0 0 5px rgba(128, 19, 54, 0.3);
}

/* Privacy Badge */
.privacy-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 8px;
  font-weight: normal;
}

/* Image Preview Container */
.image-preview-container {
  margin: 15px 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ddd;
}

.image-preview-container img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: #f5f5f5;
}

.btn-remove-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-remove-preview:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.05);
}

/* Selected Location Display */
.selected-location {
  margin-top: 10px;
  padding: 10px;
  background: #e8f5e9;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-location span {
  color: #2e7d32;
  font-size: 0.9rem;
}

.btn-remove {
  background: #c62828;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-remove:hover {
  background: #e53935;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 5% auto;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  padding: 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  transition: 0.3s;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 20px;
}

.modal-body p {
  margin-bottom: 15px;
  color: #666;
}

#location-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Post Map Display */
.post-map {
  width: 100%;
  height: 250px;
  margin-top: 10px;
  border-radius: 8px;
  border: 2px solid #ddd;
}

/* Button Styles */
.btn-secondary {
  padding: 12px 20px;
  border: none;
  background: #666;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #888;
  transform: scale(1.05);
}

/* Dark Mode Button in Navbar */
.dark-mode-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 15px;
}

.dark-mode-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Nav Links Container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Profile Page Styles */
.profile-container {
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 20px;
}

.profile-container h1 {
  color: #801336;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.profile-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-section h2 {
  color: #801336;
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid #ffa200;
  padding-bottom: 10px;
}

.profile-section h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.profile-section p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Profile Picture */
.profile-picture-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #801336;
}

.profile-picture-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a0d23, #801336);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  font-weight: bold;
}

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.profile-form input[type="file"] {
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.profile-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: bold;
  color: #801336;
}

.info-value {
  color: #333;
}

/* Setting Item */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
}

.setting-info {
  flex: 1;
}

.setting-toggle {
  margin-left: 20px;
}

.toggle-btn {
  padding: 10px 20px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  color: #666;
}

.toggle-btn:hover {
  border-color: #801336;
  color: #801336;
}

.toggle-btn.active {
  background: #801336;
  color: white;
  border-color: #801336;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #ffa200;
}

.stat-label {
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Success and Error Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .navbar {
  background: linear-gradient(135deg, #0d0d0d, #2a0015);
}

body.dark-mode .container,
body.dark-mode .profile-container {
  color: #e0e0e0;
}

body.dark-mode .container h1,
body.dark-mode .profile-container h1 {
  color: #ffa200;
}

body.dark-mode .post,
body.dark-mode .post-box,
body.dark-mode .profile-section {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .profile-section h2 {
  color: #ffa200;
  border-bottom-color: #ffa200;
}

body.dark-mode .post-content,
body.dark-mode p {
  color: #e0e0e0;
}

body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode .comment-input {
  background: #3a3a3a;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode textarea::placeholder,
body.dark-mode input::placeholder {
  color: #999;
}

body.dark-mode .menu-options {
  background: #2d2d2d;
  border-color: #444;
}

body.dark-mode .menu-options a {
  color: #e0e0e0;
}

body.dark-mode .menu-options a:hover {
  background: #3a3a3a;
}

body.dark-mode .post-location span,
body.dark-mode .selected-location {
  background: #3a3a3a;
  color: #e0e0e0;
}

body.dark-mode .info-row {
  border-bottom-color: #444;
}

body.dark-mode .info-label {
  color: #ffa200;
}

body.dark-mode .info-value {
  color: #e0e0e0;
}

body.dark-mode .setting-item {
  background: #3a3a3a;
}

body.dark-mode .toggle-btn {
  background: #2d2d2d;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-mode .toggle-btn:hover {
  border-color: #ffa200;
  color: #ffa200;
}

body.dark-mode .toggle-btn.active {
  background: #ffa200;
  color: #1a1a1a;
  border-color: #ffa200;
}

body.dark-mode footer {
  background: #0d0d0d;
}

body.dark-mode .admin-container {
  background: #1a1a1a;
}

body.dark-mode .welcome,
body.dark-mode .section,
body.dark-mode .stat-card {
  background: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode table {
  background: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode th {
  background: #3a3a3a;
}

body.dark-mode tr:hover {
  background: #3a3a3a;
}

body.dark-mode .modal-content {
  background: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode .modal-body p {
  color: #ccc;
}

body.dark-mode .privacy-select,
body.dark-mode select {
  background: #3a3a3a;
  color: #e0e0e0;
  border-color: #555;
}

/* Two-Factor Authentication Styles */
.twofa-setup {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  margin-top: 20px;
}

.twofa-setup h3 {
  color: #801336;
  margin-bottom: 25px;
  text-align: center;
}

.twofa-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.twofa-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(135deg, #4a0d23, #801336);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin: 0 0 10px 0;
  color: #801336;
}

.step-content p {
  margin: 0 0 10px 0;
  color: #666;
}

.qr-code-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  display: inline-block;
}

.qr-code {
  display: block;
  width: 200px;
  height: 200px;
  border: 2px solid #801336;
  border-radius: 8px;
}

.secret-key {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.secret-key code {
  background: #e0e0e0;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  color: #801336;
  font-weight: bold;
  letter-spacing: 2px;
}

.code-input {
  width: 200px;
  padding: 15px;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 5px;
  font-family: 'Courier New', monospace;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
}

.code-input:focus {
  outline: none;
  border-color: #801336;
  box-shadow: 0 0 8px rgba(128, 19, 54, 0.3);
}

.button-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button-group .btn-secondary {
  background: #666;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
}

.button-group .btn-secondary:hover {
  background: #888;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-danger:hover {
  background: #c82333;
  transform: scale(1.05);
}

.status-enabled {
  color: #28a745;
  font-weight: bold;
}

/* Backup Codes Display */
.backup-codes-display {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
}

.backup-codes-display h3 {
  color: #856404;
  margin: 0 0 15px 0;
}

.backup-codes-display p {
  color: #856404;
  margin-bottom: 15px;
}

.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.backup-code {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #801336;
  border: 2px solid #ffc107;
  letter-spacing: 2px;
}

.warning-text {
  color: #dc3545;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
}

/* Two-Factor Authentication Verification Page */
.login-container {
  background: linear-gradient(135deg, #4a0d23, #801336);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container h1 {
  color: white;
  font-size: 2.2em;
  margin-bottom: 10px;
  text-align: center;
}

.login-container p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.1em;
}

.login-container .login-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-input-large {
  width: 100%;
  max-width: 280px;
  padding: 20px;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 8px;
  font-family: 'Courier New', monospace;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin: 20px auto;
  display: block;
  transition: 0.3s;
}

.code-input-large::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.code-input-large:focus {
  outline: none;
  border-color: #ffa200;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 162, 0, 0.4);
}

.btn-primary-large {
  width: 100%;
  background: linear-gradient(135deg, #ffa200, #ff8800);
  color: white;
  padding: 18px 30px;
  margin-top: 20px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 162, 0, 0.3);
}

.btn-primary-large:hover {
  background: linear-gradient(135deg, #ff8800, #ff6600);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 162, 0, 0.5);
}

.help-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  text-align: center;
  margin: 20px 0 15px 0;
  line-height: 1.5;
}

.cancel-link {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.cancel-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Search Page Styles */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  transition: 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #801336;
  box-shadow: 0 0 10px rgba(128, 19, 54, 0.2);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-result-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.user-result-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #801336;
}

.user-info {
  flex: 1;
}

.user-info .username {
  font-size: 1.2rem;
  font-weight: bold;
  color: #801336;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.user-info .username:hover {
  text-decoration: underline;
}

.follower-count {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 40px;
  font-size: 1.1rem;
}

.loading {
  text-align: center;
  color: #801336;
  font-size: 1.1rem;
  padding: 20px;
}

/* Follow/Unfollow Button Styles */
.follow-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  white-space: nowrap;
}

.follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* View Profile Page Styles */
.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-picture-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #801336;
}

.profile-info-header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-info-header h1 {
  margin: 0;
  color: #801336;
}

.profile-stats {
  display: flex;
  gap: 40px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  justify-content: center;
}

.stat {
  text-align: center;
  padding: 10px 20px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #801336;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-top: 5px;
}

.profile-bio {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-bio p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.mutual-badge {
  padding: 15px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  margin-bottom: 20px;
}

.mutual-badge span {
  color: #2e7d32;
  font-weight: bold;
}

