:root{
    --background: #c7b8b8; /* Page background */
    --surface: #ffffff; /* Cards and containers */
    --primary: #4a90e2; /* Buttons, headers */
    --primary-dark: #357ab8; /* Buttons hover */
    --secondary: #7b8a97; /* Navigation items and labels */
    --accent: #f5a623; /* Warinngs, icons or CTAS */
    --text-primary: #1c1e21; /* Main text */
    --text-secondary: #5a5a5a; /* Subtext, timestasmp, etc */
    --border: #dcdfe3; /* Outlines and dividers */
    --card-shadow: rgba(0, 0, 0, 0.05); /* Suble shadows for cards */
}

html, body{
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

body{
    background-color: var(--primary);
    color: var(--text-primary)
}

header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 5px;
    flex-shrink: 0;
}

header h1{
    display: flex;
    margin-left: 20px;
}

.container{
    display: flex;
    flex: 1; /* This makes if fill the remaining space under the header */
    overflow: hidden; /* Prevent overflow issues (scrollbars) */
    margin-bottom: 10px;
}

nav{
    margin-left: 20px;
    background:  #f3f3f3;
    width: 200px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    overflow-y: auto; /* Scrollable if content overflows */
    border: 1px solid black;
    border-radius: 8px;
}

main{
    flex: 1;
    margin-left: 20px;
    margin-right: 20px;
    overflow: clip; /* Scrollable if content overflows */
    border: 1px solid black;
    border-radius: 8px;
}

.sidebar{
    list-style: none;
    padding: 0;
}

li{
    list-style: none;
}

.sidebar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sidebar li{
    cursor: pointer;
    margin-top: 10px;
}

svg{
    width: 30px;
}

#task-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 5 equals columns */
    gap: 16px;
    padding: 20px;
    height: 100%;
    align-content: start;
    overflow-y: auto;
    max-height: calc(92vh - 50px);
    padding-bottom: 1.2rem;
}

.task-card{
    background: #f5f5f5;;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--surface);
    box-shadow: 0 2px 5px var(--card-shadow);
    border: 1px solid var(--border);
    height: 200px;
}

.dropdown-button{
    background: var(--primary);
    width: 160px;
    height: 35px;
    font-size: 1.5rem;
}

.dropdown-button:hover{
    background: var(--primary-dark);
}

.task-card.placeholder{
    visibility: hidden;
}

.user-div-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.user-div-container > svg{
    margin-right: 10px;
}

.div-dropdown-menu {
    position:relative;
    display: inline-block;
}

.dropdown-content{
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index:1;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.div-dropdown-menu:hover .dropdown-content {
  display: block;
}

.task-card{
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adding-task-card{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#create-task-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Everything about the modal */

.modal-hidden,
.hidden{
    display:none;
}

.button-modal{
    margin-top: 5px;
}

.container-modal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid black;
    height: 350px;
    width: 400px;
    background-color: var(--primary);
    border-radius: 15px;
}

.button-close-modal{
    position:absolute;
    top: 3%;
    right: 3%;
    border-radius: 2px;
    cursor: pointer;
}

.button-close-modal:hover{
    background-color:#c7b8b8;
}

#title,
#content{
    width: 260px;
    margin-bottom: 5px;
}

#content{
    height: 60px;
}

label{
    margin-top: 8px;
}

.button-modal{
    border-radius: 5px;
    box-shadow: 10px 5px 5px rgb(86, 86, 86);
    margin-top: 10px;
}

#loader{
    font-size: 2rem;
    text-align: center;
    justify-content: center;
    margin-top: 1rem;
    background-color: white;
    width: 200px;
    height: 40px;
    border-radius: 10px;
}