@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
#them_toggle{
  background-color: transparent;
  border: none;
  margin: 0;
  cursor: pointer;
  position: relative;
}
#them_toggle svg{
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.3s ease;
  opacity: 0;
}

:root {
  /* Light Mode */
  --backgroundcolor: 245, 245, 245;
  --secbackgroundcolor: 249, 249, 249;
  --headfootcolor: 230, 165, 60;
  
  --ptext_color: 60, 60, 60;
  --htext_color: 30, 30, 30;
  
  --primarycolor: 220, 95, 0;
  --secondarycolor: 150, 150, 150;
  
  --decolor1: 220, 95, 0;
  --decolor2: 40, 40, 40;
  
  --temp_color: 255, 255, 255;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}
  
  .dark_mode {
    --backgroundcolor:25, 26, 26;
    --secbackgroundcolor:49, 49, 49;
    --headfootcolor:17, 17, 17;
    
    --ptext_color:200, 200, 200;
    --htext_color:233, 235, 238;

    --primarycolor:255, 166, 0;
    --secondarycolor: 100, 100, 98;

    --decolor1:220, 95, 0;
    --decolor2:55, 58, 64;

    --temp_color:25, 26, 26;
  }
  
  html,
  body {
    max-width: 100vw;
    min-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: (1vw + 1vh)/2;
    padding: 0; 
    margin: 0;
  }
  html {
    scroll-behavior: smooth;
    color-scheme: light dark;

  }
  body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(120deg, rgba(var(--temp_color)), rgb(var(--backgroundcolor)) );
  }
  body h1, body h2, body h3, body h4, body h5, body h6, body a, body legend{
    color: rgb(var(--htext_color));
  }
  body input, body label, body select, body p, body textarea, body li, body button{
    color: rgb(var(--ptext_color));
  }
  svg{
    fill: rgb(var(--htext_color));
}
  
  .box>h1{
    color: rgb(var(--htext_color));
     margin-left: 8vw;
     font-size: 2em;
  }

* {

    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

p {
    font-family: 'Roboto', sans-serif;
}

a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500; 
    text-decoration: none; 
}

button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; 

}

input, textarea, select {
    font-family: 'Roboto', sans-serif;

}

  


  
 
  /*-----------------------------------main button---------------------------------------------*/
  .main_btn{
    color: rgb(var(--htext_color));
    font-size: 1.2em;
    text-decoration: none;
    background-color: transparent;
    padding: 0.5vh;
    padding: 0.5vh 1vw;
    border: 1px solid rgb(var(--primarycolor));
    border-radius: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .main_btn:hover{
    background-color: rgb(var(--primarycolor));
    border-radius: 1vh;
  }

    /*-----------------------------------main input---------------------------------------------*/

  
  .main_input{
    background-color: rgb(var(--backgroundcolor));
    border: 1px solid rgba(var(--ptext_color),0.4);
    border-radius: 8px;
    font-size: 1.2em;
    color: rgb(var(--htext_color));
  
  }
  .main_input{
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgb(var(--secondarycolor));
    background-color: transparent;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: normal;
    font-size: medium;
  }
  .main_input +label{
    position: absolute;
    left: 1vw;
    bottom: 0;
    top: 0;
    transform: translateY(30%);
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .main_input:hover +label,
  .main_input:focus +label,
  .main_input:not(:placeholder-shown) + label {
    color: rgb(var(--primarycolor));
    font-size: 1em;
    top: -3vh;
    transform: translateY(0%);
    transition: all 0.3s ease;
  }
  .main_input:hover{
    border-color: rgb(var(--primarycolor));
  }

  /*-----------------------------------second input----------------------------------------------*/
  .sec_input{

    outline: none;
    padding: 0.5em 0.5em;
    box-sizing: border-box;
    background-color: rgb(var(--secondarycolor),0.2);
    border:1px solid rgb(var(--secondarycolor));
    border-radius: 0.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  .sec_input:hover, .sec_input:focus{
      box-shadow: 0px 0px 3px rgba(var(--primarycolor), 0.7);
      border-color: rgb(var(--primarycolor)); 
  }
  /*-----------------------------------underline links---------------------------------------------*/
  .undlink{
    text-decoration: none;
    position: relative;
    color: rgb(var(--htext_color));
  }
  .undlink::after{
    content: '';
    position: absolute;
    width: 0;
    height: 10%;
    left: 0;
    bottom: -5%;
    transition: all 0.5s ease;
    background-color: rgb(var(--primarycolor));
  }
  .undlink:hover::after{
    width: 100%;
  }
  
  
  /*-----------------------------------drop down---------------------------------------------*/
  .dropdown{
      position: relative;
      overflow: visible;
      margin-top: auto;
      margin-bottom: auto;
  }
  .dropdown_menu{
      position: absolute;
      background-color: rgb(var(--secbackgroundcolor));
      padding: 5% ;
      width: 20vh;
      border-radius: 0.5vh;
      display: flex;
      flex-direction: column;
      opacity: 0;
      box-shadow: 0px 1px 10px rgb(var(--backgroundcolor));
      transition: all 0.5s ease;
      transform: translateY(-10%);
      pointer-events: none;
  }
  
  .dropdown_menu a{
      text-decoration: none;
      color: rgb(var(--htext_color));
      padding: 5% 10%;
      font-size: 1.1em;
      border-radius: 1vh;
  }
  .dropdown_menu a:hover{
      background-color: rgba(var(--backgroundcolor),0.4);
      color: rgb(var(--primarycolor));
      pointer-events: all;
  }
  .dropdown >a:hover +.dropdown_menu,
  .dropdown_menu:hover{
     opacity: 1;
     transform: translateY(5%);
     pointer-events: all;
  }
  
  /*-------------------side effect------------------------*/
  .sideeffect{
    position: relative;
  }
  
  .sideeffect::before{
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -0;
    background-color: rgb(var(--primarycolor));
    opacity: 0.1;
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  .sideeffect:hover::before{
    width: 110%;
  }
  .sideeffect::after{
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: rgb(var(--primarycolor));
    opacity: 1;
  
    transition: all 0.1s ease;
  }
  .sideeffect:hover::after{
    width: 2%;
  }
  /*------------------- PREMIUM MESSAGE BOX ------------------------*/
.alert-danger li {
    color: rgba(255, 100, 100, 0.95);
    margin-bottom: var(--space-xs);
    list-style-type: disc;
    list-style-position: inside;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.active {
    display: block !important;
    animation: floatIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        145deg,
        rgb(var(--secbackgroundcolor)) 0%,
        rgba(var(--secbackgroundcolor), 0.98) 100%
    );
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: 9999;
    width: 36vw;
    min-width: 380px;
    max-width: 560px;
    overflow: hidden;
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--primarycolor), 0.15);
}

.message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--primarycolor), 0.08) 0%,
        rgba(var(--primarycolor), 0.03) 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.active.message::before {
    opacity: 1;
}

.msgcontainer {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
}

/* Enhanced slideright animation */
.active .msgcontainer::before {
    content: '';
    position: absolute;
    bottom: 1.8vh;
    left: -15%;
    width: 15%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(var(--primarycolor), 0) 0%,
        rgba(var(--primarycolor), 0.95) 50%,
        rgba(var(--primarycolor), 0) 100%
    );
    border-radius: 100%;
    filter: drop-shadow(0 0 6px rgba(var(--primarycolor), 0.7));
    animation: 
        slideright 2.8s infinite cubic-bezier(0.4, 0, 0.2, 1),
        pulse 2.8s infinite ease-in-out;
    transform-origin: center;
}

@keyframes slideright {
    0% { left: -15%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 115%; opacity: 0; }
}

@keyframes pulse {
    0%, 100% { height: 2px; }
    50% { height: 3px; }
}

.msgcontainer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(var(--primarycolor), 0.85),
        rgba(var(--primarycolor), 0.25)
    );
}

.msgtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-sm);
    position: relative;
}

.msgtop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(var(--primarycolor), 0.3) 0%,
        rgba(var(--primarycolor), 0.1) 100%
    );
}

.msgtop label {
    color: rgb(var(--htext_color));
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(
        90deg,
        rgba(var(--primarycolor), 0.9),
        rgba(var(--primarycolor), 0.7)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(var(--primarycolor), 0.08);
}

.msgtop button {
    background: rgba(var(--primarycolor), 0.1);
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    place-items: center;
    box-shadow: 
        0 0 0 1px rgba(var(--primarycolor), 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.msgtop button:hover {
    background: rgba(var(--primarycolor), 0.25);
    transform: rotate(90deg) scale(1.1);
}

.msgtop button svg {
    fill: rgb(var(--primarycolor));
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.msgcontent {
    padding: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    
}

.msgcontent p {
    color: rgb(var(--ptext_color));
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.btncontainer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding-top: var(--space-sm);
}

.cancelbtn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(var(--primarycolor), 0.08);
    color: rgb(var(--primarycolor));
    border: 1px solid rgba(var(--primarycolor), 0.25);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cancelbtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(var(--primarycolor), 0.15),
        rgba(var(--primarycolor), 0.05)
    );
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.cancelbtn:hover {
    background: rgba(var(--primarycolor), 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(var(--primarycolor), 0.15),
        0 2px 4px rgba(var(--primarycolor), 0.1);
}

.cancelbtn:hover::before {
    transform: translateX(0);
}

.msginputbox{
  display: flex;
  justify-content: space-between;
  gap: 0.5em;

}
.msginputbox label{
  min-width: 100px;
  width: fit-content;
}
.msgcontent form{
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.msgcontent input,
.msgcontent select {
    padding: 0.3rem 0.5em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primarycolor), 0.2);
    background: rgba(var(--backgroundcolor), 0.7);
    color: rgb(var(--ptext_color));
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 0 0 1px rgba(var(--primarycolor), 0);
      border-radius: 0.5em;
      width: 100%;
}

.msgcontent input:focus,
.msgcontent select:focus {
    border-color: rgba(var(--primarycolor), 0.5);
    box-shadow: 
        0 0 0 3px rgba(var(--primarycolor), 0.15),
        inset 0 1px 3px rgba(0,0,0,0.1);
    outline: none;
}

/* Status Variations */
.message.success {
    border-color: rgba(78, 190, 78, 0.25);
}
.message.success .msgtop label {
    background: linear-gradient(90deg, #4EBE4E, #3AA73A);
    -webkit-background-clip: text;
    background-clip: text;
}
.message.success .msgcontainer::after,
.message.success .active .msgcontainer::before {
    background: linear-gradient(90deg, rgba(78, 190, 78, 0.9), rgba(78, 190, 78, 0.4));
}

.message.error {
    border-color: rgba(245, 73, 73, 0.25);
}
.message.error .msgtop label {
    background: linear-gradient(90deg, #F54949, #E03A3A);
    -webkit-background-clip: text;
    background-clip: text;
}
.message.error .msgcontainer::after,
.message.error .active .msgcontainer::before {
    background: linear-gradient(90deg, rgba(245, 73, 73, 0.9), rgba(245, 73, 73, 0.4));
}

/* Responsive */
@media (max-width: 768px) {
    .message {
        width: 90vw;
        min-width: unset;
    }
}
  /*-------------------side effect------------------------*/

@keyframes slideright{
    0%{
        transform: translateX(0);
    }
    80%{
        transform: translateX(2200%);
    }
    100%{
        transform: translateX(2200%);
    }
}


/*------------------------------------redirect link-------------------------------------------*/
.redilink{
  color: inherit;
  text-decoration: none;
  padding: 0 0.5em;
  border-radius: 1em;
  transition: all 0.3s ease;
}
.redilink::after{
  content: " ⊳";
  color: rgb(var(--decolor1));
}
.redilink:hover::after{
  color: rgb(var(--decolor2));
}
.redilink:hover{
  background-color: rgb(var(--decolor1));
  color: rgb(var(--decolor2));

}
  /*-----------------------------------animations---------------------------------------------*/
  
  @keyframes appear {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: scale(0.8) translateX(-100%);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateX(0);
    }
}

.appear {
    opacity: 0; 
}
  @keyframes appear_top {
    from{
        opacity: 0;
        filter: blur(5px);
        transform: scale(0.8);
        transform: translateY(-100%);
    }
    to{
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
        transform: translateX(0);
    }
  }
  @keyframes appear_right {
    from{
        opacity: 0;
        filter: blur(5px);
        transform: scale(0.8);
        transform: translateX(+100%);
    }
    to{
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
        transform: translateX(0);
    }
  }
  @keyframes appear_bottom {
    from{
        opacity: 0;
        filter: blur(5px);
        transform: scale(0.8);
        transform: translateY(+100%);
    }
    to{
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
        transform: translateX(0);
    }
  }
  .fadin2{
    animation: fadin2 both 1s ease-in-out;

  }
  @keyframes fadin {
    from{
        transform: scale(0.5);
    }
    to{
        transform: scale(1);
    }
  }
  @keyframes fadin2 {
    from{
        transform: scale(0.8);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
  }