

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

body {
    background-color: #d2e0e6; 
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    padding: 20px 0;
}


a {
    color: #2c629e;
    text-decoration: none;
}

a:hover {
    color: #ff6600;
    text-decoration: underline;
}


.blog-wrapper {
    max-width: 980px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #b3c5cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


.blog-header {
    background: #4a75a0 linear-gradient(180deg, #73a0c5 0%, #4a75a0 100%);
    color: #ffffff;
    padding: 35px 40px;
    border-bottom: 3px solid #ff6600; 
}

.blog-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.blog-title a {
    color: #ffffff;
}

.blog-title a:hover {
    color: #ffffff;
    text-decoration: none;
}

.blog-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: #d8e6f0;
    margin-top: 8px;
}


.blog-nav {
    background-color: #f6f6f6;
    border-bottom: 1px solid #cccccc;
    padding: 10px 40px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    gap: 15px;
}

.blog-nav a {
    color: #555555;
}

.blog-nav a.active {
    color: #ff6600;
}

.blog-nav .separator {
    color: #cccccc;
}


.blog-columns {
    display: flex;
    padding: 30px 40px;
    gap: 30px;
}

.blog-main {
    flex: 2;
    min-width: 0; 
}

.blog-sidebar {
    flex: 1;
    min-width: 240px;
}

@media (max-width: 768px) {
    .blog-columns {
        flex-direction: column;
        padding: 20px;
    }
    body {
        padding: 0;
    }
}


.blog-post {
    margin-bottom: 40px;
}

.post-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    color: #2c629e;
    margin-bottom: 6px;
    line-height: 1.2;
}

.post-title a {
    color: #2c629e;
}

.post-meta {
    font-size: 11px;
    color: #888888;
    margin-bottom: 15px;
    border-bottom: 1px dashed #dddddd;
    padding-bottom: 5px;
}

.post-body {
    font-size: 13px;
    color: #444444;
    line-height: 1.6;
}

.post-body p {
    margin-bottom: 15px;
}

.post-thumbnail-link {
    display: block;
    margin: 15px 0;
    border: 1px solid #cccccc;
    padding: 5px;
    background: #fbfbfb;
    max-width: 100%;
}

.post-thumbnail-link img {
    display: block;
    max-width: 100%;
    height: auto;
}


.widget {
    background-color: #fbfbfb;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 25px;
}

.widget-title {
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: bold;
    color: #444444;
    border-bottom: 2px solid #b3c5cc;
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.profile-widget {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #b3c5cc;
    margin: 10px auto;
    display: block;
    background-color: #eee;
    object-fit: cover;
}

.profile-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
}

.profile-desc {
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
    text-align: left;
}


.sidebar-links {
    list-style-type: none;
}

.sidebar-links li {
    padding: 5px 0;
    border-bottom: 1px solid #eeeeee;
}

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


.counter-box {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid #555555;
    text-align: center;
    letter-spacing: 3px;
    display: inline-block;
    margin: 5px auto;
}

.counter-container {
    text-align: center;
}


.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.retro-badge {
    border: 1px solid #999999;
    padding: 2px 5px;
    font-size: 9px;
    font-family: monospace;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
}

.badge-blue { background-color: #004488; color: #ffffff; }
.badge-green { background-color: #006600; color: #ffffff; }
.badge-orange { background-color: #ff6600; color: #ffffff; }




.editor-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.generator-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.section-title {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #2c629e;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 8px;
    margin-bottom: 15px;
}


.blogger-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

label {
    font-size: 11px;
    font-weight: bold;
    color: #555555;
    text-transform: uppercase;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea {
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #cccccc;
    background-color: #fafafa;
    color: #333333;
    outline: none;
    width: 100%;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    background-color: #ffffff;
    border-color: #2c629e;
}


.btn-blogger {
    background-color: #ff6600;
    border: 1px solid #d45500;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 12px;
}

.btn-blogger:hover {
    background-color: #e65c00;
    text-decoration: none;
}

.btn-blogger-secondary {
    background-color: #f6f6f6;
    border: 1px solid #cccccc;
    color: #333333;
    font-weight: bold;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 12px;
}

.btn-blogger-secondary:hover {
    background-color: #eaeaea;
    text-decoration: none;
}

.btn-blogger-accent {
    background-color: #2c629e;
    border: 1px solid #1a3c63;
    color: #ffffff;
}

.btn-blogger-accent:hover {
    background-color: #1e4570;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}


.color-row {
    display: flex;
    gap: 10px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cccccc;
    padding: 5px;
    background: #fafafa;
    flex: 1;
}

.color-picker-wrapper input[type="color"] {
    border: 1px solid #cccccc;
    width: 25px;
    height: 25px;
    cursor: pointer;
    background: transparent;
}

.color-picker-wrapper span {
    font-size: 10px;
    font-weight: bold;
}

@media (max-width: 480px) {
    .color-row {
        flex-direction: column;
        gap: 8px;
    }
}


.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.item-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.item-row input {
    font-size: 12px;
    padding: 4px 6px;
}

.item-row input:nth-child(1) { flex: 2; }
.item-row input:nth-child(2) { flex: 0.6; }
.item-row input:nth-child(3) { flex: 1.2; }

.btn-delete {
    background-color: #cc0000;
    border: 1px solid #990000;
    color: #ffffff;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 27px;
}

.btn-delete:hover {
    background-color: #990000;
}

.btn-delete svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 480px) {
    .item-row {
        flex-wrap: wrap;
        border-bottom: 1px dashed #cccccc;
        padding-bottom: 8px;
    }
    .item-row input:nth-child(1) {
        flex: 1 1 100%;
    }
    .item-row input:nth-child(2) {
        flex: 1;
    }
    .item-row input:nth-child(3) {
        flex: 1.5;
    }
}


.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    font-size: 11px;
    font-weight: bold;
    color: #008800;
}

.status-indicator span::before {
    content: "● ";
    color: #00cc00;
}

.actions {
    display: flex;
    gap: 8px;
}


.image-wrapper {
    position: relative;
    width: 100%;
    background: #eaeaea;
    border: 1px solid #cccccc;
    aspect-ratio: 12 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-window.receipt-preview .image-wrapper {
    aspect-ratio: auto;
    padding: 15px;
    max-height: 70vh;
    min-height: 350px;
    overflow-y: auto;
    display: block;
    text-align: center;
}

#preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.preview-window.receipt-preview #preview-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    display: inline-block;
}

#preview-img.loaded {
    opacity: 1;
}


.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.loader-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 25px;
    height: 25px;
    border: 3px solid #eeeeee;
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 11px;
    font-weight: bold;
    color: #666666;
    letter-spacing: 0.5px;
}


.doc-tabs {
    display: flex;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 10px;
}

.doc-tab {
    background: transparent;
    border: none;
    color: #666666;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
}

.doc-tab.active {
    color: #ff6600;
    border-bottom: 2px solid #ff6600;
    margin-bottom: -1px;
}

.doc-content {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

#code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #333333;
    line-height: 1.4;
}


.endpoint-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f6f6f6;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-get {
    background: #2c629e;
    color: #ffffff;
}

.badge-post {
    background: #006600;
    color: #ffffff;
}

.endpoint-url {
    font-family: monospace;
    font-size: 11px;
    color: #444444;
    word-break: break-all;
}


.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333333;
    color: #ffffff;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 11px;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
    border: 1px solid #444444;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


.blog-footer {
    background-color: #f6f6f6;
    border-top: 1px solid #cccccc;
    padding: 20px 40px;
    text-align: center;
    font-size: 11px;
    color: #666666;
}


.online-indicator {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}
