/*//////////////////////////////////////////////////////////////////
[ FONT ]*/

@font-face {
    font-family: Poppins-Regular;
    src: url('../fonts/poppins/Poppins-Regular.ttf');
}

@font-face {
    font-family: Poppins-Medium;
    src: url('../fonts/poppins/Poppins-Medium.ttf');
}

@font-face {
    font-family: Poppins-Bold;
    src: url('../fonts/poppins/Poppins-Bold.ttf');
}

@font-face {
    font-family: Poppins-SemiBold;
    src: url('../fonts/poppins/Poppins-SemiBold.ttf');
}


/*//////////////////////////////////////////////////////////////////
[ THEME VARIABLES ]*/

:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #000000;
    --link-color: #0031b9;
    --link-hover: #000000;
    --code-bg: cornsilk;
    --timeline-circle-border: #232323;
    --timeline-line: #c6c6c6;
}

html[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #444444;
    --link-color: #5b8cff;
    --link-hover: #e0e0e0;
    --code-bg: #2a2a2a;
    --timeline-circle-border: #d0d0d0;
    --timeline-line: #555555;
}


/*//////////////////////////////////////////////////////////////////
[ RESTYLE TAG ]*/

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

html {
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nova Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}


/*---------------------------------------------*/

hr {
    margin: 0em;
    border-width: 1px;
    color: var(--border-color);
}

a {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
}

a:focus {
    outline: none !important;
}

a:hover {
    text-decoration: none;
    color: var(--link-hover);
}


/*---------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
}

p {
    font-family: Poppins-Regular;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0px;
}

ul,
li {
    margin: 0px;
    list-style-type: none;
}


/*---------------------------------------------*/

input {
    outline: none;
    border: none;
}

textarea {
    outline: none;
    border: none;
}

textarea:focus,
input:focus {
    border-color: blue !important;
}

input:focus::-webkit-input-placeholder {
    color: transparent;
}

input:focus:-moz-placeholder {
    color: transparent;
}

input:focus::-moz-placeholder {
    color: transparent;
}

input:focus:-ms-input-placeholder {
    color: transparent;
}

textarea:focus::-webkit-input-placeholder {
    color: transparent;
}

textarea:focus:-moz-placeholder {
    color: transparent;
}

textarea:focus::-moz-placeholder {
    color: transparent;
}

textarea:focus:-ms-input-placeholder {
    color: transparent;
}

input::-webkit-input-placeholder {
    color: #fff;
}

input:-moz-placeholder {
    color: #fff;
}

input::-moz-placeholder {
    color: #fff;
}

input:-ms-input-placeholder {
    color: #fff;
}

textarea::-webkit-input-placeholder {
    color: #fff;
}

textarea:-moz-placeholder {
    color: #fff;
}

textarea::-moz-placeholder {
    color: #fff;
}

textarea:-ms-input-placeholder {
    color: #fff;
}

label {
    margin: 0;
    display: block;
}


/*---------------------------------------------*/

button {
    outline: none !important;
    border: none;
    background: transparent;
}

button:hover {
    cursor: pointer;
}

iframe {
    border: none !important;
}


/* [ Home Page ] */

.loading-page {
    height: 100px;
    width: 100px;
    display: block;
    background: url(../images/loading.gif) no-repeat center;
    background-size: contain;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    margin: 0;
    padding: 0;
    filter: none;
}

/* Dark mode loading spinner - Modern three-dot pulsing animation */
html[data-theme="dark"] .loading-page {
    background: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: pulse 1.4s ease-in-out infinite;
    box-shadow: -28px 0 0 var(--text-primary), 28px 0 0 var(--text-primary);
    position: relative;
}

html[data-theme="dark"] .loading-page::before,
html[data-theme="dark"] .loading-page::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: pulse 1.4s ease-in-out infinite;
}

html[data-theme="dark"] .loading-page::before {
    left: -28px;
    animation-delay: -0.32s;
}

html[data-theme="dark"] .loading-page::after {
    right: -28px;
    animation-delay: 0.32s;
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@media only screen and (max-width: 767px) {
    .loading-page {
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100px !important;
        height: 100px !important;
    }
}

.site-body {
    display: none;
}

.site-header {
    max-width: 100%;
}

.wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

@media only screen and (max-width: 767px) {
    .wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.site-title {
    font-family: 'Special Elite', cursive;
    font-weight: bolder;
    font-size: large;
}

.site-nav {
    padding: 0px;
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary) !important;
}

.site-nav .navbar-brand img {
    filter: none;
}

html[data-theme="dark"] .site-nav .navbar-brand img {
    filter: invert(1) brightness(1.2);
}

.site-nav .brand-text {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
}

.site-nav .navbar-brand:hover {
    color: var(--text-primary) !important;
    opacity: 0.8;
}

.site-nav .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-nav .page-link {
    text-decoration: none;
    border: none;
    margin-left: 10px;
    font-size: medium;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary) !important;
    background-color: transparent;
}

@media only screen and (max-width: 767px) {
    .site-nav .page-link {
        margin-left: 0;
        padding: 0.75rem 0;
    }
    
    .site-nav .navbar-nav {
        margin-top: 1rem;
    }
    
    .site-nav .brand-text {
        font-size: 1rem;
    }
}

.site-nav .page-link:hover {
    -ms-text-underline-position: under;
    text-underline-position: below;
    text-decoration-color: var(--text-primary);
    text-decoration-style: solid;
    text-decoration-line: underline;
    background-color: transparent;
    color: var(--text-primary) !important;
    opacity: 0.8;
}

.body-head {
    margin-top: 10px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 767px) {
    .body-head {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .body-title {
        font-size: 1.1em;
    }
    
    .body-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

.body-title {
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    padding: 10px 5px 10px 5px;
    color: var(--text-primary);
}

.body-content {
    font-family: 'Syne Mono', monospace;
    font-size: medium;
    color: var(--text-primary);
    padding: 10px 5px 10px 5px;
}

.list-links {
    padding: 10px 5px 10px 5px;
}

@media only screen and (max-width: 767px) {
    .list-links {
        padding: 10px 0 10px 20px;
    }
}

.list-head {
    font-family: 'Special Elite', cursive;
    padding-bottom: 5px;
    color: var(--text-primary);
}

.link-item {
    font-family: 'Syne Mono', monospace;
}

.link-data {
    font-family: 'Syne Mono', monospace;
    color: var(--link-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media only screen and (max-width: 767px) {
    .link-data {
        font-size: 14px;
    }
}

.author_name {
    color: grey;
    font-family: 'Syne Mono', monospace;
}

@media only screen and (max-width: 767px) {
    .author_name {
        font-size: 13px;
    }
}

.project-title {
    color: var(--text-primary);
    font-weight: bolder;
    text-decoration: underline;
    text-decoration-color: var(--text-primary);
    text-decoration-style: solid;
    font-family: 'Syne Mono', monospace;
}

@media only screen and (max-width: 767px) {
    .project-title {
        font-size: 0.95em;
        word-wrap: break-word;
    }
    
    .link-item {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 0;
        margin-left: 0;
    }
    
    .link-item[style*="list-style: disc"] {
        padding-left: 0;
        margin-left: 0;
    }
}

.site-footer {
    margin: 10px 0px 20px 0px;
}

@media only screen and (max-width: 767px) {
    .site-footer {
        margin: 10px 0px 15px 0px;
    }
}

.footer-item {
    font-family: 'Courier New', Courier, monospace;
    font-size: small;
    text-decoration: none;
    border: none;
    cursor: default;
    color: inherit;
}

.footer-item:hover {
    text-decoration: none;
    cursor: default;
    color: inherit;
}

/* Links inside footer items should still work normally */
.footer-item a {
    cursor: pointer;
    color: var(--text-secondary);
}

.footer-item a:hover {
    cursor: pointer;
    color: var(--link-hover);
}

/* Social media icons in footer */
.footer-item img {
    filter: none;
}

html[data-theme="dark"] .footer-item img {
    filter: invert(1) brightness(1.2);
}

.username {
    font-family: 'Courier New', Courier, monospace;
    margin-left: 10px;
    font-size: small;
}

.footer-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-column {
    margin-bottom: 15px;
}

@media only screen and (max-width: 767px) {
    .footer-column {
        margin-bottom: 20px;
    }
    
    .footer-item {
        font-size: 13px;
    }
    
    .username {
        margin-left: 8px;
        font-size: 12px;
    }
}

.u-email {
    font-family: 'Courier New', Courier, monospace;
    font-size: small;
}

.option-bar {
    margin: 10px 0px 10px 0px;
    font-family: 'Courier New', Courier, monospace;
}

.add-project {
    display: none;
    border: solid blue 1px;
    border-radius: 10px;
    margin: 10px 0px 10px 0px;
    padding: 10px;
}

.add-link-element {
    display: none;
    border: solid blue 1px;
    border-radius: 10px;
    margin: 10px 0px 10px 0px;
    padding: 10px;
}

.add-quote {
    display: none;
    border: solid blue 1px;
    border-radius: 10px;
    margin: 10px 0px 10px 0px;
    padding: 10px;
}

.delete-entry {
    display: none;
    border: solid blue 1px;
    border-radius: 10px;
    margin: 10px 0px 10px 0px;
    padding: 10px;
}

.blog-head {
    max-width: 800px;
    border-radius: 10px;
    border: solid var(--text-primary) 5px;
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 767px) {
    .blog-head {
        border-width: 3px;
        border-radius: 8px;
    }
}

.blog-year {
    font-family: 'Syne Mono', monospace;
    padding-left: 0px;
    color: var(--link-color);
}

.blog-month {
    font-family: 'Syne Mono', monospace;
    padding-left: 20px;
    color: var(--link-color);
}

@media only screen and (max-width: 767px) {
    .blog-month {
        padding-left: 10px;
    }
}

.blog-link {
    font-family: 'Syne Mono', monospace;
    padding-left: 50px;
    color: var(--link-color);
    white-space: normal;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media only screen and (max-width: 767px) {
    .blog-link {
        padding-left: 20px;
    }
    
    .blog-month {
        padding-left: 10px;
    }
    
    .blog-year {
        padding-left: 0;
    }
}

.blog-nav {
    padding: 0px;
    height: fit-content;
}

.twitter-feed {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    border-left: var(--text-primary) solid 1px;
}

.blog-text {
    /* font-style: italic; */
    font-family: 'Syne Mono', monospace;
    background-color: var(--code-bg);
    text-align: left;
    padding: 10px;
    color: var(--text-primary) !important;
}

/* Blog page specific dark mode fixes */
html[data-theme="dark"] .body-title {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .blog-text {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .blog-text * {
    color: inherit !important;
}

html[data-theme="dark"] .blog-text p {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .blog-text blockquote {
    color: var(--text-secondary) !important;
    border-left-color: var(--border-color) !important;
}

html[data-theme="dark"] .blog-text h1,
html[data-theme="dark"] .blog-text h2,
html[data-theme="dark"] .blog-text h3,
html[data-theme="dark"] .blog-text h4,
html[data-theme="dark"] .blog-text h5,
html[data-theme="dark"] .blog-text h6 {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] .blog-content img {
    opacity: 0.9;
}

@media only screen and (max-width: 767px) {
    .blog-text {
        padding: 15px;
        font-size: 14px;
        line-height: 1.7;
    }
}

.author-line {
    font-family: 'Syne Mono', monospace;
    text-align: end;
}

@media only screen and (max-width: 767px) {
    .author-line {
        text-align: right;
        font-size: 13px;
    }
}

.delete-icon {
    cursor: pointer;
    color: #dc3545;
}

.edit-icon {
    cursor: pointer;
    color: #007bff;
}

.edit-icon:hover {
    color: #0056b3;
}

.delete-icon:hover {
    color: #c82333;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media only screen and (max-width: 767px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header .body-title {
        margin-bottom: 0;
    }
    
    .option-bar .nav-link {
        font-size: 12px;
        padding: 5px 12px !important;
    }
}

/* ------------ Timeline page ----------- */
.main-timeline {
    position: relative
}

.main-timeline:before {
    content: "";
    display: block;
    width: 2px;
    height: 100%;
    background: var(--timeline-line);
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0
}

.main-timeline .timeline {
    margin-bottom: 40px;
    position: relative
}

.main-timeline .timeline:after {
    content: "";
    display: block;
    clear: both
}

.main-timeline .icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0
}

.main-timeline .icon:before,
.main-timeline .icon:after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.33s ease-out 0s
}

.main-timeline .icon:before {
    background: var(--bg-primary);
    border: 2px solid var(--timeline-circle-border);
    left: -3px
}

.main-timeline .icon:after {
    border: 2px solid var(--timeline-line);
    left: 3px
}

.main-timeline .timeline:hover .icon:before {
    left: 3px
}

.main-timeline .timeline:hover .icon:after {
    left: -3px
}

.main-timeline .date-content {
    width: 50%;
    float: left;
    margin-top: 22px;
    position: relative
}

.main-timeline .date-content:before {
    content: "";
    width: 36.5%;
    height: 2px;
    background: var(--timeline-line);
    margin: auto 0;
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0
}

.main-timeline .date-outer {
    width: 125px;
    height: 125px;
    font-size: 16px;
    text-align: center;
    margin: auto;
    z-index: 1
}

.main-timeline .date-outer:before,
.main-timeline .date-outer:after {
    content: "";
    width: 125px;
    height: 125px;
    margin: 0 auto;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0.33s ease-out 0s
}

.main-timeline .date-outer:before {
    background: var(--bg-primary);
    border: 2px solid var(--timeline-circle-border);
    left: -6px
}

.main-timeline .date-outer:after {
    border: 2px solid var(--timeline-line);
    left: 6px
}

.main-timeline .timeline:hover .date-outer:before {
    left: 6px
}

.main-timeline .timeline:hover .date-outer:after {
    left: -6px
}

.main-timeline .timeline .text-break {
    text-align: center;
    border: 1px solid gray;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.25));
    z-index: 2;
    margin: 0 15%;
    color: white;
}

.main-timeline .date {
    width: 100%;
    margin: auto;
    position: absolute;
    top: 27%;
    left: 0
}

.main-timeline .month {
    font-size: 12px;
    font-weight: 700
}

.main-timeline .year {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--timeline-circle-border);
    line-height: 36px
}

.main-timeline .timeline-content {
    width: 50%;
    padding: 20px 0 20px 50px;
    float: right;
    text-align: center;
}

.main-timeline .timeline-content li {
    border-left: 4px solid #2c3e50;
    border-radius: 6px;
    background: var(--bg-secondary);
    margin-bottom: 16px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Nova Mono', 'Courier New', monospace;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.main-timeline .timeline-content li::before {
    content: "▸";
    color: var(--text-secondary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.main-timeline .timeline-content li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-left-color: #34495e;
    background: var(--bg-primary);
    transform: translateX(4px);
}

.main-timeline .title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 0 20px 0;
    font-family: 'Special Elite', 'Nova Mono', monospace;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.main-timeline .description {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.main-timeline .description li:last-child {
    margin-bottom: 0;
}

.main-timeline .timeline:nth-child(2n) .date-content {
    float: right
}

.main-timeline .timeline:nth-child(2n) .date-content:before {
    left: 10px
}

.main-timeline .timeline:nth-child(2n) .timeline-content {
    padding: 20px 50px 20px 0;
    text-align: center;
}

@media only screen and (max-width: 991px) {
    .main-timeline .date-content {
        margin-top: 35px
    }
    .main-timeline .date-content:before {
        width: 22.5%
    }
    .main-timeline .timeline-content {
        padding: 10px 0 10px 30px
    }
    .main-timeline .title {
        font-size: 17px
    }
    .main-timeline .timeline:nth-child(2n) .timeline-content {
        padding: 10px 30px 10px 0
    }
}

@media only screen and (max-width: 767px) {
    .main-timeline:before {
        margin: 0;
        left: 7px
    }
    .main-timeline .timeline {
        margin-bottom: 20px
    }
    .main-timeline .timeline:last-child {
        margin-bottom: 0
    }
    .main-timeline .icon {
        margin: auto 0
    }
    .main-timeline .date-content {
        width: 95%;
        float: right;
        margin-top: 0
    }
    .main-timeline .date-content:before {
        display: none
    }
    .main-timeline .date-outer {
        width: 90px;
        height: 90px
    }
    .main-timeline .date-outer:before,
    .main-timeline .date-outer:after {
        width: 90px;
        height: 90px
    }
    .main-timeline .date {
        top: 30%
    }
    .main-timeline .year {
        font-size: 20px
    }
    .main-timeline .month {
        font-size: 10px
    }
    .main-timeline .timeline-content,
    .main-timeline .timeline:nth-child(2n) .timeline-content {
        width: 95%;
        text-align: left;
        padding: 10px 0
    }
    .main-timeline .title {
        margin-bottom: 10px;
        font-size: 16px
    }
    .main-timeline .description li {
        font-size: 13px;
        padding: 12px 15px;
        line-height: 1.6;
    }
    .main-timeline .text-break {
        margin: 0 5%;
        font-size: 13px;
        padding: 8px 12px;
    }
}

/*===============================================================================================
[ TAG STYLING ]
===============================================================================================*/

/* Article Tag Pills - Display tags next to article links */
.article-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 10px;
    vertical-align: middle;
}

.article-tag-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    /* Colors are now assigned dynamically via inline styles based on tag name */
}

.link-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.link-data {
    flex: 0 1 auto;
}

/* Tag Input Component - For admin page */
.tag-input-container {
    margin-top: 8px;
}

.tag-input-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    min-height: 38px;
    background-color: var(--bg-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tag-input-wrapper:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-right: 5px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
}

.tag-pill .tag-remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
}

.tag-pill .tag-remove:hover {
    opacity: 1;
}

.tag-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    min-width: 150px;
    font-size: 14px;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-suggestions.show {
    display: block;
}

.tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.tag-suggestion-item:hover {
    background-color: var(--bg-secondary);
}

.tag-suggestion-item:last-child {
    border-bottom: none;
}

/*===============================================================================================
[ THEME TOGGLE BUTTON ]
===============================================================================================*/

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 15px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--text-secondary);
}

.theme-icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Show sun in light mode, moon in dark mode */
.sun-icon {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .sun-icon {
    opacity: 0;
}

html[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* Mobile responsive */
@media only screen and (max-width: 767px) {
    .theme-toggle {
        margin-left: 10px;
        width: 36px;
        height: 36px;
    }

    .theme-icon {
        width: 18px;
        height: 18px;
    }
}