/* ==========================================================================
   IMPORT GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
   /* ==========================================================================
   GENERAL
   ========================================================================== */
body {
  font-family: 'Poppins', sans-serif !important;
  color: #ffffff;
  background-color: #121212 !important;
  font-weight: 400;
  overflow-x: hidden; }

html {
  overflow-x: hidden; }

p {
  font-size: 14px;
  color: #ffffff;
  line-height: 26px;
  margin-bottom: 0; }

a:hover, a:focus {
  color: #ffffff; }

a {
  color: #ffffff;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out; }

h1, h2, h3, h4, h5 {
  color: #ffffff; }

.head-title {
  color: #ffffff;
}

.container-fluid {
  margin-top: 80px;
}

ul {
  margin: 0;
  padding: 0; }

ul li {
  list-style: none;
  font-size: 14px !important;
  color: #797979; }

a:hover,
a:focus {
  text-decoration: none;
  outline: none; }

a:not([href]):not([tabindex]) {
  color: #fff; }

a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
  color: #fff; }

.bg-transparent {
  background: transparent !important; }

.bg-defult {
  background: #008080 !important; }


/* ==========================================================================
   Navbar Style
   ========================================================================== */

   /* Navbar Background and General Styles */
nav {
  background-color: #2d2d2d;
}

header {
  margin-bottom: 80px;
}

.navbar-nav .nav-link {
  font-size: 15px !important;
}

/* Logo Menu */
.logo-menu a {
  font-size: 20px;
  color: #ffffff; /* Changed to #333333 for text */
}

/* Navbar Brand (Logo) */
.navbar-brand {
  margin-left: 0px; /* Adjust as needed */
  width: 20px;
  color: #ffffff; /* Changed to #333333 for text */
}

.navbar-brand img {
  width: 115px; /* Adjust as needed */
}

/* Navbar Links */
.navbar-expand-md .navbar-nav .nav-link {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

/* Navbar Link Hover and Active States */
.navbar-expand-md .navbar-nav .nav-link:hover,
.navbar-expand-md .navbar-nav .active {
  color: #fff !important;
}

/* Navbar Link Before State */
.navbar-expand-md .navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 60px;
  z-index: 0;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}

/* Hover and Active Link Background */
.navbar-expand-md .navbar-nav .active::before,
.navbar-expand-md .navbar-nav .nav-link:hover::before {
  width: 100%;
  padding: 10px;
  background-color: #e35335;
  z-index: -1; /* Ensure background stays behind text */
}

/* Navbar Link Focus and Hover States */
.navbar-expand-md .navbar-nav .nav-link:focus,
.navbar-expand-md .navbar-nav .nav-link:hover {
  color: #000000; /* Changed to #ff5f1f for hover */
}

.navbar-expand-md .navbar-nav .nav-link.active,
.navbar-expand-md .navbar-nav .nav-link.active:before,
.navbar-expand-md .navbar-nav .nav-link.open,
.navbar-expand-md .open > .nav-link {
  color: #000000; /* Changed to #ff5f1f for active */
}

/* Navbar Toggler (Mobile Menu) */
.navbar-expand-md .navbar-toggler {
  background: transparent;
  border: 1px solid #230a00; /* Changed to #333333 */
  border-radius: 3px;
  margin: 5px;
  cursor: pointer;
  float: right;
}

.navbar-toggler i {
  color: #230a00 !important; /* Changed to #333333 for text */
}

.navbar-toggler:focus {
  outline: none;
}

/* Mobile Toggler Icon */
.navbar-toggler {
  border: none; /* Ensure toggler button is visible */
}

.navbar-toggler-icon {
  background-color: #fff; /* Set the icon color if needed */
}


/* Quill toolbar styling */
.ql-toolbar {
  margin: 20px 0 0 0;
}

/* File upload form styling */
#upload-form {
  margin-bottom: 20px;
}

#upload-form input {
  margin-right: 10px;
}

/* Uploaded files list */
#files-container {
  margin-top: 20px;
}

#files-container h2 {
  margin-bottom: 10px;
}

#file-list li {
  list-style-type: none;
  margin: 5px 0;
  background-color: #1e1e1e !important;
}

#file-list li a {
  text-decoration: none;
  color: #ffffff;
  background-color: #1e1e1e !important;
}

#file-list li a:hover {
  transition-delay: 0.2ms;
  color: #358fe3;
}

h4 {
  margin: 0 0 20px 50px;
}

/* Style for notepad header */
.notepad-header {
  margin-bottom: 15px; /* Add space below the header */
}

/* Buttons styling */
.notepad-actions .btn {
  margin-left: 10px; /* Space between the buttons */
}

.notepad-header img {
  width: 25px;
  margin-left: -60px;
}

/* Optional: Modify button appearance */
.btn {
  background-color: #1e1e1e; /* Light gray background */
  color: #ffffff;               /* Dark text color */
  border: 1px solid #ccc;     /* Border color */
  padding: 5px 10px;          /* Padding for buttons */
}

.btn i {
  margin-right: 5px; /* Space between the icon and text */
}

.btn:hover {
  background-color: #2c2c2c; /* Hover state for the buttons */
  border: 1px solid #ffffff; 
}

.btn ion-icon {
  color: #fff;
}

.hidden-xs {
  color: #fff;
  font-size: 13px;
}


/* Notepad Container */

/* Container for the entire notepad including header and editor */
.notepad-container {
  margin: 0 50px 0 50px;
  padding: 10px;
  background-color: #121212;
  border-radius: 8px;
  box-shadow: 0 0px 8px rgba(255, 255, 255, 0.1);
}

/* Flexbox for aligning title and buttons in the header */
.notepad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Title styling */
.notepad-title {
  margin: 0;
  font-size: 22px;
}

/* Align the buttons in a horizontal row and space them out */
.notepad-actions {
  display: flex;
  gap: 10px; /* Adds space between buttons */
}

/* Buttons styling */
.notepad-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #ffffff;
}

.notepad-actions .btn i {
  margin-right: 5px;
}

/* Editor styling */
#editor-container {
  height: 420px;
  background-color: #1d1d1d;
  border: 1px solid #515151;
  padding: 10px;
}

.iconex {
  margin-right: 7px; /* Adjust this value as needed for spacing */
}

/* Link container */

.link-container li {
  display: flex; /* Flex container to align items */
  justify-content: space-between; /* Space out the items */
  align-items: center; /* Center items vertically */
  margin: 12px 0 5px 0;
  padding: 8px;
  border-radius: 5px;
  background-color: #1c1c1c;
  text-decoration: none;
}

.link-container a {
  text-decoration: none;
  color: #ffffff;
  flex: 1; /* Allow the link to take up available space */
}

.link-container a:hover {
  color: #358fe3;
  text-decoration: none;
}

/* Style for the buttons */
.link-container button {
  background: none;
  border: none;
  cursor: pointer;
}

.link-container .copy-btn {
  color: #ffffff; /* Adjust color as needed */
  margin-left: 5px; /* Add some spacing between buttons */
  font-size: 16px;
}

.link-container .delete-btn {
  color: #e35335;
  margin-left: 5px; /* Add some spacing between buttons */
  font-size: 17.5px;
}


.link-container .delete-btn:hover {
  color: #ff9f8b; /* Adjust hover color as needed */
}

.copy-btn {
  color: #f8f8f8; /* Default color for copy button */
}

.link-container .copy-btn:hover {
  color: #919191; /* Default color for copy button */
}

.copy-btn-success {
  color: #ffffff; /* Color for success state */
}

#link-display {
  display: none; /* Initially hide the links */
}

/* Files list tab */
/* File list container (based on link-container) */
.file-list li {
  display: flex; /* Flex container to align items */
  justify-content: space-between; /* Space out the items */
  align-items: center; /* Center items vertically */
  margin: 12px 0 5px 0;
  padding: 8px;
  border-radius: 5px;
  color: #797979;
  background-color: #000;
  font-size: 14px !important;
  text-decoration: none;
}

.file-list a {
  text-decoration: none;
  color: #000;
  flex: 1; /* Allow the link to take up available space */
}

.file-list a:hover {
  color: #e35335;
}

/* Style for the buttons */
.file-list button {
  background: none;
  border: none;
  cursor: pointer;
}

.file-list .download-btn {
  color: #eaeaea;
  margin-left: 5px; /* Add some spacing between buttons */
  font-size: 16px;
}

.file-list .delete-btn {
  color: #e35335;
  margin-left: 5px; /* Add some spacing between buttons */
  font-size: 17.5px;
}


.file-list .delete-btn:hover {
  color: #ff9f8b;
}

.file-list .download-btn:hover{
  color: #c9c9c9;
}

/* Success state for download */
.download-btn-success {
  color: #ffffff; /* Color for success state */
}


/* Upload container */

/* Upload Container */
.upload-container {
  margin: 20px 0;
  padding: 20px;
  border-radius: 5px;
  background-color: #303030;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Drop Area */
#drop-area {
  border: 2px dashed #363636;
  padding: 40px;
  text-align: center;
  border-radius: 5px;
  background-color: #131313;
  transition: background-color 0.3s ease;
}

#drop-area.dragover {
  background-color: #282828;
  border-color: #e7e30d;
}

#drop-area p {
  margin: 0 0 10px;
}

#file-input {
  display: none;
}

#upload-button {
  background-color: #e44d17;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#upload-button:hover {
  background-color: #bd3f11;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background-color: #1f1f1f;
  border-radius: 5px;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.4s ease;
}


/* Uploaded files */
.file-list {
  margin-top: 20px;
}

.upload-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.upload-item ion-icon {
  margin-right: 10px;
}

/* Dot animation */

@keyframes wave {
  0%, 20%, 40%, 60%, 80%, 100% {
      opacity: 0;
  }
  10%, 30%, 50%, 70%, 90% {
      opacity: 1;
  }
}

.typing-dots {
  display: inline-block;
  animation: wave 1.5s infinite;
}

  /* Refresh animation */

  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .rotate-animation {
    animation: rotate 1s ease-in-out;
  }
  



/* ==========================================================================
   Footer section
   ========================================================================== */
   .footer {
    background-color: #050505;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .company-description, .social-links, .footer-links, .copyright {
    margin: 0 10px;
  }

  .copyright a {
    font-weight: 400;
    color: #008080  ;
  }

  .copyright a:hover {
    text-decoration: none;
    color: #015d5d;
    font-size: 15px;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; /* Add space between the links */
  }
  
  .footer-links a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
  }
  
  .footer-links a:hover {
    text-decoration: none;
    color: #e35335;
  }
  
  .social-links {
    display: flex;
    gap: 16px; /* Add space between the icons */
  }
  
  .social-links a {
    color: #c3c3c3;
    font-size: 17px;
    text-decoration: none;
  }
  
  .social-links a:hover {
    color: #e35335;
  }
  
  footer p {
    margin: 0;
    font-size: 14px;
  }
  
/* Toggle button */

/* From Uiverse.io by JkHuger */ 
/* Default */
.theme {
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.theme__fill,
.theme__icon {
  transition: 0.3s;
}

.theme__fill {
  background-color: var(--bg);
  display: block;
  mix-blend-mode: difference;
  position: fixed;
  inset: 0;
  height: 100%;
  transform: translateX(-100%);
}

.theme__icon,
.theme__toggle {
  z-index: 1;
}

.theme__icon,
.theme__icon-part {
  position: absolute;
}

.theme__icon {
  display: block;
  top: 0.35em;
  left: 0.37em;
  width: 1.5em;
  height: 1.5em;
}


.theme__icon-part {
  border-radius: 50%;
  box-shadow: 0.4em -0.4em 0 0.5em hsl(0,0%,100%) inset;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em);
  width: 1em;
  height: 1em;
  transition: box-shadow var(--transDur) ease-in-out,
		opacity var(--transDur) ease-in-out,
		transform var(--transDur) ease-in-out;
  transform: scale(0.5);
}

.theme__icon-part ~ .theme__icon-part {
  background-color: hsl(0, 81%, 35%);
  border-radius: 0.05em;
  top: 50%;
  left: calc(50% - 0.05em);
  transform: rotate(0deg) translateY(0.5em);
  transform-origin: 50% 0;
  width: 0.1em;
  height: 0.2em;
}

.theme__icon-part:nth-child(3) {
  transform: rotate(45deg) translateY(0.45em);
}

.theme__icon-part:nth-child(4) {
  transform: rotate(90deg) translateY(0.45em);
}

.theme__icon-part:nth-child(5) {
  transform: rotate(135deg) translateY(0.45em);
}

.theme__icon-part:nth-child(6) {
  transform: rotate(180deg) translateY(0.45em);
}

.theme__icon-part:nth-child(7) {
  transform: rotate(225deg) translateY(0.45em);
}

.theme__icon-part:nth-child(8) {
  transform: rotate(270deg) translateY(0.5em);
}

.theme__icon-part:nth-child(9) {
  transform: rotate(315deg) translateY(0.5em);
}

.theme__label,
.theme__toggle,
.theme__toggle-wrap {
  position: relative;
}

.theme__toggle,
.theme__toggle:before {
  display: block;
}

.theme__toggle {
  background-color: hsl(48,90%,85%);
  border-radius: 28% / 60%;
  box-shadow: 0 0 0 0.125em var(--primaryT);
  padding: 0.25em;
  width: 5.25em;
  height: 2.28em;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color var(--transDur) ease-in-out,
		box-shadow 0.15s ease-in-out,
		transform var(--transDur) ease-in-out;
}

.theme__toggle:before {
  background-color: hsl(48,90%,55%);
  border-radius: 50%;
  content: "";
  width: 2em; /* Adjusted width for balance */
  height: 2em; /* Adjusted height for balance */
  position: absolute;
  top: 0.125em; /* Fine-tuned positioning */
  left: 0.125em; /* Fine-tuned positioning */
  bottom: 0.125em;
  transition: 0.3s;
}

.theme__toggle:focus {
  box-shadow: 0 0 0 0.125em var(--primary);
  outline: transparent;
}

/* Checked */
.theme__toggle:checked {
  background-color: hsl(198,90%,15%);
}

.theme__toggle:checked:before,
.theme__toggle:checked ~ .theme__icon {
  transform: translateX(3em);
}

.theme__toggle:checked:before {
  background-color: hsl(198,90%,55%);
}

.theme__toggle:checked ~ .theme__fill {
  transform: translateX(0);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
  box-shadow: 0.2em -0.2em 0 0.2em hsl(0,0%,100%) inset;
  transform: scale(1);
  top: 0.2em;
  left: -0.2em;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
  opacity: 0;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
  transform: rotate(45deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
  transform: rotate(90deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
  transform: rotate(135deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
  transform: rotate(180deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
  transform: rotate(225deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
  transform: rotate(270deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
  transform: rotate(315deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
  transform: rotate(360deg) translateY(0.8em);
}

.theme__toggle-wrap {
  margin: 0 0.75em;
}

@supports selector(:focus-visible) {
  .theme__toggle:focus {
    box-shadow: 0 0 0 0.125em var(--primaryT);
  }

  .theme__toggle:focus-visible {
    box-shadow: 0 0 0 0.125em var(--primary);
  }
}

/* File upload sucess */

.upload-message {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  font-size: 14px;
}


.error-message {
  background-color: #f8d7da; /* Light red background for error */
  color: #721c24; /* Dark red text */
  border: 1px solid #f5c6cb; /* Red border */
  border-radius: 5px;
  padding: 10px 15px;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Setting Panel */

.settings-panel {
  display: flex;
  flex-direction: column; /* stack h4 and toggle vertically */
  align-items: center;    /* center them horizontally */
  justify-content: center;
  position: fixed;
  top: 70px;
  right: 20px;
  width: 250px;
  padding: 15px;
  background: var(--panel-bg, #141414);
  color: var(--panel-text, #2c2c2c);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(28, 28, 28, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.settings-content h3 {
  margin-top: 0;
}

.setting-item h4 {
  margin-bottom: 10px; /* space between title and toggle */
}

.dark-mode .settings-panel {
  --panel-bg: #1e1e1e;
  --panel-text: #f8f8f8;
}


/* Toggle button */

/* Modal styling */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.settings-box {
  background: var(--modal-bg, #2e2e2e);
  color: var(--modal-text, #e7e7e7);
  padding: 30px 30px;
  border-radius: 12px;
  width: 360px;
  height: 300px;
  max-width: calc(100% - 40px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* ensure label/h4 inside modal are full-width and centered */
.settings-box .setting-item label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.settings-box .setting-item h4 {
  margin: 0 0 10px 0; /* remove the global left margin */
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  word-break: keep-all; /* prefer not to break words */
}

.setting-item {
  display: flex;
  flex-direction: column; /* stack h4 and toggle vertically */
  align-items: center;    /* center them horizontally */
  justify-content: center;
  padding: 0 15px 0 15px;
}

.setting-item h4 {
  justify-content: center;
}

.setting-item p {
  font-size: 16px;
}

/* Toggle switch */
.switch {  
  position: relative;
  display: inline-block;
  width: 50px !important;   /* force compact width */
  height: 24px !important;  /* keep slim */
  flex-shrink: 0;           /* prevent it from stretching */
}

.slider {
  display: flex;
  flex-direction: column; /* stack h4 and toggle vertically */
  align-items: center;    /* center them horizontally */
  justify-content: center;
  position: absolute;
  cursor: pointer;
  inset: 0;  /* shorthand for top/left/right/bottom: 0 */
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #000000;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Sticks together image and text in header */
.title-wrapper {
  display: flex;
  align-items: center; /* keeps text & images vertically aligned */
  gap: 75px;            /* space between text and image */
}

.title-wrapper img {
  width: 20px;  /* adjust size */
  height: auto;
}



/* P2P file sharing container */

.p2p-filesharing-container {
  margin: 30px 50px 30px 50px;
  padding: 30px 30px 30px 30px;
  background-color: #050505;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(137, 137, 137, 0.1);
  color: #acacac;
}

#drop-zone {
  border: 2px dashed #ffbf5e;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #2e2e2e;
  border-radius: 10px;
}

#drop-zone:active {
  border: 2px dashed #303030;
}

#link-container {
  margin-top: 10px;
}
button {
  padding: 10px 20px;
  margin-top: 10px;
}
progress {
  width: 100%;
  height: 20px;
}

/* Password Input */
/* Hidden by default */
#options-container {
  display: none;
  margin-top: 15px;
  margin-left: 35%;
  flex-direction: row; /* side-by-side */
  align-items: center;
  justify-content: center; /* center horizontally */
  gap: 10px; /* spacing between input & button */
  gap: 10px;
}

/* We keep the flex properties but do NOT set display:flex here */
#file-password {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 250px;
  text-align: center;
}

#send-button {
  background-color: #00BE4B;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#send-button:hover {
  background-color: #009E3F;
}
