/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

a {
  text-decoration: none;
}

/* Admin Panel Button */
a[title="Admin Panel"] {
  position: fixed;
  top: 15px;
  left: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 91, 170, 0.1);
  border-radius: 50%;
  border: 2px solid #0077cc;
  color: #0077cc;
  font-size: 18px;
  z-index: 1000;
  transition: all 0.3s ease;
}
a[title="Admin Panel"]:hover {
  background-color: #0077cc;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Toggle */
#darkModeToggleWrapper {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
  font-size: 14px;
}
#darkModeToggleWrapper label {
  display: flex;
  align-items: center;
}

/* Header */
.header {
  background: linear-gradient(to right, #005baa, #0077cc);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.header h1 {
  margin: 0;
  font-size: 2.5em;
}
.header p {
  margin-top: 10px;
}

/* Blog Container */
#blogContainer {
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}
.blog-post {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  transition: background-color 0.3s, color 0.3s;
}
.blog-post h2 {
  color: #005baa;
  margin-top: 0;
}
.blog-post p {
  line-height: 1.7;
}
.blog-post img {
  width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}
.blog-post iframe {
  width: 100%;
  border: none;
}
.blog-post small {
  color: gray;
}

/* Video Embed Styling */
.video-wrapper {
  margin-top: 15px;
  border: 3px solid #005baa;
  border-radius: 12px;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 40px;
}
footer h3 {
  margin-bottom: 20px;
}

/* Dark Mode Classes (Optional if toggling with JS) */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}
body.dark-mode .blog-post {
  background-color: #1e1e1e;
  color: #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.7em;
  }

  #blogContainer {
    padding: 20px;
  }

  .blog-post {
    padding: 18px;
  }

  a[title="Admin Panel"] {
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  #darkModeToggleWrapper {
    top: 15px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 30px 10px;
  }

  .header p {
    font-size: 0.9em;
  }

  footer h3 {
    font-size: 1.1em;
  }
}

/* Login Page Styles */
.login-body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #dff6ff, #e4efe9);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-title {
  text-align: center;
  color: #0077cc;
  margin-bottom: 30px;
}

.login-error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.login-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #005baa, #0077cc);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 5px 0 #004b99;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body.login-body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #dff6ff, #e4efe9);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Login form container */
.login-form {
  background-color: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

/* Login title */
.login-title {
  text-align: center;
  color: #0077cc;
  margin-bottom: 30px;
  font-size: 24px;
}

/* Error or message */
.login-error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Inputs */
.login-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

/* Login button */
.login-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #005baa, #0077cc);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 5px 0 #004b99;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:active {
  box-shadow: 0 2px 0 #004b99;
  transform: translateY(2px);
}

/* Forgot password link */
.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #0077cc;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Media Queries */

/* Tablets */
@media (max-width: 768px) {
  .login-form {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 22px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .login-form {
    padding: 25px 15px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-input, .login-button {
    font-size: 14px;
    padding: 10px;
  }

  .forgot-password a {
    font-size: 13px;
  }
}
/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body.login-body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #dff6ff, #e4efe9);
  background-image: url('../img/bg-pattern.png'); /* optional background */
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.6s ease;
}

/* Login form */
.login-form {
  background-color: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  animation: slideIn 0.5s ease;
}

/* Logo container */
.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo img {
  max-width: 120px;
  height: auto;
}

/* Title */
.login-title {
  text-align: center;
  color: #0077cc;
  margin-bottom: 30px;
  font-size: 24px;
}

/* Error message */
.login-error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Inputs */
.login-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

/* Login button */
.login-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #005baa, #0077cc);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 5px 0 #004b99;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:active {
  box-shadow: 0 2px 0 #004b99;
  transform: translateY(2px);
}

/* Forgot password */
.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #0077cc;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */

/* Tablet */
@media (max-width: 768px) {
  .login-form {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 22px;
  }

  .login-logo img {
    max-width: 100px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .login-form {
    padding: 25px 15px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-input, .login-button {
    font-size: 14px;
    padding: 10px;
  }

  .forgot-password a {
    font-size: 13px;
  }
}

/* ================================
   GLOBAL STYLES & RESET
================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #dceefb, #f0f4f8);
  padding: 40px;
}

h2, h3 {
  color: #005baa;
  margin-bottom: 10px;
}

/* ================================
   DASHBOARD STYLING
================================== */
.dashboard-container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
  text-align: center;
}

.dashboard-actions {
  text-align: center;
  margin: 20px 0;
}

.btn-add-post,
.btn-logout {
  margin-right: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-add-post {
  background-color: #0077cc;
  color: white;
}

.btn-add-post:hover {
  background-color: #005baa;
}

.btn-logout {
  background-color: #e74c3c;
  color: white;
}

.btn-logout:hover {
  background-color: #c0392b;
}

.divider {
  margin: 20px 0;
}

.post-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
}

.post-title {
  color: #333;
}

.post-actions a {
  color: #2980b9;
  text-decoration: none;
  margin-right: 15px;
}

.post-actions a:hover {
  text-decoration: underline;
}

.btn-edit {
  color: #2980b9;
}

.btn-delete {
  color: #c0392b;
}

/* ================================
   RESPONSIVE DESIGN
================================== */

/* Tablets */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 20px;
  }

  .btn-add-post,
  .btn-logout {
    padding: 8px 16px;
  }

  .post-card {
    padding: 15px;
  }

  .post-title {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .dashboard-container {
    padding: 15px;
  }

  .btn-add-post,
  .btn-logout {
    padding: 8px 14px;
    font-size: 14px;
  }

  .post-card {
    padding: 12px;
  }

  .post-title {
    font-size: 16px;
  }

  .post-actions a {
    font-size: 14px;
    margin-right: 10px;
  }
}
