/* fonts  */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #F5F5F5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;        /* Set height to 100% of the viewport */
    min-height: 100vh;    /* Ensure minimum height is the viewport height */
    margin: 0;            /* Remove default margin */
}

.go-back {
    color: #555;
    padding: 8px 12px;
    transition: background-color 0.3s, color 0.3s;
}

.spinner {
    margin-left: 10px;
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  

.go-back:hover {
    background-color: #555;
    color: #fff;
}

.message-input {
    color: #555 !important;
    min-width: cacl(100% - 40px) !important;
    resize: vertical;
    height: 100px !important;
}

.container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;    /* Center elements horizontally */
    justify-content: center; /* Center elements vertically */
    margin-top: auto;
    margin-bottom: auto;
    zoom: 80%;
}

.box {
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    padding: 35px 35px;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form {
    padding-left: 10px;
    padding-right: 10px;
}

.form-box {
    margin-top: 50px;
    margin-bottom: 20px;
}

.form-box header {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: #555;
}

.form-box hr {
    background-color: #555;
    height: 5px;
    width: 20%;
    border: none;
    margin: 5px auto;
    outline: 0;
    border-radius: 5px;
}

.input-container {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}

.icon {
    padding: 15px;
    background: transparent;
    color: #555;
    background-color: #f1f1f1;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.icon-click {
    padding: 15px;
    background: transparent;
    color: #555;
    background-color: #f1f1f1;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
    pointer-events: all; /* Ensures it's clickable */
    user-select: none; /* Prevents text selection */
}

.icon-click:focus {
    outline: none; /* Prevents focus outline from appearing */
}

.input-field {
    width: 100%;
    padding: 10px;
    height: 50px;
    color: #555;
    outline: none;
    border: none;
    font-size: 15px;
    background-color: #f1f1f1;
}

.input-field:focus {
    color: #555;
}

.remember {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-bottom: 50px;
    margin-top: 20px;
}

/* Style the checkbox */
.remember .check {
    appearance: none;
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border: 1px solid #555; /* Border color */
    background-color: #fff;
    cursor: pointer;
    border-radius: 0; /* Sharp corners */
    position: relative;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.remeber .check:focus, .remember .check:active {
    outline: none;
}

/* Checkbox checked state */
.remember .check:checked {
    background-color: #555; /* Checked background color */
    border-color: #555;
}

.remember .check:checked::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Styling the "Forgot password" link */
.remember span {
    margin-left: auto; /* Aligns the link to the right */
}

.remember span a {
    text-decoration: none;
    color: #555;
}

.remember span a:hover {
    text-decoration: underline;
}


.button {
    height: 45px;
    width: 100%;
    background-color: #555;
    border: 0;
    border-radius: 0px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 15px; /* Padding inside the button */
    margin: 0; /* Remove the left and right margins */
    margin-bottom: 8px;
    box-sizing: border-box; /* Ensure padding doesn't affect the button's width */
}

.button:hover {
    opacity: 0.7;
}

.button:active, .button:focus {
    border-radius: 0px;
    border: none;
    outline: none;
}


.links {
    margin: 25px;
    text-align: center;
}

.links a {
    text-decoration: none;
    color: #555;
}

.links a:hover {
   text-decoration: underline;
}

/* Styling the file upload input */
.input-container input[type="file"] {
    display: none; /* Hide the default file input */
}

/* Custom styled label for the file input */
.input-container .custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f5f5f5; /* Light grey background */
    border: 0px; /* Grey border */
    padding: 10px 10px;
    padding-right: 15px;
    font-size: 14px;
    cursor: pointer; /* Pointer cursor to indicate clickability */
    text-align: left;
    box-sizing: border-box;
    pointer-events: all; /* Ensures it's clickable */
    user-select: none; /* Prevents text selection */
}

/* Icon on the right side of the custom upload label */
.custom-file-upload .fa {
    font-size: 18px; /* Icon size */
    color: #555; /* Icon color */
    margin-left: 10px;
    
}

/* Add hover effect for better interactivity */
.input-container .custom-file-upload:hover {
    background-color: #eaeaea; /* Slightly darker grey on hover */
    border-color: #999; /* Darker border on hover */
}

/* File name preview after upload */
.input-container .file-name {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
    font-style: italic;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

/* Remove rounded corners */
.input-container .custom-file-upload,
.input-container .file-name {
    border-radius: 0;
}

.button .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #007bff;
    z-index: 1;
    transition: width 0.3s ease;
}

.button .upload-status {
    position: relative;
    z-index: 2;
}

.button .upload-speed {
    position: absolute;
    bottom: -18px;
    right: 5px;
    font-size: 12px;
    color: #666;
    z-index: 2;
}

.button.preparing {
    background-color: #ffc107;
    color: #333;
}

.button.uploading {
    background-color: #007bff;
    color: white;
}

.button.complete {
    background-color: #28a745;
    color: white;
}


/* home page  */

.nav {
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    line-height: 60px;
    z-index: 100;
}

/* This styles the scrollbar track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* This styles the scrollbar handle */
::-webkit-scrollbar-thumb {
  background: #555;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* Handle hover color */
}

/* This styles the main scrollbar container */
::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
  height: 8px; /* Also necessary for horizontal scrollbars */
}

.logo {
    text-align: center;
    margin-bottom: 0px; /* Space between logo and form box */
}

.logo img {
  width: 260px; /* Ensure the logo is responsive */
  height: auto;
}


.right-links a {
    padding: 0 10px;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.main-box {
    display: flex;
    flex-direction: column;
    width: 70%;
}

.main-box .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bottom {
    width: 100%;
    margin-top: 20px;
}

@media only screen and (max-width: 840px) {
    .main-box .top {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .top .box {
        margin: 10px 10px;
    }

    .bottom {
        margin-top: 0;
    }
}


.message {
    text-align: left;
    /* background: #f9ede4; */
    padding: 15px 0px;
    /* border: 1px solid #699062; */
    /* border-radius: 5px; */
    /* margin-bottom: 10px; */
    color: #555;
}

select {
    appearance: none;   
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23555"><path d="M7 7l3 3 3-3" /></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 38px 38px; /* Adjust size of the arrow */
  }
  