/* Widget Page Styles */
.widget-page {
    padding: 2rem 0;
}

/* Layout com sidebar */
.widget-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .widget-container {
        grid-template-columns: 350px 1fr;
    }
}

.widget-sidebar {
    order: 2;
}

@media (min-width: 1024px) {
    .widget-sidebar {
        order: 1;
    }
}

.widget-main {
    order: 1;
    min-width: 0; /* Permite que o grid shrink corretamente */
    overflow-x: hidden; /* Previne overflow horizontal */
}

@media (min-width: 1024px) {
    .widget-main {
        order: 2;
    }
}

.widget-page-with-location .widget-header {
    text-align: left;
    margin-bottom: 2rem;
}

.widget-sidebar-content {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

/* Custom scrollbar para a sidebar */
.widget-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.widget-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.widget-sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.widget-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.widget-header {
    text-align: center;
    margin-bottom: 3rem;
}

.widget-page-generic .widget-header {
    text-align: left;
    margin-bottom: 2rem;
}

.widget-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.widget-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Preview Section */
.widget-preview-section {
    margin-bottom: 3rem;
}

.widget-preview-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.widget-page-generic .widget-preview-container {
    max-width: 100%;
}

.widget-preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.widget-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.widget-preview .widget-clock {
    width: 100%;
    max-width: 500px;
}

.widget-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    padding: 2rem;
}

.widget-preview-empty.hidden {
    display: none;
}

.widget-clock-content.hidden {
    display: none;
}

.widget-preview-empty-icon {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.widget-preview-empty-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.widget-clock.hidden {
    display: none;
}

.widget-clock {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-time {
    font-size: 3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.widget-date {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    display: block;
    min-height: 1.5rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.widget-date:empty {
    display: none;
}

.widget-location {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block; /* Visível por padrão para SEO - ocultado via JavaScript quando showLocation estiver ativo */
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.wt-location-top {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    opacity: 0.9;
}

/* Location Selector */
.location-selector-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.location-selector-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.location-selector-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.location-search-wrapper {
    position: relative;
}

.location-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.location-search-icon {
    position: absolute;
    left: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-search-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.location-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.location-search-results.hidden {
    display: none;
}

.location-search-item {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
    color: var(--text-primary);
}

.location-search-item:last-child {
    border-bottom: none;
}

.location-search-item:hover {
    background: var(--bg-secondary);
}

.selected-location {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.selected-location.hidden {
    display: none;
}

.selected-location-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-location-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.selected-location-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.clear-location-btn {
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-location-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Configuration Section */
.widget-config-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .widget-config-section {
        grid-template-columns: 1fr 1fr;
    }
}

.widget-page-generic .widget-config-section {
    display: block;
    margin-bottom: 0;
}

.widget-page-generic .config-section {
    margin-top: 2rem;
}

.config-section h2,
.widget-page-generic .config-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.location-selector-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.config-card,
.code-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.config-card h2,
.code-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.config-group {
    margin-bottom: 1.5rem;
}

.config-group:last-child {
    margin-bottom: 0;
}

.config-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.config-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.config-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.config-color-input {
    width: 100%;
    height: 3rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    background: transparent;
}

.config-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.config-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 0.375rem;
}

.config-color-input::-moz-color-swatch {
    border: none;
    border-radius: 0.375rem;
}

.config-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-select:hover {
    border-color: var(--primary-color);
}

.config-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Code Section */
.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.code-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}

.code-tab:hover {
    color: var(--text-primary);
}

.code-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.code-content {
    position: relative;
}

.code-block {
    display: none;
}

.code-block.active {
    display: block;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
}

.code-block code {
    display: block;
    white-space: pre;
    word-wrap: normal;
}

.copy-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.copy-button:hover {
    background: color-mix(in oklch, var(--primary) 90%, transparent);
}

.copy-button:active {
    transform: scale(0.98);
}

.copy-button .copy-success {
    display: none;
}

.copy-button.copied .copy-text {
    display: none;
}

.copy-button.copied .copy-success {
    display: inline;
}

/* Info Section */
.widget-info-section {
    margin-top: 3rem;
}

/* Article Styles */
.widget-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.widget-article-header {
    margin-bottom: 2.5rem;
}

.widget-article-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.widget-article-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.widget-article-section {
    margin-bottom: 3rem;
}

.widget-article-section:last-child {
    margin-bottom: 0;
}

.widget-article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.widget-article-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.widget-article-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Internal links in widget articles for SEO */
.widget-internal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.widget-internal-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.widget-internal-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.widget-timezone-info code a.widget-internal-link {
    color: var(--primary-color);
    font-weight: 600;
}

.widget-article-section ul,
.widget-article-section ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.widget-article-section li {
    margin-bottom: 0.75rem;
}

.widget-article-section li:last-child {
    margin-bottom: 0;
}

.widget-article-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.widget-benefits {
    margin-top: 1.5rem;
}

.widget-benefits ul {
    list-style: none;
    padding-left: 0;
}

.widget-benefits li {
    margin-bottom: 1.25rem;
    padding-left: 0;
}

.widget-benefits li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.widget-timezone-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.widget-timezone-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.widget-timezone-info dt {
    font-weight: 600;
    color: var(--text-primary);
}

.widget-timezone-info dd {
    margin: 0;
    color: var(--text-secondary);
}

.widget-timezone-info code {
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.widget-installation-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.widget-installation-steps li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.widget-installation-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Ajuste para dark mode - garantir contraste adequado */
.dark .widget-installation-steps li::before {
    background: var(--primary-color);
    color: var(--primary-foreground);
}

.widget-installation-steps li strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.widget-installation-steps li p {
    margin: 0;
    font-size: 0.9375rem;
}

.widget-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.widget-feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.widget-feature-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.widget-feature-item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Legacy info-card styles for backward compatibility */
.info-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-card ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.info-card li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .widget-container {
        padding: 0 0.75rem;
    }
    
    .widget-header h1 {
        font-size: 2rem;
    }

    .widget-preview-container {
        padding: 1.5rem;
    }
    
    .code-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .code-block pre {
        padding: 1rem;
        font-size: 0.8125rem;
    }

    .widget-clock {
        min-width: auto;
        padding: 1.5rem;
    }

    .widget-time {
        font-size: 2.25rem;
    }

    .config-card,
    .code-card {
        padding: 1.5rem;
    }

    .widget-config-section {
        grid-template-columns: 1fr;
    }
}

/* Widget Style Simple - Theme Styles */
.widget-preview.style-simple.theme-light .widget-clock {
    background: #ffffff;
    border-color: #e5e7eb;
}

.widget-preview.style-simple.theme-light .widget-time {
    color: #111827;
}

.widget-preview.style-simple.theme-light .widget-date,
.widget-preview.style-simple.theme-light .widget-location,
.widget-preview.style-simple.theme-light .wt-location-top {
    color: #6b7280;
}

.widget-preview.style-simple.theme-dark .widget-clock {
    background: #1f2937;
    border-color: #374151;
}

.widget-preview.style-simple.theme-dark .widget-time {
    color: #f9fafb;
}

.widget-preview.style-simple.theme-dark .widget-date,
.widget-preview.style-simple.theme-dark .widget-location,
.widget-preview.style-simple.theme-dark .wt-location-top {
    color: #9ca3af;
}

/* Widget Style Modern - Gradiente dinâmico com efeitos */
.widget-preview.style-modern .widget-clock {
    border: none;
    position: relative;
    overflow: hidden;
}

.widget-preview.style-modern .widget-clock::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

/* Efeito de raios de sol no canto superior direito */
.widget-preview.style-modern .widget-clock::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255, 255, 255, 0.1) 30deg,
        transparent 60deg,
        rgba(255, 255, 255, 0.15) 90deg,
        transparent 120deg,
        rgba(255, 255, 255, 0.1) 150deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.15) 210deg,
        transparent 240deg,
        rgba(255, 255, 255, 0.1) 270deg,
        transparent 300deg,
        rgba(255, 255, 255, 0.15) 330deg,
        transparent 360deg
    );
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.widget-preview.style-modern .widget-time,
.widget-preview.style-modern .widget-date,
.widget-preview.style-modern .widget-location,
.widget-preview.style-modern .wt-location-top {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.widget-preview.style-modern .widget-time {
    font-weight: 800;
}

.widget-preview.style-modern .widget-date,
.widget-preview.style-modern .widget-location {
    opacity: 0.95;
}

/* Widget Style Analog - Relógio Analógico */
.widget-preview.style-analog .widget-clock {
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
}

.widget-preview.style-analog .wt-analog-clock {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 200px;
    min-height: 200px;
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.widget-preview.size-small .wt-analog-clock {
    min-width: 150px;
    min-height: 150px;
    max-width: 250px;
    max-height: 250px;
}

.widget-preview.size-medium .wt-analog-clock {
    min-width: 200px;
    min-height: 200px;
    max-width: 300px;
    max-height: 300px;
}

.widget-preview.size-large .wt-analog-clock {
    min-width: 250px;
    min-height: 250px;
    max-width: 400px;
    max-height: 400px;
}

.widget-preview .wt-analog-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000000;
    position: relative;
    border: 3px solid #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Tema Light: Fundo claro, elementos escuros */
.widget-preview.style-analog.theme-light .wt-analog-face {
    background: #ffffff;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Tema Dark: Fundo escuro, elementos claros */
.widget-preview.style-analog.theme-dark .wt-analog-face {
    background: #000000;
    border: 3px solid #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.widget-preview .wt-analog-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.widget-preview .wt-analog-number {
    position: absolute;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    margin-left: -1rem;
    margin-top: -1rem;
}

/* Tema Light: Números escuros */
.widget-preview.style-analog.theme-light .wt-analog-number {
    color: #111827;
}

/* Tema Dark: Números brancos */
.widget-preview.style-analog.theme-dark .wt-analog-number {
    color: #ffffff;
}

.widget-preview.size-small .wt-analog-number {
    font-size: 0.9rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    margin-left: -0.75rem;
    margin-top: -0.75rem;
}

.widget-preview.size-large .wt-analog-number {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    margin-left: -1.25rem;
    margin-top: -1.25rem;
}

.widget-preview .wt-analog-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.widget-preview .wt-analog-marker {
    position: absolute;
    background: #ffffff;
    transform-origin: center center;
}

/* Tema Light: Marcadores escuros */
.widget-preview.style-analog.theme-light .wt-analog-marker {
    background: #111827;
}

/* Tema Dark: Marcadores brancos */
.widget-preview.style-analog.theme-dark .wt-analog-marker {
    background: #ffffff;
}

.widget-preview .wt-analog-marker.minute {
    width: 2px;
    height: 8px;
    margin-left: -1px;
    margin-top: -4px;
    opacity: 0.4;
}

.widget-preview .wt-analog-marker.hour {
    width: 3px;
    height: 12px;
    margin-left: -1.5px;
    margin-top: -6px;
    opacity: 0.6;
}

.widget-preview .wt-analog-hands {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.widget-preview .wt-analog-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 0%;
    transition: transform 0.1s cubic-bezier(0.4, 2.3, 0.6, 1);
}

.widget-preview .wt-analog-hand.second {
    transition: none;
}

.widget-preview .wt-analog-hand.hour {
    width: 6px;
    height: 30%;
    margin-left: -3px;
    margin-top: -3px;
    background: #ffffff;
    border-radius: 6px 6px 0 0;
    z-index: 3;
}

/* Tema Light: Ponteiros escuros */
.widget-preview.style-analog.theme-light .wt-analog-hand.hour,
.widget-preview.style-analog.theme-light .wt-analog-hand.minute {
    background: #111827;
}

/* Tema Dark: Ponteiros brancos */
.widget-preview.style-analog.theme-dark .wt-analog-hand.hour,
.widget-preview.style-analog.theme-dark .wt-analog-hand.minute {
    background: #ffffff;
}

.widget-preview.size-small .wt-analog-hand.hour {
    width: 5px;
    height: 25%;
    margin-left: -2.5px;
    border-radius: 5px 5px 0 0;
}

.widget-preview.size-large .wt-analog-hand.hour {
    width: 8px;
    height: 35%;
    margin-left: -4px;
    border-radius: 8px 8px 0 0;
}

.widget-preview .wt-analog-hand.minute {
    width: 4px;
    height: 40%;
    margin-left: -2px;
    margin-top: -2px;
    background: #ffffff;
    border-radius: 4px 4px 0 0;
    z-index: 2;
}

.widget-preview.size-small .wt-analog-hand.minute {
    width: 3px;
    height: 35%;
    margin-left: -1.5px;
    border-radius: 3px 3px 0 0;
}

.widget-preview.size-large .wt-analog-hand.minute {
    width: 5px;
    height: 45%;
    margin-left: -2.5px;
    border-radius: 5px 5px 0 0;
}

.widget-preview .wt-analog-hand.second {
    width: 2px;
    height: 45%;
    margin-left: -1px;
    margin-top: -1px;
    background: #ff6b35;
    border-radius: 2px 2px 0 0;
    z-index: 4;
}

.widget-preview.size-small .wt-analog-hand.second {
    width: 1.5px;
    height: 40%;
    margin-left: -0.75px;
    border-radius: 1.5px 1.5px 0 0;
}

.widget-preview.size-large .wt-analog-hand.second {
    width: 2.5px;
    height: 50%;
    margin-left: -1.25px;
    border-radius: 2.5px 2.5px 0 0;
}

.widget-preview .wt-analog-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    margin-left: -6px;
    margin-top: -6px;
    z-index: 5;
    box-shadow: 0 0 0 2px #000000;
}

/* Tema Light: Centro com borda branca */
.widget-preview.style-analog.theme-light .wt-analog-center {
    box-shadow: 0 0 0 2px #ffffff;
}

/* Tema Dark: Centro com borda preta */
.widget-preview.style-analog.theme-dark .wt-analog-center {
    box-shadow: 0 0 0 2px #000000;
}

.widget-preview.size-small .wt-analog-center {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
}

.widget-preview.size-large .wt-analog-center {
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
}

.widget-preview.style-analog .widget-time {
    display: none;
}

.widget-preview.style-analog .widget-date,
.widget-preview.style-analog .wt-location-top {
    display: block;
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-align: center;
}

.widget-preview.style-analog .wt-location-top {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 500;
}

.widget-preview.style-analog .widget-date {
    margin-top: 1rem;
    font-size: 1.825rem;
}

.widget-preview.style-analog .widget-location {
    display: none;
}

/* Widget Style Analog - Theme Light */
.widget-preview.style-analog.theme-light .widget-date,
.widget-preview.style-analog.theme-light .wt-location-top {
    color: #111827; /* Dark text for light theme */
}

/* Widget Style Analog - Theme Dark */
.widget-preview.style-analog.theme-dark .widget-date,
.widget-preview.style-analog.theme-dark .wt-location-top {
    color: #111827; /* Dark text for dark theme */
}

/* Dark mode adjustments */
.dark .widget-preview-container,
.dark .config-card,
.dark .code-card,
.dark .info-card {
    background: rgba(255, 255, 255, 0.03);
}

.dark .widget-clock {
    background: rgba(255, 255, 255, 0.05);
}

.dark .code-block pre {
    background: rgba(0, 0, 0, 0.3);
}

