/* Guestbook Form */
.sm-guestbook {
    max-width: 100%;
}

.sm-guestbook-form {
    border-radius: 8px;
    margin-bottom: 40px;
}

.sm-form-group {
    margin-bottom: 20px;
    max-width: 600px;
}

.sm-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.sm-form-input,
.sm-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #F8F8F8;
}

.sm-form-input:focus,
.sm-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.sm-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.sm-form-submit {
    /* Colors and styling come from inline styles (global settings) */
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sm-form-submit:hover {
    opacity: 0.85;
}

.sm-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sm-form-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.sm-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sm-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Guestbook Entries */
.sm-guestbook-entries {
    margin-top: 40px;
}

.sm-guestbook-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.sm-guestbook-entry {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sm-guestbook-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sm-guestbook-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sm-guestbook-author {
    font-weight: 700;
    color: #0073aa;
    font-size: 16px;
}

.sm-guestbook-author a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.sm-guestbook-author a:hover {
    color: #005177;
    text-decoration: underline;
}
.sm-guestbook-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: -4px 0 10px;
    font-size: 13px;
    color: #666;
}

.sm-guestbook-contact-link {
    color: #666;
    text-decoration: none;
    word-break: break-all;
}

.sm-guestbook-contact-link:hover {
    color: #0073aa;
    text-decoration: underline;
}


.sm-guestbook-date {
    color: #666;
    font-size: 13px;
}

.sm-guestbook-message {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

/* Pagination */
.sm-guestbook-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sm-page-link {
    /* Base structural styling - colors come from inline styles */
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.sm-page-link:hover {
    /* Hover styling handled by inline JavaScript */
}

.sm-page-link.active {
    /* Active styling handled by inline styles */
}

/* Responsive */
@media (max-width: 768px) {
    
    .sm-guestbook-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sm-form-submit {
        width: 100%;
    }
}
