/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

/* General Styles */
* {
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  list-style: none;
  text-decoration: none;
  color: #4105f5;
}

/* Variables */
:root {
  --main-color: #4105f5;
  --second-color: #02234f;
  --text-color: #314862;
  --bg-color: #fff;
  --hover-color: #3700b3;
  --box-shadow: 2px 2px 18px rgb(14 52 54 / 15%);
}

body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ensure content starts at the top */
    height: 100vh;
}

nav {
    width: 100%;
    padding: 10px 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 120px;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333333;
}

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

label {
    font-size: 1rem;
    color: #555555;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #4C00FF;
    outline: none;
}

textarea {
    resize: vertical;
}

input[type="file"] {
    display: none;
}

.file-button {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #4C00FF;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 150px;
    margin-top: 10px;
}

.file-button:hover {
    background-color: #3700b3;
}

button {
    width: 100%;
    font-size: 1.2rem;
    padding: 12px;
    background-color: #4105f5;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3700b3;
}

.postings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.posting {
    border: 2px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    max-width: 400px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.posting img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.posting p {
    margin: 5px 0;
    color: #555555;
}

#imagePreviewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    padding: 0;
}

.new_password_textbox {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#strengthWrapper {
    margin-top: 10px;
}

#strengthBar {
    width: 225px;  /* Make the bar shorter */
    background-color: #eee;
    height: 16px;

    border-radius: 25px;  /* Stadium shape */
    border: 2px solid black;  /* Black outline */
    position: relative;
}

#strengthLevel {
    width: 0;
    height: 100%;
    border-radius: 25px;  /* Matches the stadium shape */
    transition: width 0.3s ease-in-out;
}

#strengthText {
    margin-left: 10px;
    font-weight: bold;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 20px; /* Space for the eye icon */
}
.password-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.navbar_new_password {
    display: flex;
    gap: 15px;
  }
  
  .navbar_new_password a {
    padding: 8px 17px;
    color: var(--main-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
  }
  
  .navbar_new_password a:hover {
    color: var(--hover-color);
  }

  .logo {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
  }
  
  .logo .bx {
    font-size: 24px;
    color: var(--main-color);
  }

  .nav_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
  }