*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}



@keyframes ring{
    0%{
        transform: rotate(0deg);
        box-shadow: 1px 5px 2px var(--primary-color);
    }
    50%{
        transform: rotate(180deg);
        box-shadow: 1px 5px 2px var(--design);
    }
    100%{
        transform: rotate(360deg);
        box-shadow: 1px 5px 2px var(--primary-color);
    }
}
@keyframes text{
    0%, 100%{
     color: #000;
    }
    25%, 50%{
        color: #727272;
    }
}
:root {
    --primary-color: #DF9F3C;
    --secondary-color: #0e073c;

    --dark-color: #0e073c;
    --lit-color: #fdfdfdf0;
    --bg-cloth: #0e073cea;
}

body {
    font-size: 12px;
    background: #ebebebf0;
    scrollbar-width: thin; /* Options: auto, thin, none */
    scrollbar-color: #ffc353 #f1f1f1; /* Handle color, Track color */
}

/* Total width of the scrollbar */
::-webkit-scrollbar {
    width: 5px; /* Width of the vertical scrollbar */
}

/* Track of the scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the scrollbar track */
}

/* Handle (thumb) of the scrollbar */
::-webkit-scrollbar-thumb {
    background: var(--primary-color); /* Color of the scrollbar handle */
    border-radius: 6px; /* Rounded corners of the handle */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #ffda34; /* Color of the handle on hover */
}



.container{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1rem;
}

.nav{
    background: #fff;
    padding: 2rem 0 5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* box-shadow: 1px 3px 10px #0003; */
    position: sticky;
    top: 0;

    .fa-times{
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 28px;
        color: var(--dark-color);
        display: none;
    }

    .logo{
        width: 150px;
        img{
            width: 100%;
            object-fit: contain;
        }
    }

    > ul{
        display: flex;
        justify-self: center;
        margin-top:40%;
        height: 80%;
        flex-direction:column;

       > .list-item{
            cursor: pointer;
           border-left: 10px solid transparent;
           
           a{
               transition: all 500ms ease;
                padding: 1.5rem 0 1.5rem 3rem; 
                display: flex;
                text-transform: capitalize;
                gap: 2rem;
                font-size: 14px;
                font-weight: 700;
                color: var(--secondary-color);

                i{
                    font-size: 20px;
                }
            }
        }
        .active,
        > .list-item:hover{
            border-left: 10px solid var(--primary-color);
            background: #ebebebf0;
            
            >a{
                color: var(--primary-color);    
            }
        }
    }

   > li{
        border-left: 10px solid transparent;
        
        >a{
            transition: all 500ms ease;
             padding: 1.5rem 0 1.5rem 3rem; 
             display: flex;
             text-transform: capitalize;
             gap: 2rem;
             font-size: 14px;
             font-weight: 700;
             color: var(--secondary-color);

             i{
                 font-size: 20px;
             }
         }
     
     &:hover{
         border-left: 10px solid var(--primary-color);
         background: #ebebebf0;
         
         a{
             color: var(--primary-color);    
         }
     }
    }
 }
 .nav.active{
    left: 0 ;
 }



/* Hide dropdown menu items by default */
ul ul {
    display: none;
    position: absolute;
    background-color: #fff; /* Background color of dropdown menu */
    padding: 0;
  }
  
  /* Style dropdown menu items */
  ul ul li {
    display: block;
  }
  
  /* Style links in dropdown menu */
  ul ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
  }
  
  /* Style hover effect for dropdown menu items */
  ul ul li a:hover {
    background-color: #f4f4f4; /* Background color on hover */
  }
  
  /* Show dropdown menu when parent list item has 'open' class */
ul li.open > ul {
    display: block;
    position: static;
  }
  


  main{
    grid-column: span 4;
    padding: 2rem 1rem;
    background: #fff;



    nav{
        display: flex;
        justify-content: space-between;
        align-items: center;

        a{
            color: var(--secondary-color);
            font-size: 14px;
            padding: 1rem;
            border: 1px solid var(--dark-color);
            border-radius: 50%;
        }
      
        .admin-details{
            display: flex;
            align-items: center;
            gap: 1rem;    
            .admin-image{
                width: 40px;
                height: 40px;
                border-radius: 50%;

                img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 50%;
                }
            }
            .admin-info{
                h3{
                    font-size: 16px;
                    font-weight: 700;
                    text-transform: capitalize;
                    color: var(--dark-color);
                }
                p{
                    color: var(--dark-color);
                }
            }
        }
    }


    .display-section{
        .row{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 2rem;

            .col{
                padding: 2rem;
                display: flex;
                flex-direction: column;
                gap: 1rem;
                background: var(--lit-color);
                border-radius: 10px;
                box-shadow: 1px 1px 20px #0002;

                h2{
                    font-size: 18px;
                    text-transform: capitalize;
                    display: flex;
                    justify-content: space-between;

                    i{
                        width: 50px;
                        height: 50px;
                        display: flex;
                        border-radius: 50%;
                        align-items: center;
                        justify-content: center;
                        font-size: 26px;
                        color: var(--dark-color);
                        /* color: var(--lit-color); */
                        padding: 1rem;
                        background: #df9e3c47;
                    }
                }

                h4{
                    font-size: 40px;
                }

                a{
                    font-size: 14px;
                    font-weight: 700;
                    text-transform: capitalize;
                    color: var(--dark-color);
                    display: flex;
                    justify-content: flex-end;
                    color: green;
                }
            }
        }
    }


    form{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;

        h3{
            grid-column: span 2;
            padding: 2rem 0;
            font-size: 24px;
            font-weight: 700;
            text-transform: capitalize;
            color: var(--dark-color)
        }
        .input-field{
            display: flex;
            flex-direction: column;
            padding: 1rem;
            gap: 1rem;
            border: 1px solid #0002;

            label{
                font-size: 14px;
                text-transform: capitalize;
                color: var(--lit-color);
                background: var(--primary-color);
                width: max-content;
            }
            input{
                width: 100%;
                color: #0006;
                background: transparent;
                padding: 1rem;
                border: none;
                outline: none;
                background: transparent;
                color: var(--dark-color);
                font-size: 14px;

                &::placeholder{
                    text-transform: capitalize;
                    font-size: 12px;
                    color: #0004;
                }
            }

            textarea{
                min-height: 10rem;
                resize: vertical;
                border: none;
                outline: none;
                color: var(--dark-color);
                font-size: 14px;
                background: transparent;
            }
        }
        .textarea{
            grid-column: span 2;
        }

        button{
            background: var(--dark-color);
            border: none;
            outline: none;
            color: #fff;
            padding: 1rem;
            font-size: 14px;
            font-weight: 700;
            text-transform: capitalize;
            cursor: pointer;
            transition: all 500ms ease;

            &:hover{
                background: #cfc8ff;
                color: var(--dark-color);
            }
        }
    }

    
    table {
        width: 100%;
        padding: 1rem;
        border-collapse: collapse;

        tr {
            cursor: pointer;
            transition: all 200ms ease;
        }

        tr:nth-of-type(2n) {
            background: rgba(212, 233, 251, 0.44);
        }

        tr:hover {
            background: rgba(212, 233, 251, 0.939);
        }

        th {
            padding: 1rem;
            text-align: left;
            background: var(--primary-color);
            text-transform: capitalize;
            color: var(--color-lit-100);
            font-size: 14px;
        }

        td {
            padding: 1rem;
        }
        .action{
            display: flex;
            gap: 1rem;
            justify-content: space-between;

            a{
                padding: 1rem;
                background: var(--secondary-color);
                color: var(--lit-color);
            }
        }
    }
  }



 
.login-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;

    h1{
        color: var(--dark-color);
        text-transform: capitalize;
    }

    h6{
        font-size: 18px;
        text-transform: capitalize;
        padding: 1rem;
    }

    .success{
        background: green;
        width: min(40rem,100%);
        text-align: center;
        color: var(--lit-color);
    }
    .error{
        background: red;
        width: min(40rem,100%);
        text-align: center;
        color: var(--lit-color);
    }

    form{
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
        width: min(40rem,100%);

        .input-field{
            width: min(40rem,100%);
            /* padding: .5rem 0; */
            overflow: hidden;
            display: flex;
            align-items: center;
            border: 1px solid var(--primary-color);

            i{
                padding: 1rem 1.5rem;
                font-size: 18px;
                background: var(--primary-color);
                /* height: 70px; */
            }
            input{
                padding: 1rem;
                font-size: 14px;
                width: 100%;
                border: none;
                outline: none;
                background: transparent;

                &::placeholder{
                    font-size: 12px;
                    text-transform: capitalize;
                }
            }
        }

        button{
            padding: 1rem;
            font-size: 14px;
            cursor: pointer;
            background: var(--dark-color);
            color: var(--primary-color);
            border: none;
            outline: none;
            transition: all 500ms ease;

            &:hover{
                background: var(--primary-color);
                color: var(--dark-color);
            }
        }
    }
}

/* The Modal (background) */
.modal {
    display: none; /*Hidden by default*/
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.685); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    font-size: 20px;
    font-weight: 700;
    padding: 20px;
    border: 1px solid #888;
    width: min(40rem,90%); /* Could be more or less, depending on content size */
    text-align: center;
    button,
    a{
        padding: 1rem;
        font-size: 14px;
        color: var(--dark-color);
        background: var(--primary-color);
        cursor: pointer;
        border: 2px solid var(--primary-color);
        transition: all 350ms ease;

        &:hover{
            background: transparent;
            color: var(--dark-color);
            border: 2px solid var(--primary-color);
        }
    }
    button{
        background: var(--secondary-color);
        border: 2px solid var(--secondary-color);
        color: var(--lit-color);
    }
  }
  
  /* Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
/* The Modal (background) */
.Cmodal {
    display: none; /*Hidden by default*/
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.685); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .Cmodal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    font-size: 20px;
    font-weight: 700;
    padding: 20px;
    border: 1px solid #888;
    width: min(40rem,90%); /* Could be more or less, depending on content size */
    text-align: center;
    button,
    a{
        padding: 1rem;
        font-size: 14px;
        color: var(--dark-color);
        background: var(--primary-color);
        cursor: pointer;
        border: 2px solid var(--primary-color);
        transition: all 350ms ease;

        &:hover{
            background: transparent;
            color: var(--dark-color);
            border: 2px solid var(--primary-color);
        }
    }
    button{
        background: var(--secondary-color);
        border: 2px solid var(--secondary-color);
        color: var(--lit-color);
    }
  }
  
  /* Close Button */
  .Cclose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .Cclose:hover,
  .Cclose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
.Emodal {
    display: none; /*Hidden by default*/
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.685); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .Emodal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    font-size: 20px;
    font-weight: 700;
    padding: 20px;
    border: 1px solid #888;
    width: min(40rem,90%); /* Could be more or less, depending on content size */
    text-align: center;
    button,
    a{
        padding: 1rem;
        font-size: 14px;
        color: var(--dark-color);
        background: var(--primary-color);
        cursor: pointer;
        border: 2px solid var(--primary-color);
        transition: all 350ms ease;

        &:hover{
            background: transparent;
            color: var(--dark-color);
            border: 2px solid var(--primary-color);
        }
    }
    button{
        background: var(--secondary-color);
        border: 2px solid var(--secondary-color);
        color: var(--lit-color);
    }
  }
  
  /* Close Button */
  .Eclose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .Eclose:hover,
  .Eclose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

@media(width < 990px) {
    .container{
        grid-template-columns: 1fr;
    }
    .nav{
        position: fixed;
        width: 25%;
        top: 0;
        bottom: 0;
        left: -100rem;
        transition: all 500ms ease;

        .fa-times{
            display: flex;
        }
    }
}

@media(width < 770px){

    .nav{
        width: 40%;
    }
   main{
    .display-section{
        .row{
            grid-template-columns: repeat(2,1fr);
        }
    }
   }
}

@media(width < 690px) {
    th {
          display: none;

  }

  td {
      display: flex;
      justify-content: space-between;
      padding: 0.78rem 1rem;
  }

  td:first-child {
      padding-top: 2rem;
  }

  td:last-child {
      padding-bottom: 2rem;
  }

  td::before {
      content: attr(data-cell)" : ";
      font-weight: 700;
      text-transform: capitalize;
  }
}

@media(width < 570px){
    .nav{
        width: 80%;
    
        ul{
            margin-top: 10%;
            overflow-y: scroll;
        }
    }

    main{
    .display-section{
        .row{
            display: grid;
            grid-template-columns: 1fr;
        }
        }
    form{
        grid-template-columns: 1fr;

        h3{
            grid-column: span 1;
            font-size: 18px;
            }
            .textarea{
            grid-column: span 1;
        }
    }

    }
}

