@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Base */
:root {
    --primary-color: #333;
    --light-color: #f8f8ff;
    --success-color: #5cb85c;
    --error-color: #d9534f;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 62.5%;
}

body {
    overflow-y: hidden;
    overflow-x: hidden;
    /* background-color: hsl(224, 38%, 94%); */
    background-color: #bab9b9;
    color: var(--primary-color);
    font-family: "Lato", sans-serif;
    line-height: 1.2;
    padding: 30px;
    height: 100vh;
}
::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
	background-color: #CCCCCC;
    border-radius: 10px;
}

::-webkit-scrollbar
{
	width: 10px;
	background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb
{
    border-radius: 10px;
	background-color: #FFF;
	background-image: -webkit-linear-gradient(90deg,
    rgb(221, 219, 219) 5%, rgb(16, 15, 15) 45%, transparent 100%, rgb(221, 219, 219) 85%, transparent)
}
/* App container grid */
.app {
    border-color: #e43131;
    display: grid;
    /* grid-template-columns: 225px 1fr; */
    grid-template-columns: 300px 1fr;
    border-radius: 16px;
    overflow: hidden;
    height: auto;
}

/* Utilities */
.btn {
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: inline-block;
    padding: 12.50px 30px;
    border-radius: 5px;
    border: none;

}

.btn:hover {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Header */
.header {
    /* color: var(--primary-color); */
    padding: 1.6rem;
    position: sticky;
}

.header-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.currently-viewing {
    font-size: 1.5rem;
}

.currently-viewing > span {
    font-weight: bold;
    color: #e43131;
    cursor: pointer;
}

/* Sidebar Form */
.sidebar{
    background-color: #252525;
    color: whitesmoke;
}
.sidebar-form .form-control {
    border-radius: 15px;
    margin: 10px 0;
}

.sidebar-form input {
    border: 0;
    width: 100%;
    margin: 10px;
    padding: 3px 0;
    /* padding: 8px; */
    font-size: 16px;
    background-color: transparent;
}

.sidebar-form input:focus {
    /* padding: 10px; */
    outline: none;
}
.category{
    padding: 0;
    background-color: #efecec;
    color: #F5F5F5;
}
.sidebar-form button {
    width: 100%;
}

/* Sidebar List */

.sidelist{
    overflow-y: auto;
    /* height: auto; */
    height: 402px;
    border: #333;
}
.sidebar-list {
    padding: 1.6rem;
}

.sidebar-item {
    display: inline-flex;
    align-items: center;
    width: 100%;
    margin: 16px 0;
    cursor: pointer;
    font-size: 1.75rem;
}

.sidebar-item.active {
    font-weight: bold;
}

.sidebar-item:first-child {
    z-index: 1;
    position: absolute;
    margin-top: 0;
}

.sidebar-color {
    /* border: white solid; */
    border: none;
    background: transparent;
    border-radius: 50%;
    width: 25px;
    margin-left: auto;
    cursor: pointer;
}

/* Main */
.main {
    background-color: var(--light-color);
    height: 602px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}
/* 
.main::-webkit-scrollbar {
    display: none;
} */

.main .header {
    background: var(--light-color);
    /* display: flex;
    justify-content: space-between; */
    /* position: fixed; */
    align-items: center;  
    width: 100%; 
}
.main .header .welcome{
    text-align: center;
    background-color: #252525;
    padding: 20px;
    color: #f8f8ff;
    border-radius: 15px;
}
.main .header .create-todo-form{
    margin-top: 8px;
    padding: 10px;
    background-color: rgb(217, 217, 217);
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}
.help{
    align-self: center;
    font-size: 16px;
    color: #252525;
}
.help i{
    cursor: pointer;
    color: red;
}

/* Create and Edit Form */
.create-todo-form input, .edit-todo-form input,
.create-todo-form select, .edit-todo-form select {
    border: 0;
    width: 100%;
    padding: 3px 0;
    font-size: 16px;
    background-color: transparent;
}

.create-todo-form input:focus, .edit-todo-form input:focus,
.create-todo-form select:focus, .edit-todo-form select:focus {
    outline: none;
}

.create-todo-form, .edit-todo-form {
    display: flex;
    column-gap: 30px;
    /* justify-content: space-between; */
    align-items: flex-end;
    flex: 10;
}

.create-todo-form input, .edit-todo-form input {
    border-bottom: 1px solid #b4b3cb;
    width: 350px;
}

.edit-todo-form {
    display: none;
}

/* Cards */
.todos-container {
    display: grid;
    grid-template-columns: repeat(4,1fr); 
    grid-auto-rows: max-content;
    gap: 20px;
    padding: 1.8rem;
    overflow: auto;
}

.todo {
    background-color: #fff;
    color: var(--primary-color);
    border-top: 6px solid;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.todo-tag {
    font-size: 1.6rem;
    padding: .5rem 2.5rem;
    border-radius: 5px;
    margin-bottom: 8px;
}

.todo-description {
    font-size: 1.6rem;
    margin: 1rem 0 2rem 0;
    word-break: break-all;
}

.todo-actions {
    margin-top: auto;
}

.todo-actions i {
    font-size: 1.6rem;
    margin-right: 1.6rem;
    opacity: 0.5;
    cursor: pointer;
}
