 * {
    box-sizing: border-box;
    margin: 0;
    scrollbar-width: thin;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    background: black;
    color: #fff;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -100;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, 40px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 60px) scale(0.9);
    }
    75% {
        transform: translate(10px, -20px) scale(1.05);
    }
}

/* Individual splash elements with different colors and animations */
.splash:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #ff4e50;
    top: 10%;
    left: 20%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.splash:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #f9d423;
    top: 60%;
    left: 10%;
    animation-duration: 20s;
    animation-delay: -2s;
}

.splash:nth-child(3) {
    width: 350px;
    height: 350px;
    background: #6c5ce7;
    top: 20%;
    left: 70%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.splash:nth-child(4) {
    width: 250px;
    height: 250px;
    background: #00cec9;
    top: 70%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.splash:nth-child(5) {
    width: 500px;
    height: 500px;
    background: #fd79a8;
    top: 50%;
    left: 40%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.splash:nth-child(6) {
    width: 320px;
    height: 320px;
    background: #00b894;
    top: 5%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: -3s;
}

.splash:nth-child(7) {
    width: 280px;
    height: 280px;
    background: #e17055;
    top: 65%;
    left: 80%;
    animation-duration: 28s;
    animation-delay: -8s;
}

.header {
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.8), rgba(50, 25, 75, 0.6));
    padding: 15px 30px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2), 0 0 40px rgba(75, 0, 130, 0.1);
    z-index: 1;
    backdrop-filter: blur(10px);
}

.menu-btn {
    display: none;
}

.container {
    max-width: 1000px;
    margin: 0px auto 20px;
    padding-top: 30px;
    border-radius: 15px;
    position: relative;
    z-index: 0;
}

h1,h2 {
    text-align: center;
    color: #E8E8FF;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6), 0 0 40px rgba(75, 0, 130, 0.3);
}

/* Floating Particles Effect */
.header h1 {
    position: relative;
    overflow: visible;
}

.header h1 .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #B19CD9;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 4s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(177, 156, 217, 0.8);
}

.header h1 .particle:nth-child(1) {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.header h1 .particle:nth-child(2) {
    top: -15px;
    right: 30%;
    animation-delay: 1s;
}

.header h1 .particle:nth-child(3) {
    bottom: -20px;
    left: 40%;
    animation-delay: 2s;
}

.header h1 .particle:nth-child(4) {
    bottom: -15px;
    right: 20%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.category-tab {
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(138, 43, 226, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.6);
    border-radius: 30px;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #B19CD9;
    text-align: center;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.category-tab:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    color: #E8E8FF;
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.4));
    border-color: #B19CD9;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(75, 0, 130, 0.3);
    color: #FFFFFF;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

a{
    text-decoration: none;
    color: #B19CD9;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.operation-btn {
    padding: 12px;
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.8), rgba(50, 25, 75, 0.6));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    color: #C8A2C8;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.1);
}

.operation-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    color: #E8E8FF;
}

.operation-btn.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.3));
    border-color: #B19CD9;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(75, 0, 130, 0.2);
    color: #FFFFFF;
}

.form-container {
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.6), rgba(50, 25, 75, 0.4));
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #B19CD9;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.8), rgba(50, 25, 75, 0.6));
    color: #E8E8FF;
    box-shadow: inset 0 2px 10px rgba(138, 43, 226, 0.1);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #B19CD9;
    outline: none;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(75, 0, 130, 0.2);
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.9), rgba(50, 25, 75, 0.7));
}

/* From Uiverse.io by Spacious74 */ 
.flex {
  display: flex;
  align-items: center;
  gap: 5px;
}
.outer-cont {
  padding: 12px 20px;
  width: 10em;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #8A2BE2, #6A0DAD, #4B0082, #7B68EE);
  border-radius: 12px;
  color: #FFFFFF;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(138, 43, 226, 0.3),
    0 8px 25px rgba(75, 0, 130, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(138, 43, 226, 0.3),
      0 8px 25px rgba(75, 0, 130, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 6px 20px rgba(138, 43, 226, 0.4),
      0 12px 30px rgba(75, 0, 130, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.outer-cont::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.outer-cont:hover::after {
  left: 100%;
}

.outer-cont svg {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.outer-cont:hover svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.outer-cont:active svg {
  transform: scale(0.95);
}
.outer-cont::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 12px;
  filter: blur(0);
  z-index: -1;
  box-shadow: none;
  background: conic-gradient(
    #00000000 60deg,
    #B19CD9,
    #E8E8FF,
    #8A2BE2,
    #7B68EE,
    #B19CD9,
    #00000000 300deg
  );
  transition: all 0.3s ease;
}
.outer-cont:hover {
  background: linear-gradient(135deg, #9D4EDD, #7B2CBF, #5A189A, #8A5CF6);
  box-shadow:
    0 6px 20px rgba(138, 43, 226, 0.4),
    0 12px 35px rgba(75, 0, 130, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.outer-cont:hover::before {
  filter: blur(20px);
  opacity: 0.8;
}

.outer-cont:active::before {
  filter: blur(8px);
  transform: translateY(1px);
}

.outer-cont:active {
  box-shadow:
    0 2px 10px rgba(138, 43, 226, 0.3),
    0 4px 15px rgba(75, 0, 130, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 2px;
  transform: translateY(0);
}

.btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
    color: #E8E8FF;
    border: 1px solid rgba(138, 43, 226, 0.5);
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.4));
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4), 0 0 40px rgba(75, 0, 130, 0.2);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-primary {
    width: 100%;
}

.output {
    margin-top: 25px;
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.9), rgba(50, 25, 75, 0.7));
    color: #B19CD9;
    padding: 20px;
    font-family: 'Fira Mono', monospace;
    white-space: pre-wrap;
    border-radius: 10px;
    font-size: 1.1rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    flex: 1;
}

.Btn {
  padding: 10px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition-duration: 0.3s;
}

.svgIcon {
  fill: #2196f3;
}

.icon2 {
  width: 18px;
  height: 5px;
  border-bottom: 2px solid #2196f3;
  border-left: 2px solid #2196f3;
  border-right: 2px solid #2196f3;
}

.Btn:hover {
  background-color: #01579b;
  transition-duration: 0.3s;
}

.Btn:hover .icon2 {
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid white;
}

.Btn:hover .svgIcon {
  fill: white;
  animation: slide-in-top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

.copy {
  --button-bg: white;
  --button-hover-bg: #01579b;
  --button-text-color: #2196f3;
  --button-hover-text-color: white;
  --button-border-radius: 50%;
  --button-diameter: 50px;
  --button-outline-width: 1px;
  --button-outline-color: rgb(141, 141, 141);
  --tooltip-bg: #f4f3f3;
  --toolptip-border-radius: 4px;
  --tooltip-font-family: Menlo, Roboto Mono, monospace;
  --tooltip-font-size: 12px;
  --tootip-text-color: rgb(50, 50, 50);
  --tooltip-padding-x: 7px;
  --tooltip-padding-y: 7px;
  --tooltip-offset: 8px;
}

.copy {
  box-sizing: border-box;
  width: var(--button-diameter);
  height: var(--button-diameter);
  border-radius: var(--button-border-radius);
  background-color: var(--button-bg);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}

.tooltip {
  position: absolute;
  opacity: 0;
  visibility: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: var(--tooltip-font-size) var(--tooltip-font-family);
  color: var(--tootip-text-color);
  background: var(--tooltip-bg);
  padding: var(--tooltip-padding-y) var(--tooltip-padding-x);
  border-radius: var(--toolptip-border-radius);
  pointer-events: none;
  transition: all var(--tooltip-transition-duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tooltip::before {
  content: attr(data-text-initial);
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: calc(var(--tooltip-padding-y) / 2 * -1);
  width: var(--tooltip-padding-y);
  height: var(--tooltip-padding-y);
  background: inherit;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: -999;
  pointer-events: none;
}

.copy svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkmark {
  display: none;
}

/* actions */

.copy:hover .tooltip,
.copy:focus:not(:focus-visible) .tooltip {
  opacity: 1;
  visibility: visible;
  top: calc((100% + var(--tooltip-offset)) * -1);
}

.copy:focus:not(:focus-visible) .tooltip::before {
  content: attr(data-text-end);
}

.copy:focus:not(:focus-visible) .clipboard {
  display: none;
}

.copy:focus:not(:focus-visible) .checkmark {
  display: block;
}

.copy:hover,
.copy:focus {
  background-color: var(--button-hover-bg);
}

.copy:active {
  outline: var(--button-outline-width) solid var(--button-outline-color);
}

.copy:hover svg {
  color: var(--button-hover-text-color);
}

.sql-keyword {
    color: #FF6B9D;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.sql-table {
    color: #7B68EE;
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
}

.sql-string {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.sql-number {
    color: #B19CD9;
    text-shadow: 0 0 10px rgba(177, 156, 217, 0.5);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.95), rgba(50, 25, 75, 0.8));
    color: #B19CD9;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3), 0 0 40px rgba(75, 0, 130, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .header h1 {
        animation: textReveal 1.5s ease-out, headerFloat 3s ease-in-out infinite 1.5s, headerGlow 1.5s ease-in-out infinite alternate 1.5s;
    }

    .header h1 .fa-database {
        animation: databaseSpin 2.5s linear infinite, iconPulse 1.5s ease-in-out infinite;
    }

    .header h1 .particle {
        width: 3px;
        height: 3px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .header-top h1 {
        order: 1;
    }

    .header-actions {
        order: 2;
    }

    .logout-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .logout-btn span {
        display: none;
    }

    .operation-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .category-tabs {
        flex-direction: row;
        align-items: center;
        display: none;
    }

    .category-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .menu-btn {
        display: inline-block;
        background: transparent;
        color: #B19CD9;
        margin-right: 30px;
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header{
      width: 100%;
    }

    .header-H1{
      display:inline;
      position: relative;
      width: 90%;
    }

    .header-menu-btn{
        width: 10%;
        display: inline;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .category-tabs {
        flex-direction: row;
        align-items: center;
        display: none;
    }

    .category-tab {
        width: 100%;
        margin-top: 20px;
        text-align: center;
        font-size: 0.75rem;
    }

    .operation-grid {
        grid-template-rows: 1fr;
    }
   
    .menu-btn {
        display: inline-block;
        background: transparent;
        color: #B19CD9;
        margin-right: 30px;
        text-align: right;
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }

    h1 {
        font-size: 1.6rem;
    }

    .btn-primary {
        padding: 12px 15px;
    }
}

/* Login and Register Form Styles */
.login-split {
    display: flex;
    /* min-height: 100vh; */
    /* align-items: center; */
    justify-content: center;
    padding-top: 20px;
}

.login-form-pane {
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.8), rgba(50, 25, 75, 0.6));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2), 0 0 50px rgba(75, 0, 130, 0.1);
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 100%;
}

.login-form-wrap h2 {
    color: #E8E8FF;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(153, 27, 27, 0.1));
    color: #FCA5A5;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.alert.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #B19CD9;
    font-weight: 500;
}

.form input {
    padding: 12px 16px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.8), rgba(50, 25, 75, 0.6));
    color: #E8E8FF;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(138, 43, 226, 0.1);
}

.form input:focus {
    outline: none;
    border-color: #B19CD9;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(75, 0, 130, 0.2);
    background: linear-gradient(135deg, rgba(25, 25, 50, 0.9), rgba(50, 25, 75, 0.7));
}

.form .btn {
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
