/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease; /* smoothen everything */
}

body {
  background:#020403;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

/* Homepage scrollable but hidden scrollbars */
body.homepage {
  overflow-y: scroll;   /* still scrollable */
  overflow-x: hidden;   /* no sideways scroll */
  -ms-overflow-style: none;  /* IE + Edge */
  scrollbar-width: none;     /* Firefox */
}

body.homepage::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}



/* Sidebar Navigation - Align Left */
.side-nav {
  width: 250px;
  height: 100%;
  background: #060606;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 30px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.logo-img {
  width: 180px;
    }

.logo-icon {
  display: none;
  width: 60px;
}

/* Nav Links */
.nav-links {
  list-style: none;
  width: 100%;
  padding: 0%;
}

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

.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  font-style: normal;
  justify-content: flex-start;
  text-align: left;
}

.nav-links li a i {
  width: 28px;
  text-align: center;
  font-size: 22px;
  margin-right: 12px;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f72754;
}

.nav-links li a.active {
  background: #fff;
  color: #13070a;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Main Rounded Box with Glow */
.rounded-box {
  width: calc(100% - 260px);
  max-width: 1000px;
  min-height: 400px;
  background:#070504;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  margin-left: 300px;
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
              0 0 15px rgba(54, 53, 53, 0.4);
  transition: all 0.4s ease;
}

.rounded-box::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 30px;
  filter: blur(40px);
  z-index: -1;
}

.rounded-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
              0 0 25px rgba(247, 39, 84, 0.7);
}

.box-text {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;
  color: wheat;
  text-align: center;
}

/* About Page */
.about-content {
  color: #f0e6d2;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  padding: 25px;
  background: rgba(34, 34, 34, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(247, 39, 84, 0.4);
  box-shadow: 0 0 25px rgba(247, 39, 84, 0.2);
  width: 100%;
  flex: 1;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.about-content:hover {
  box-shadow: 0 0 30px rgba(247, 39, 84, 0.5);
  transform: scale(1.01);
}

.highlight { font-weight: bold; color: #f72754; }
.about-content i { color: #4da6ff; margin-right: 8px; }

.about-content h2,
.about-content h3 {
  color: #f72754;
  margin-bottom: 15px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content ul {
  padding-left: 25px;
  margin-top: 12px;
}

.about-content ul li {
  margin-bottom: 10px;
}

.about-content .highlight-pink { color: #f72754; font-weight: bold; }
.about-content .highlight-blue { color: #4da6ff; font-weight: bold; }
.about-content .highlight-green { color: #4dff88; font-weight: bold; }
.about-content .highlight-yellow { color: #ffcc00; font-weight: bold; }

/* Feedback Page */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.feedback-form input,
.feedback-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #444;
  color: #fff;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  background: #555;
  box-shadow: 0 0 8px #f72754;
}

.feedback-form textarea {
  resize: none;
  min-height: 120px;
}

.feedback-btn {
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  background: #f72754;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  align-self: center;
}

.feedback-btn:hover {
  background: #ff4c72;
  transform: scale(1.05);
}

/* Console + Drop Area Layout */
.content-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  flex: 1;
}

.drop-area {
  flex: 1 1 60%;
  border: 3px dashed #888;
  color: wheat;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 20px;
}

.drop-area.dragover {
  border-color: #fc72ff;
  background: rgba(252, 114, 255, 0.1);
}

/* Copy Log Button */
#copy-log {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  font-size: 18px;
}

#copy-log:hover {
  color: #f72754;
  transform: scale(1.15);
}

/* Console Box */
.console-box {
  width: 40%;
  display: flex;
  flex-direction: column;
  font-family: monospace; /* monospaced font */
  font-size: 12px;
  line-height: 1.4;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE + Edge */
  scrollbar-width: none;     /* Firefox */
}

.console-box::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.console-box.hidden {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.console-box.hidden ~ .drop-area {
  flex: 1 1 100%;
}

#toggle-log {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #333;
  border: none;
  color: white;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
}

#toggle-log:hover {
  color: #f72754;
  transform: scale(1.15);
}

#console-log {
  background: #111;
  color: #eee;
  padding: 10px;
  border-radius: 12px;
  height: 290px;
  overflow-y: auto;
  font-family: monospace; /* monospaced font */
  font-size: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#console-log::-webkit-scrollbar {
  display: none;
}

#console-log div {
  margin-bottom: 4px;
  line-height: 1.4;
  animation: fadeInLog 0.3s ease forwards;
}

/* Convert Button */
.convert-btn {
  background: #161a20;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.convert-btn i {
  font-size: 18px;
}

.convert-btn:hover {
  background: #222;
  color: #f72754;
  transform: scale(1.05);
}

.convert-btn:active {
  transform: scale(0.95);
}

/* Log Types */
.log-info { color: #4da6ff; }
.log-success { color: #4dff88; }
.log-warning { color: #ffcc00; }
.log-error { color: #ff4c4c; }

/* Glow colors based on page */
.home-page .rounded-box {
  box-shadow: 0 8px 25px rgba(0,0,0,0.4),
              0 0 20px rgba(77, 166, 255, 0.7);
}

.about-page .rounded-box {
  box-shadow: 0 8px 25px rgba(0,0,0,0.4),
              0 0 20px rgba(247, 39, 84, 0.7);
}

.feedback-page .rounded-box {
  box-shadow: 0 8px 25px rgba(0,0,0,0.4),
              0 0 20px rgba(255, 204, 0, 0.7);
}

/* Footer */
.footer {
  width: calc(100% - 250px);
  margin-left: 250px;
  padding: 15px 0;
  background: #020403;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-link i {
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
  color: #f72754;
}

.footer-link:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #ff4c72;
}

/* Fade-in logs */
@keyframes fadeInLog {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Layouts */
@media (max-width: 1024px) {
  .rounded-box {
    width: calc(100% - 220px);
    margin-left: 220px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .side-nav {
    width: 180px;
    padding: 20px;
  }

  .rounded-box {
    width: calc(100% - 190px);
    margin-left: 190px;
  }

  .content-row {
    flex-direction: column;
  }

  .console-box {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .side-nav {
    width: 100px;
    padding: 10px;
  }

  .logo-img { display: none; }
  .logo-icon { display: block; }

  .nav-links li a p { display: none; }
  .nav-links li a { justify-content: center; }

  .rounded-box {
    width: calc(100% - 110px);
    margin-left: 110px;
    border-radius: 15px;
    padding: 12px;
  }

  .box-text { font-size: 20px; }
  .drop-area { min-height: 140px; font-size: 13px; }

  #console-log {
    font-size: 14px;
    line-height: 1.5;
  }

  .convert-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 14px;
    padding: 0.8em;
  }
}

@media (max-width: 400px) {
  .side-nav { width: 80px; }

  .rounded-box {
    width: calc(100% - 85px);
    margin-left: 85px;
    padding: 15px;
  }

  .box-text { font-size: 18px; }
  .drop-area { font-size: 12px; }

  #console-log {
    font-size: 11px;
    height: 140px;
  }
}
