/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Page Navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Poster Preview */
.poster-container {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.poster-container.square {
    width: 100%;
    max-width: 500px;
    height: 500px;
    aspect-ratio: 1/1;
}

.poster-container.vertical {
    width: 100%;
    max-width: 400px;
    height: 600px;
    aspect-ratio: 2/3;
}

.poster-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poster-content h2 {
    margin-bottom: 15px;
    font-weight: bold;
}

.poster-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.hashtags {
    color: #0077B5;
    margin-top: auto;
}

/* Image Placeholder */
.image-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Color Themes */
.poster-container[data-theme="blue"] {
    background-color: #f0f7ff;
    color: #0a66c2;
}

.poster-container[data-theme="green"] {
    background-color: #f0fff4;
    color: #2e7d32;
}

.poster-container[data-theme="purple"] {
    background-color: #f5f0ff;
    color: #6200ea;
}

.poster-container[data-theme="dark"] {
    background-color: #212121;
    color: #ffffff;
}

.poster-container[data-theme="light"] {
    background-color: #ffffff;
    color: #212121;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .poster-container.square,
    .poster-container.vertical {
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }
}

/* Settings Page */
.toggle-password {
    cursor: pointer;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* API Test Results */
.test-success {
    color: #198754;
}

.test-error {
    color: #dc3545;
}

/* Markdown Preview Page */
.markdown-container {
    max-width: 100%;
    transition: max-width 0.3s ease;
}

.markdown-container-wide {
    max-width: 800px;
    margin: 0 auto;
}

.markdown-container-full {
    max-width: 100%;
}

.table-image-container {
    margin: 1rem 0;
    overflow-x: auto;
}

.table-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.table-style-striped th {
    background-color: #0a66c2 !important;
    color: white !important;
}

.table-style-striped tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-style-bordered td, 
.table-style-bordered th {
    border: 2px solid #0a66c2 !important;
}

.table-style-minimal {
    border-collapse: collapse;
}

.table-style-minimal th {
    border-bottom: 2px solid #000 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: transparent !important;
}

.table-style-minimal td {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 12px 8px !important;
}

/* Hide table preview elements initially */
.table-preview-container {
    display: none;
}

.table-preview-container.show {
    display: block;
}
