/* START Guestbook Container */
html.dark-mode .kol-guestbook-container {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

html.light-mode .kol-guestbook-container {
    background: white;
    color: #1f2937;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
/* END Guestbook Container */

/* START Guestbook Header */
html.dark-mode .kol-guestbook-header {
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

html.light-mode .kol-guestbook-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.kol-guestbook-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.kol-guestbook-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.kol-guestbook-edit-btn {
    background: #6b7280;
    color: white;
    border: 1px solid #4b5563;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.kol-guestbook-edit-btn:hover {
    background: #5a6372;
}

html.dark-mode .kol-guestbook-edit-form {
    background: #333;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

html.light-mode .kol-guestbook-edit-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

html.dark-mode .kol-guestbook-edit-form input {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

html.light-mode .kol-guestbook-edit-form input {
    background: white;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.kol-guestbook-save-btn,
.kol-guestbook-cancel-btn {
    background: #6b7280;
    color: white;
    border: 1px solid #4b5563;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    transition: background 0.3s ease;
}

.kol-guestbook-save-btn:hover {
    background: #5a6372;
}

.kol-guestbook-cancel-btn {
    background: #4b5563;
}

.kol-guestbook-cancel-btn:hover {
    background: #3a445a;
}

.kol-guestbook-char-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}
/* END Guestbook Header */

/* START Guestbook Form */
html.dark-mode .kol-guestbook-form {
    background: #333;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
}

html.light-mode .kol-guestbook-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
}

.kol-guestbook-form-inner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.kol-guestbook-avatar {
    flex-shrink: 0;
}

.kol-guestbook-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
}

.kol-guestbook-form-content {
    flex: 1;
    width: 100%;
}

.kol-guestbook-form-content h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
}

.kol-guestbook-emoji-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.kol-emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 8px;
    transition: opacity 0.3s ease;
    color: #6b7280;
}

.kol-emoji-btn:hover {
    opacity: 0.7;
}

html.dark-mode .kol-guestbook-form-content textarea {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

html.light-mode .kol-guestbook-form-content textarea {
    background: white;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

.kol-guestbook-form-content textarea::placeholder {
    opacity: 0.6;
}

.kol-guestbook-form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.kol-guestbook-submit-btn {
    background: #6b7280;
    color: white;
    border: 1px solid #4b5563;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.kol-guestbook-submit-btn:hover {
    background: #5a6372;
}

html.dark-mode #kol-guestbook-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

html.light-mode #kol-guestbook-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

#kol-guestbook-response.success {
    background: #065f46;
    color: #d1fae5;
    display: block;
}

#kol-guestbook-response.error {
    background: #7f1d1d;
    color: #fee2e2;
    display: block;
}
/* END Guestbook Form */

/* START Guestbook Entries */
html.dark-mode .kol-guestbook-entries {
    margin-bottom: 20px;
}

html.light-mode .kol-guestbook-entries {
    margin-bottom: 20px;
}

html.dark-mode .kol-guestbook-entry {
    background: #333;
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

html.light-mode .kol-guestbook-entry {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.kol-guestbook-entry-avatar {
    flex-shrink: 0;
}

.kol-guestbook-entry-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
}

.kol-guestbook-entry-body {
    flex: 1;
    width: 100%;
}

.kol-guestbook-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

html.dark-mode .kol-guestbook-author a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

html.light-mode .kol-guestbook-author a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
}

.kol-guestbook-author a:hover {
    text-decoration: underline;
}

html.dark-mode .kol-guestbook-date {
    color: #b0b0b0;
    font-size: 12px;
}

html.light-mode .kol-guestbook-date {
    color: #6b7280;
    font-size: 12px;
}

.kol-guestbook-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 14px;
    padding: 0;
    transition: opacity 0.3s ease;
}

.kol-guestbook-delete-btn:hover {
    opacity: 0.7;
}

html.dark-mode .kol-guestbook-entry-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
}

html.light-mode .kol-guestbook-entry-content {
    color: #374151;
    line-height: 1.6;
    font-size: 14px;
}

.kol-guestbook-entry-content p {
    margin: 0 0 10px 0;
}

.kol-guestbook-entry-content p:last-child {
    margin-bottom: 0;
}

html.dark-mode .kol-guestbook-empty {
    text-align: center;
    padding: 30px 20px;
    color: #b0b0b0;
    font-style: italic;
}

html.light-mode .kol-guestbook-empty {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
    font-style: italic;
}
/* END Guestbook Entries */

/* START Guestbook Pagination */
html.dark-mode .kol-guestbook-pagination {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    margin-bottom: 20px;
}

html.light-mode .kol-guestbook-pagination {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.kol-guestbook-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

html.dark-mode .kol-guestbook-pagination a,
html.dark-mode .kol-guestbook-pagination span {
    color: #4CAF50;
    background: #333;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

html.light-mode .kol-guestbook-pagination a,
html.light-mode .kol-guestbook-pagination span {
    color: #059669;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

html.dark-mode .kol-guestbook-pagination a:hover {
    background: #444;
}

html.light-mode .kol-guestbook-pagination a:hover {
    background: #e5e7eb;
}

html.dark-mode .kol-guestbook-pagination .page-numbers.current {
    background: #4CAF50;
    color: #1a1a1a;
    border-color: #4CAF50;
    font-weight: 600;
}

html.light-mode .kol-guestbook-pagination .page-numbers.current {
    background: #059669;
    color: white;
    border-color: #059669;
    font-weight: 600;
}
/* END Guestbook Pagination */

/* START Login Notice */
html.dark-mode .kol-guestbook-login-notice {
    background: #333;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    text-align: center;
}

html.light-mode .kol-guestbook-login-notice {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    text-align: center;
}

.kol-guestbook-login-notice p {
    margin: 0;
}
/* END Login Notice */

/* START Responsive */
@media (max-width: 768px) {
    html.dark-mode .kol-guestbook-container,
    html.light-mode .kol-guestbook-container {
        padding: 15px;
    }

    .kol-guestbook-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .kol-guestbook-form-inner {
        flex-direction: column;
        align-items: center;
    }

    .kol-guestbook-avatar {
        align-self: flex-start;
    }

    .kol-guestbook-entry {
        flex-direction: column;
        align-items: center;
    }

    .kol-guestbook-entry-body {
        text-align: center;
    }

    .kol-guestbook-entry-header {
        justify-content: center;
    }

    .kol-guestbook-pagination ul {
        justify-content: center;
    }
}
/* END Responsive */
