* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    background-color: var(--page-bg, #101010);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: transparent;
    color: black;
    min-height: 100vh;
    line-height: 1.5;
    overflow-y: hidden;
    /* position: fixed; */
}

main {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
    
}

/* ----------------- */
/* Side bar stylings */
/* ----------------- */

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height:100vh;
    width: 240px;
    background-color: transparent;
    -webkit-backdrop-filter: blur(3px);  
    backdrop-filter: blur(3px);    
}

/* Dealing with the logo */
.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 40px;
  margin: 22px 0;
  
}

/* .logo img{
    width: 32px;
    height: 32px;
    margin-right: 5px;
} */

.logo .Desktop {
  font-size: 20px; 
  font-weight: 500;
  color: white;      
}
.logo .TDL{
  font-size: 20px;
  font-weight: 800; 
  color: white;      
}

.sidebar button,
.main-page #todo-page .buttons button,
.main-page #todo-page .controls button
 {
    width: 140px ;
    margin-bottom: 10px;
    padding: 8px 5px;
    cursor:pointer;

    color: white;
    border: 1px solid rgba(50, 50, 255, 0.5);
    border-radius: 5px;
    background: rgb(50, 50, 255, 0.5);
    -webkit-backdrop-filter: blur(5px);  
    backdrop-filter: blur(5px);   
    box-shadow: inset 0 0 10px 1px rgb(50, 50, 255, 0.5);
}
.sidebar button:hover,
.main-page #todo-page .buttons button:hover,
.main-page #todo-page .controls button:hover{
    background: rgb(50, 50, 255, 0.2);
}



/* ----------------- */
/* Styling TO DO page */
/* ----------------- */

main .main-page {
    margin: 0px 20px;
    height:100vh;
    width: 100%;
    background-color: transparent;
    -webkit-backdrop-filter: blur(3px);  
    backdrop-filter: blur(3px);   
}

.main-page #todo-page,
.main-page #settings-page,
.main-page #plans-page {
    height:calc(100vh - 15px);;
    display: flex;
    flex-direction: column;
}

.main-page #todo-page .page-title,
.main-page #settings-page .page-title,
.main-page #plans-page .page-title{
    margin: 22px 0;
    height: 40px;
    font-size: 23px; 
    font-weight: 500;
    color: white;   
}








/* Plans page */
.plans .header{
display:flex;
align-items:center;
gap:8px;
margin-bottom:8px;
}

select, input[type="text"], input[type="number"]{
  width: 180px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.calendar {
margin-top:8px;
display:grid;
grid-template-rows:auto 1fr;
gap:8px;
height:calc(100% - 120px);
}

.calendar .weekdays {
display:grid;
grid-template-columns:repeat(7,1fr);
gap:6px;
text-align: center;
font-weight:600;
color:var(--muted);
color: white;
}

.calendar-grid{
display:grid;
grid-template-columns:repeat(7,1fr);
gap:5px;
align-items:start;
padding:8px 0px;
height:100%;
}

.day-btn{
padding:10px;
border-radius:6px;
min-height:58px;
background-color:white;
border:1px dashed rgba(0,0,0,0.04);
text-align:left;
cursor:pointer;
}
.day-btn .num{ font-weight:700; display:block; margin-bottom:6px; }
.day-btn:hover{ background:rgba(33, 6, 142, 0.4); }

/*

/* Settings page */
/* .settings-grid{
display:grid;
grid-template-columns: 1fr 1fr;
gap:12px 18px;
align-items:start;
margin-top:12px;
overflow:auto;
height:calc(100% - 80px);
padding-right:6px;
}
.field { display:flex; flex-direction:column; gap:6px; }
.field-row{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.color-dot{ font-size:20px; line-height:1; }

.settings-footer{ margin-top:20px; display:flex; align-items:center; gap:8px; }

/* History */
/* .history-text{
width:100%;
height:calc(100% - 160px);
margin-top:8px;
padding:12px;
resize:none;
border-radius:8px;
border:1px solid rgba(0,0,0,0.06);
background:var(--panel);
color:var(--fg);
} */

/* small helpers */
/* .right{ text-align:right; }
.small{ font-size:calc(12px * var(--ui-scale)); color:var(--muted); }
.controls-wrap{ display:flex; gap:8px; align-items:center; }

/* responsive */
/* @media (max-width:800px){
.app{ grid-template-columns:64px 1fr; }
.sidebar{ padding:12px 6px; }
.side-btn{ padding:6px; font-size:13px; }
} */
