* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit';
}

:root {
    --bg-color: #111518;
    --smd-bf-color: #262840;
    --text-color: #fff;
    --main-color: #59B2F4;
    --place-holder: #757575;
    --black: #000;
    --btn-colour: #005f99;
    --btn-colour-hover: #004a77;
    --overlay-colour : rgba(0,0,0,0.9);
    --close-btn : #333;
    --green : green;
    --red : red;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
     margin-bottom: 2rem;
}

section {
    padding: 2rem 9% 0;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;

}

.header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

svg {
    width: 3.5rem;
    height: 3.5rem;
}

.header .nav-text {
    font-size: 4rem;
}

.nav-bar .nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-bar .nav-links a {
    color: var(--text-color);
}

.nav-bar .nav-links a.active {
    background-color: var(--main-color);
    color: var(--bg-color);
    border-radius: 10px;
    padding: 1rem;
}

.brake-line {
    border: none;
    height: 2px;
    background-color: var(--text-color);
    margin: 1rem 0;
}


select:invalid {
    color: var(--place-holder);
}

select option {
    color: var(--black);
}

/*-----index.html------*/

.prediction-text {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: -30px;
    font-weight: 200;
}

.user-input {
    padding: 0 8%;
}

.form {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-text {
    width: 400px;
    font-weight: 500;
    font-size: 1.2rem;
}

.form-colon {
    margin-right: 60px;
}

.form-input {
    flex: 1;

}

.form-input select,
.form-input input {
    margin-left: 50px;
    width: 90%;
    height: 30px;
    padding: 5px;
    border-radius: 4px;
}

.checkbox {
    margin-top: 20px;
    display: flex;
    justify-self: start;
    justify-content: start;
    align-items: center;
    gap: 50px;
    font-size: 1.3rem;
    width: 100%;
}

#myCheckbox {
    transform: scale(1.5);
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
}


.btn {
    display: flex;
    justify-content: end;
    gap: 30px;
}

.btn input[type="submit"],
.btn input[type="reset"]  {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background-color: var(--btn-colour);
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn input[type="submit"]:hover,
.btn input[type="reset"]:hover {
    background-color: var(--btn-colour-hover);
}

.result {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: var(--text-color);
    width: 40%;
    border-radius: 10px;
}

.result,
.result-text {
    font-size: 1.3rem;
    font-family: 'Outfit';
    font-weight: 500;
    color: var(--black);
}



.result.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color:var(--overlay-colour);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: default;
}

.overlay-content {
  position: relative;
  background: var(--text-color);
  color: var(--black);
  padding: 2rem 3rem;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 0 10px var(--overlay-colour);
  cursor: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--close-btn);
  line-height: 1;
  padding: 0;
}
.close-btn:hover {
  color: var(--black);
}


/* -------dashboard.html-------*/
.dashboard{
    font-size: 3rem;
    margin-bottom: 1rem;
    margin-top: -40px;
    font-family: 'Outfit';
}
.task-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); 
    gap: 1.5rem;
}

.indi-task {
    background-color: var(--text-color);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 0.8rem;
}

.task {
    display: flex;
    font-size: 1rem;
}

.attribute {
    font-weight: bold;
    width: 140px;
}

.colon {
    margin: 0 5px;
}

.value {
    flex-grow: 1;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-colour); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {
  background-color: var(--text-color);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  max-width: 400px;
  box-shadow: 0 4px 15px var(--overlay-colour);
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--close-btn);
}

.flash-message.success {
  color: var(--green);
  font-weight: bold;
}

.flash-message.error {
  color: var(--red);
  font-weight: bold;
}

.task-btn{
    display: flex;
    justify-self: end;
    gap:30px;
}
.task-btn a{
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background-color: var(--btn-colour);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.task-btn a:hover{
    background-color: var(--btn-colour-hover);
}

.update-btn{
    margin-right: 10px;
}