* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
  

body {
    background-color: #0f0f12;
    color: #ffffff;
    height: 100-vh;
}

.appContainer {
    display: flex;
    height: 100vh;
    scrollbar-color: #0f0f12 #3c3c3c;
}

/* Sidebar Styling */
.sidebar {
    font-size: .9rem;
    width: 240px;
    background-color: #1a1a21;
    padding: 50px 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    cursor: pointer;
    color: #a0a0a0;
}

.sidebar li.active {
    background-color: #33333d;
    color: white;
    border-radius: 8px;
    margin: 0px 15px;
}

.sidebar li:hover:not(.active) {
    color: white;
}

.sidebar a {
    display: block;
    padding: 12px 55px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    width: 100%;
    border-radius: 8px;
}

/* Main Content Layout */
.mainContent {
    flex-grow: 1;
    padding: 100px;
    overflow-y: auto;
}

h1 {
    padding: 100px, 0px;
    font-size: 2rem;
    margin-bottom: 20px;
}

.divider {
    border: none;
    border-top: 1px solid #333;
    margin: 40px;
}

.workspaceGrid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.3fr; /* width ration of 1:2:1.3*/
    gap: 2%;
}

.shopGrid {
    display: grid;
    grid-template-columns: 1fr 0.25fr;
    gap: 2%;
}

.flexContainer {
    display: flex;
    align-items: stretch; 
    margin-bottom: 20px;
  }

.flexContainer a{
    padding: 8px;
}

.column h2 {
    font-size: 1.4rem;
    margin: 0px, 10px;
}

.column label {
    display: block;
    font-size: 0.85rem;
    margin-top: 17px;
    margin-bottom: 13px;

    color: #cccccc;
}

/* Textarea Styling */
textarea {
    width: 100%;
    background-color: #1e1e26;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: #d1d1d1;
    padding: 15px;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: #4a4a5a;
}

#notesText { height: 300px; }
#mainText { 
    height: 150px; 
    resize: vertical;
    min-height: 200px; 
    overflow: auto;
}
#citationText { height: 100px; }

.citationHeader {
    margin-top: 30px;
}

/* stats  */
.stats{
    line-height: 30px;
}
.statsGreen {
    color: #76c893;
    background: #1a2e24;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 2px 3px 30px #2d6256; 

}

.meterContainer {
    margin: 20px, 0px;
}

.meterBar {
    width: 100%;
    height: 10px;
    background-color: #2a2a35;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 45px;
    margin-bottom: 45px;

}

.meterFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(-45deg, #4a90e2, #76c893);
    background-size: 100%, 100%;
    border-radius: 5px;
    transition: width 0.02s linear; 
    box-shadow: 0 0 10px #4a90e2; 

}

.toggleContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #cccccc;
}

.stats p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #cccccc;
}

/* button */

button {
    background-color: #282828;
    border: 2px solid #5c5a5a;
    border-radius: 5px;
    color: rgb(179, 179, 179);
    padding: 0px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: .6rem;
    cursor: pointer;
}

.flexContainer a button{
    margin-top: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: .9rem;

}

.wordTracker thead, th, td {
    font-size: 15px;
    padding: 4px;
    background-color: #38383d;
}

.wordTrackerContainer th, td {
    font-size: 13px;
    padding: 4px;
    background-color: #26262a;
}

.errorMessage {
    color: rgb(207, 90, 90); 
    padding-bottom: 20px; 
    display: none;
}