a,
button,
.gallery-item,
.diary-preview-card,
.diary-post-title-bar,
summary,
[onclick] {
    cursor: url('images/cute-bunny-in-the-rain.webp'), 0 0 pointer !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f7d6df;
    /* Cor unificada */
    color: #4a3b4e;
    font-family: "Courier New", Courier, monospace, sans-serif;
    font-size: 14px;
    background-image: url('images/kawaii_bunny.png');
    background-repeat: repeat;
    background-size: 800px auto;
    background-attachment: fixed;
}

header {
    grid-column: 1 / -1;
    padding: 15px 20px 10px 20px;
    text-align: center;
    background-color: #fffdf9;
    border-bottom: 2px dashed #b19cd9;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin: 0;
}

header h1 {
    margin: 5px 0;
    color: #8a68ad;
    font-size: 46px;
    text-shadow: 1px 1px 0px #fff, 2px 2px 0px #ffd1dc;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.subtitle {
    font-style: italic;
    font-size: 12px;
    color: #7a9e9f;
}

/* --- CONFIGURAÇÃO DO VIEWER --- */
#container,
.diary-main-layout,
.gallery-main-layout {
    max-width: 950px;
    width: 100%;
    height: 70vh;
    margin: 25px auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0px 20px;
    padding: 0;
    background: #ffffff;
    border: 2px dashed #b19cd9;
    box-shadow: 4px 4px 0px rgba(177, 156, 217, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

footer {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
    background-color: #fffdf9;
    border-top: 2px dashed #b19cd9;
    margin: 0;
    width: 100%;
}

.sidebar,
aside,
.gallery-sidebar {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding: 15px 5px 15px 15px;
}

.content-area,
main,
.gallery-main-content {
    grid-column: 2;
    grid-row: 2;
    height: 100%;
    overflow-y: auto;
    padding: 15px 15px 15px 0;
}

#main-layout {
    display: contents;
}

.box {
    background: #fffdf9;
    border: 1px solid #ffd1dc;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 4px 4px 0px rgba(177, 156, 217, 0.4);
}

.box-title {
    background: #ffd1dc;
    color: #4a3b4e;
    padding: 4px 5px;
    font-size: 20px;
    margin: -10px -10px 10px -10px;
    text-align: center;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.status-text {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

.visitor-box {
    text-align: center;
    font-size: 11px;
}

.music-player-box {
    text-align: center;
}

.music-player-box audio {
    width: 100%;
    transform: scale(0.9);
    margin-top: 5px;
}

ul.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.nav-links li {
    margin-bottom: 5px;
}

ul.nav-links a {
    display: block;
    color: #8a68ad;
    text-decoration: none;
    padding: 3px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

ul.nav-links a:hover {
    background: #f0e6ff;
    border-left: 3px solid #8a68ad;
    color: #4a3b4e;
}

h2 {
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #7a9e9f;
    border-bottom: 1px dotted #7a9e9f;
    padding-bottom: 3px;
    font-size: 34px;
    margin-top: 10px;
}

section {
    margin-bottom: 30px;
}

.blog-post {
    border: 1px solid #7a9e9f;
    background: #fafdfd;
    padding: 15px;
    border-radius: 4px;
}

.blog-post h3 {
    margin: 5px 0 10px 0;
    color: #4a3b4e;
}

.post-date {
    font-size: 11px;
    color: #888;
}

.screenshot-container {
    text-align: center;
    margin: 15px 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.03);
}

.screenshot-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #b19cd9;
}

.caption {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.diary-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}

.music-player-caption {
    font-size: 10px;
    color: #7a6b82;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

.diary-header-box {
    text-align: center;
    margin-bottom: 20px;
}

.diary-header-box h1 {
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    font-size: 34px;
    color: #7a9e9f;
}

.diary-header-box p {
    margin: 5px 0 0 0;
    font-family: "Jersey 10", sans-serif;
    font-style: normal;
    font-size: 24px;
    color: #7a6b82;
}

.diary-container {
  
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
}

.diary-container details {
    background: #ffffff;
    border: 1px solid #ffd1dc;
    border-radius: 4px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 2px 2px 0px #f7d6df;
    line-height: 1.6;
}

.diary-container summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    margin: -20px -20px -20px -20px;
    padding: 20px;
}

.diary-post-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffd1dc;
    color: #4a3b4e;
    padding: 5px 10px;
    margin: -20px -20px 15px -20px;
    
    font-family: "Jersey 10", sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
}

.diary-expand-badge {
    color: #b19cd9;
    background: #fcf8f2;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Jersey 10", sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
}

.diary-spoiler-text {
    font-weight: normal;
    color: #6a5a73;
    font-size: 13px;
    margin: 0;
    padding: 0 10px;
    font-style: italic;
}

.diary-container hr {
    border: none;
    border-top: 1px dashed #ffd1dc;
    margin: 20px 0 15px 0;
}

.diary-content {
    font-size: 13px;
    color: #333333;
}

.bunny-thought-box {
    background: #fcf8f2;
    border-left: 3px dashed #b19cd9;
    padding: 8px 12px;
    margin: 15px 0;
    font-size: 12px;
    color: #6a5a73;
    font-style: italic;
}

.diary-images-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    align-items: flex-start;
}

.diary-image-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.diary-image-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ffd1dc;
    border-radius: 3px;
}

.diary-image-item span {
    font-size: 10px;
    color: #7a6b82;
    display: block;
    margin-top: 6px;
}

.gallery-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}

.gallery-nav-list {
    list-style: '✦ ';
    padding-left: 15px;
    margin: 5px 0 0 0;
    font-size: 12px;
    line-height: 1.8;
}

.gallery-subtitle {
    font-size: 12px;
    color: #7a6b82;
    margin: 0 0 15px 0;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    background: #ffffff;
    border: 1px solid #ffd1dc;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 2px 2px 5px #f7d6df;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
}

.gallery-item span {
    font-size: 11px;
    color: #7a6b82;
    display: block;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 59, 78, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 80%;
    max-height: 70%;
    border: 3px solid #ffd1dc;
    border-radius: 6px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    color: #fcf8f2;
    font-size: 14px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    text-align: center;
}

.lightbox-btn {
    position: absolute;
    color: #fcf8f2;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    padding: 10px;
}

.lightbox-btn:hover {
    color: #ffd1dc;
}

.close-btn {
    top: 20px;
    right: 30px;
    font-size: 50px;
}

.prev-btn {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 80%;
    overflow-x: auto;
    padding: 5px;
}

.thumb-nav {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.thumb-nav.active-thumb,
.thumb-nav:hover {
    border-color: #ffd1dc;
    opacity: 1;
    transform: scale(1.05);
}

.status-blink {
    animation: blink 1.5s infinite;
    color: #ff6b8b;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.diary-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #ffd1dc !important;
    border-color: #b19cd9 !important;
}

::-webkit-scrollbar {
    width: 24px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border: none;
}

::-webkit-scrollbar-thumb {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>🍪</text></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-color: transparent;
    border-radius: 0;
    border: none;
}