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

body {
    font-family: 'Merriweather', serif;
    background-color: #f9f6f2;
    color: #333333;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: 'Lora', serif;
    color: #4A3F35;
}

button {
    background-color: #6B4F4F;
    padding: 8px 16px;
    color: #f9f6f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0px 5px;
}

button:hover {
    background-color: #8C6E6E;
}

input[type="checkbox"] {
    background-color: #f9f6f2;
    cursor: pointer;
}

#resultMessage {
    text-align: center;
    margin-top: 20px;
    color: #7A6A5E;
}

#pageHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #DAD2C6;
    padding: 15px 40px;
    border-bottom: 1px solid #BFAFA1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#headerLeft, #headerCenter, #headerRight {
    flex: 1;
    display: flex;
    align-items: center;
}

#headerCenter {
    justify-content: center;
}

#headerRight {
    justify-content: flex-end;
}

#homeLink {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #4A3F35;
}

#homeLink:hover {
    text-decoration: underline;
}

#searchInput {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #A89F91;
    border-radius: 4px;
    background-color: #f9f6f2;
    color: #333333;
}

#searchInput:focus {
    outline: none !important;
    border: 3px solid #6B4F4F;
    padding: 9px 13px;
}

#settingsButton {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: 10px;
}

#settingsButton:hover {
    opacity: 0.8;
}

#settingsButton .iconImage {
    width: 36px;
    height: 36px;
}

#mainContent {
    max-width: 1000px;
    margin: 90px auto 20px;
    padding: 20px;
}

#tabsContent, #settingsContent {
    width: 100%;
}

.tabList {
    display: grid;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tabList li {
    display: grid !important;
    background-color: #F5F0E9;
    border-bottom: 1px solid #E0DCCF;
}

.tabList li:last-child {
    border-bottom: none;
}

.tabList li .tabContainer {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.tabList li .tabContainer a {
    text-decoration: none;
    color: #4A3F35;
    font-size: 16px;
    flex-grow: 1;
}

.tabList li .tabContainer a:hover {
    text-decoration: underline;
}

.tabList li .moveHereButton, .tabGroup .moveHereButton {
    display: block;
    background-color: #C1B7A4;
    color: #7A6A5E;
    padding: 0;
    margin: 0;
    border: 1px dashed #7A6A5E;
    border-radius: 0;
    cursor: pointer;
}

.tabList li .moveHereButton:hover, .tabGroup .moveHereButton:hover {
    background-color: #D1C4B7;
}

.tabCheckbox {
    margin-right: 10px;
}

.tabGroup {
    display: grid !important;
    margin-bottom: 20px;
    border: 1px solid #E0DCCF;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F5F0E9;
}

.groupHeaderContainer, .groupFooterContainer {
    display: flex;
    align-items: center;
    background-color: #EDE6D6;
    padding: 10px 15px;
}

.groupHeaderContainer {
    cursor: pointer;
}

.groupHeaderContainer .masterCheckbox {
    margin-right: 10px;
}

.groupHeaderContainer .groupTitle, .groupFooterContainer .tabsCount {
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

.groupHeaderContainer .groupTitle[contenteditable="true"] {
    outline: 2px solid #6B4F4F;
    background-color: #f9f6f2;
    padding: 2px;
    border-radius: 4px;
}

.groupFooterContainer .tabsCount {
    display: flex;
    justify-content: flex-end;
    margin-right: 5px;
    color: #7A6A5E;
}

.groupHeaderContainer .removeGroupButton, .groupFooterContainer .removeSelectedButton, .removeTabButton {
    background-color: #A0522D;
}

.groupHeaderContainer .removeGroupButton:hover, .groupFooterContainer .removeSelectedButton:hover, .removeTabButton:hover {
    background-color: #8B4513;
}

.groupHeaderContainer .restoreGroupButton, .groupFooterContainer .restoreSelectedButton {
    background-color: #2E8B57;
}

.groupHeaderContainer .restoreGroupButton:hover, .groupFooterContainer .restoreSelectedButton:hover {
    background-color: #3CB371;
}