/* Modern WordPress Plugin UI - Clean & Professional */
:root {
    --primary-color: #2271b1;
    --primary-hover: #135e96;
    --secondary-color: #646970;
    --success-color: #00a32a;
    --warning-color: #dba617;
    --danger-color: #d63638;
    --info-color: #2271b1;
    --light-gray: #f6f7f7;
    --border-color: #c3c4c7;
    --text-color: #1d2327;
    --text-muted: #646970;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
    --border-radius-lg: 8px;
}

/* Assicura che il footer sia in fondo alla pagina */
#wpfooter {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 40px !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f0f0f1;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600;
}

/* Main container */
.chanma-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Modern tabs */
.chanma-nav-tab-wrapper {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chanma-nav-tab {
    display: inline-block;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.chanma-nav-tab:hover {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.chanma-nav-tab-active {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.chanma-nav-tab-active:hover {
    color: var(--primary-color);
}

/* Hide duplicate elements */
.chanma-wrap .tab,
.chanma-wrap button.tablinks,
.chanma-wrap ul.subsubsub,
.chanma-wrap > h1 + p,
.chanma-wrap > h1 + div + p {
    display: none !important;
}

/* Content areas */
.chanma-content {
    background: var(--bg-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 500px;
}

/* ===== TIMELINE STYLES ===== */
.chanma-timeline-wrapper {
    max-width: 100%;
}

.chanma-timeline-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    gap: 20px;
}

.chanma-timeline-header-left {
    flex: 1;
}

.chanma-timeline-header-left h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

/* Project Filter */
.chanma-project-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.chanma-project-filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.chanma-project-filter select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.chanma-roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.chanma-timeline-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search Box */
.chanma-timeline-search {
    position: relative;
    max-width: 400px;
}

.chanma-search-box {
    display: flex;
    align-items: center;
    position: relative;
}

.chanma-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.chanma-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.chanma-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: none;
}

.chanma-search-clear:hover {
    color: var(--danger-color);
}

.chanma-search-clear.visible {
    display: block;
}

.chanma-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.chanma-search-results.visible {
    display: block;
}

.chanma-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chanma-search-result-item:hover {
    background: var(--light-gray);
}

.chanma-search-result-item:last-child {
    border-bottom: none;
}

.chanma-search-result-version {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 12px;
}

.chanma-search-result-title {
    font-size: 13px;
    color: var(--text-color);
    margin: 2px 0;
}

.chanma-search-result-match {
    font-size: 11px;
    color: var(--text-muted);
}

.chanma-add-version-btn {
    white-space: nowrap;
}

.chanma-timeline {
    position: relative;
    padding-left: 40px;
}

.chanma-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--light-gray));
}

.chanma-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.chanma-timeline-icon {
    position: absolute;
    left: -40px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.chanma-timeline-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chanma-timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.chanma-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chanma-timeline-header:hover {
    background: #e8f0fe;
    border-color: #0073aa;
}

.chanma-timeline-header:active {
    background: #d0e7ff;
}

.chanma-timeline-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.chanma-timeline-version {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.chanma-timeline-title {
    font-weight: 600;
    color: var(--text-color);
}

.chanma-timeline-date {
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.chanma-timeline-toggle {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: bold;
    transform: rotate(0deg);
}

.chanma-timeline-toggle:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.chanma-timeline-content {
    padding: 25px;
    display: none;
}

.chanma-timeline-content.expanded {
    display: block !important;
}

/* Timeline Action Buttons */
.chanma-timeline-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.chanma-timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chanma-btn-edit {
    background: var(--primary-color);
    color: white;
}

.chanma-btn-edit:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.chanma-btn-delete {
    background: var(--danger-color);
    color: white;
}

.chanma-btn-delete:hover {
    background: #b32d2e;
    color: white;
    transform: translateY(-1px);
}

.chanma-timeline-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Timeline item highlight */
.chanma-timeline-item.chanma-highlight {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(34, 113, 177, 0.1); }
}

/* Loading spinner */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Timeline empty state */
.chanma-timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.chanma-timeline-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

.chanma-timeline-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.chanma-timeline-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.chanma-timeline-section {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.chanma-timeline-section h5 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chanma-timeline-section-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.chanma-timeline-section-icon.features { background: var(--success-color); }
.chanma-timeline-section-icon.bugfixes { background: var(--danger-color); }
.chanma-timeline-section-icon.improvements { background: var(--warning-color); }
.chanma-timeline-section-icon.security { background: #8e44ad; }
.chanma-timeline-section-icon.removed { background: var(--secondary-color); }

.chanma-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chanma-timeline-list li {
    padding: 8px 0;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
    border-bottom: 1px solid #eee;
}

.chanma-timeline-list li:last-child {
    border-bottom: none;
}

.chanma-timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.chanma-timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.chanma-timeline-empty-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.chanma-timeline-empty-details p {
    margin: 0;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ===== COMPARISON STYLES ===== */
.chanma-comparison-wrapper {
    max-width: 100%;
}

.chanma-comparison-wrapper > h3 {
    margin-bottom: 10px;
}

.chanma-comparison-wrapper > p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.chanma-comparison-form {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.chanma-comparison-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.chanma-version-selector {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.chanma-version-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.chanma-version-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    font-size: 14px;
    color: var(--text-color);
    min-height: 44px;
}

.chanma-comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
}

.chanma-comparison-actions {
    text-align: center;
}

/* COMPARISON RESULTS */
.chanma-comparison-results {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chanma-comparison-results > h3 {
    background: var(--light-gray);
    margin: 0;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.chanma-comparison-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    align-items: center;
}

.chanma-comparison-version {
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.chanma-comparison-version h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 20px;
}

.chanma-comparison-version p {
    margin: 5px 0;
    font-size: 14px;
}

.chanma-comparison-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-muted);
    font-weight: bold;
}

/* COMPARISON TABLE LAYOUT */
.chanma-comparison-details {
    padding: 25px;
}

.chanma-comparison-section {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chanma-comparison-section h4 {
    background: var(--light-gray);
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.chanma-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100px;
}

.chanma-comparison-column {
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.chanma-comparison-column:last-child {
    border-right: none;
}

.chanma-comparison-column h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.chanma-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chanma-comparison-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}

.chanma-comparison-list li.chanma-item-new {
    background: #e8f5e8;
    border-color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.chanma-comparison-list li.chanma-item-common {
    background: #f0f0f1;
    border-color: var(--border-color);
}

.chanma-new-badge {
    background: var(--success-color);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
    letter-spacing: 0.5px;
}

.chanma-no-items {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin: 0;
}

.chanma-notes {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* COMPARISON STATS */
.chanma-comparison-stats {
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    padding: 25px;
}

.chanma-comparison-stats h4 {
    margin: 0 0 20px 0;
    text-align: center;
    color: var(--text-color);
}

.chanma-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.chanma-stat-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.chanma-stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.chanma-stat-number.chanma-positive {
    color: var(--success-color);
}

.chanma-stat-number.chanma-negative {
    color: var(--danger-color);
}

.chanma-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Statistiche Styles */
.chanma-statistics-wrapper {
    max-width: 100%;
}

.chanma-statistics-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.chanma-statistics-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chanma-statistics-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Stats Overview Cards */
.chanma-stats-overview {
    margin-bottom: 40px;
}

.chanma-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.chanma-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chanma-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.chanma-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.chanma-stat-card.success::before { background: var(--success-color); }
.chanma-stat-card.warning::before { background: var(--warning-color); }
.chanma-stat-card.info::before { background: var(--info-color); }

.chanma-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.chanma-stat-card.success .chanma-stat-icon { 
    background: var(--success-color);
    color: white;
}

.chanma-stat-card.warning .chanma-stat-icon { 
    background: var(--warning-color);
    color: white;
}

.chanma-stat-card.info .chanma-stat-icon { 
    background: var(--info-color);
    color: white;
}

.chanma-stat-content .chanma-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 5px;
}

.chanma-stat-content .chanma-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Charts Section */
.chanma-charts-section {
    margin-bottom: 40px;
}

.chanma-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chanma-chart-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.chanma-chart-container.full-width {
    grid-column: 1 / -1;
}

.chanma-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.chanma-chart-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chanma-chart-summary {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 6px 12px;
    border-radius: 15px;
}

.chanma-chart-container canvas {
    height: 300px !important;
}

.chanma-chart-container.full-width canvas {
    height: 400px !important;
}

/* Detailed Stats */
.chanma-detailed-stats {
    margin-bottom: 40px;
}

.chanma-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chanma-details-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.chanma-details-section h4 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top Versions */
.chanma-version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.chanma-version-item:hover {
    background: #f0f0f1;
    transform: translateX(5px);
}

.chanma-version-number {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.chanma-version-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chanma-version-stats {
    text-align: right;
}

.chanma-changes-count {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.chanma-changes-breakdown {
    display: flex;
    gap: 4px;
}

.chanma-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.chanma-badge.features { background: var(--success-color); }
.chanma-badge.bugfixes { background: var(--danger-color); }
.chanma-badge.improvements { background: var(--warning-color); }
.chanma-badge.security { background: var(--info-color); }

/* Recent Activity */
.chanma-activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.chanma-activity-item:hover {
    background: #f0f0f1;
}

.chanma-activity-date {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-white);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    align-self: flex-start;
}

.chanma-activity-version {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.chanma-activity-title {
    font-size: 13px;
    color: var(--text-color);
    margin: 2px 0;
}

.chanma-activity-changes {
    font-size: 11px;
    color: var(--text-muted);
}

/* Insights Section */
.chanma-insights-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.chanma-insights-section h4 {
    margin: 0 0 25px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.chanma-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.chanma-insight-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
}

.chanma-insight-card h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 15px;
}

.chanma-insight-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Changelog Form Styles */
.chanma-changelog-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Header */
.chanma-form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.chanma-form-header-content h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chanma-form-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

.chanma-version-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Form Sections */
.chanma-form-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chanma-section-header {
    background: var(--light-gray);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.chanma-section-header h3 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanma-section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Basic Fields Grid */
.chanma-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px;
}

.chanma-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chanma-field-group.chanma-field-full {
    grid-column: 1 / -1;
}

.chanma-field-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chanma-field-label.required::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.chanma-input, .chanma-textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s ease;
    font-family: inherit;
}

.chanma-input:focus, .chanma-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.chanma-field-description {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.chanma-field-error .chanma-input {
    border-color: var(--danger-color);
}

.chanma-field-error .chanma-field-description {
    color: var(--danger-color);
}

/* Changes Grid */
.chanma-changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 30px;
}

.chanma-change-category {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chanma-change-category:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.chanma-change-category.features:hover { border-color: var(--success-color); }
.chanma-change-category.bugfixes:hover { border-color: var(--danger-color); }
.chanma-change-category.improvements:hover { border-color: var(--warning-color); }
.chanma-change-category.security:hover { border-color: var(--info-color); }
.chanma-change-category.removed:hover { border-color: var(--secondary-color); }

/* Category Headers */
.chanma-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.chanma-category-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    background: var(--primary-color);
}

.features .chanma-category-icon { background: var(--success-color); }
.bugfixes .chanma-category-icon { background: var(--danger-color); }
.improvements .chanma-category-icon { background: var(--warning-color); }
.security .chanma-category-icon { background: var(--info-color); }
.removed .chanma-category-icon { background: var(--secondary-color); }

.chanma-category-info h4 {
    margin: 0 0 4px 0;
    color: var(--text-color);
    font-size: 16px;
}

.chanma-category-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Repeater Fields */
.chanma-repeater-field {
    padding: 20px;
}

.chanma-repeater-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.chanma-repeater-item:last-child {
    margin-bottom: 0;
}

.chanma-repeater-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: all 0.2s ease;
}

.chanma-repeater-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.chanma-remove-item {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chanma-remove-item:hover {
    background: #b32d2e;
    transform: scale(1.1);
}

.chanma-add-item {
    width: 100%;
    padding: 12px 20px;
    background: var(--light-gray);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}

.chanma-add-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Notes Section */
.chanma-form-notes .chanma-field-group {
    padding: 30px;
}

.chanma-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Form Actions */
.chanma-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.chanma-button-primary, .chanma-button-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.chanma-button-primary {
    background: var(--primary-color);
    color: white;
}

.chanma-button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.chanma-button-secondary {
    background: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.chanma-button-secondary:hover {
    color: var(--text-color);
    border-color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .chanma-wrap {
        margin: 10px;
        padding: 0;
    }
    
    .chanma-nav-tab-wrapper {
        flex-direction: column;
    }
    
    .chanma-timeline {
        padding-left: 25px;
    }
    
    .chanma-timeline-icon {
        left: -25px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .chanma-timeline-details {
        grid-template-columns: 1fr;
    }
    
    .chanma-timeline-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .chanma-comparison-selectors {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chanma-comparison-arrow {
        display: none;
    }
    
    .chanma-comparison-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chanma-comparison-vs {
        display: none;
    }
    
    .chanma-comparison-row {
        grid-template-columns: 1fr;
    }
    
    .chanma-comparison-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .chanma-comparison-column:last-child {
        border-bottom: none;
    }
    
    .chanma-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Animation per i nuovi elementi */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chanma-repeater-item {
    animation: slideInUp 0.3s ease;
}

/* ===== SETTINGS PAGE STYLES ===== */
.chanma-settings-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
}

.chanma-settings-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.chanma-settings-section h4 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

/* Position Selector */
.chanma-position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.chanma-position-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--light-gray);
}

.chanma-position-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.chanma-position-option input[type="radio"] {
    display: none;
}

.chanma-position-option input[type="radio"]:checked + .chanma-position-preview {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.chanma-position-option input[type="radio"]:checked ~ span {
    color: var(--primary-color);
    font-weight: 600;
}

.chanma-position-preview {
    width: 80px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: #f8f9fa;
    position: relative;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.chanma-position-indicator {
    width: 12px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    transition: background-color 0.2s ease;
}

.chanma-position-preview.top-left .chanma-position-indicator {
    top: 4px;
    left: 4px;
}

.chanma-position-preview.top-right .chanma-position-indicator {
    top: 4px;
    right: 4px;
}

.chanma-position-preview.bottom-left .chanma-position-indicator {
    bottom: 4px;
    left: 4px;
}

.chanma-position-preview.bottom-right .chanma-position-indicator {
    bottom: 4px;
    right: 4px;
}

.chanma-position-option input[type="radio"]:checked + .chanma-position-preview .chanma-position-indicator {
    background: white;
}

.chanma-position-option span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.chanma-section-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Widget Configuration */
.chanma-widget-config {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.chanma-config-item {
    margin-bottom: 20px;
}

.chanma-config-item:last-child {
    margin-bottom: 0;
}

.chanma-widget-enable {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px !important;
}

/* Widget Title */
.chanma-widget-title {
    margin-bottom: 20px;
}

.chanma-widget-title strong {
    display: block;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
}

.chanma-widget-title .chanma-field-description {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Toggle Control - Nuovo layout pulito */
.chanma-toggle-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #bfdbfe;
}

/* Toggle Switch */
.chanma-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
}

.chanma-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.chanma-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #dc2626;
    border-radius: 34px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chanma-slider:before {
    content: '';
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chanma-toggle-switch input:checked + .chanma-slider {
    background: #16a34a;
}

.chanma-toggle-switch input:checked + .chanma-slider:before {
    transform: translateX(26px);
}

.chanma-toggle-container input:checked + .chanma-toggle-slider::after {
    content: 'ON';
    color: white;
    right: auto;
    left: 8px;
}

.chanma-toggle-content {
    flex: 1;
}

.chanma-toggle-content strong {
    display: block;
    margin-bottom: 4px;
    color: #0c4a6e;
    font-size: 16px;
}

.chanma-toggle-status {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    text-align: center;
    margin-top: 8px;
}

.chanma-toggle-status.active {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.chanma-toggle-status.inactive {
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.chanma-config-item label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
}

.chanma-field-description {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 4px;
}

.chanma-select-field {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s ease;
}

.chanma-select-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Theme Selector */
.chanma-theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.chanma-theme-option {
    display: flex;
    flex-direction: column;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.chanma-theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.chanma-theme-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.chanma-theme-option:hover::before,
.chanma-theme-option.chanma-theme-selected::before {
    opacity: 1;
}

.chanma-theme-option.chanma-theme-selected {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.chanma-theme-option input[type="radio"] {
    display: none;
}

.chanma-theme-option input[type="radio"]:checked + .chanma-theme-preview {
    border-bottom: 4px solid #667eea;
}

.chanma-theme-option input[type="radio"]:checked {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-8px) !important;
}

.chanma-theme-option input[type="radio"]:checked ~ .chanma-theme-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chanma-theme-option input[type="radio"]:checked ~ .chanma-theme-info h5 {
    color: white;
}

.chanma-theme-option input[type="radio"]:checked ~ .chanma-theme-info p {
    color: rgba(255, 255, 255, 0.9);
}

.chanma-theme-option input[type="radio"]:checked + .chanma-theme-preview::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    animation: checkmarkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(360deg);
        opacity: 1;
    }
    75% {
        transform: scale(0.9) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.chanma-theme-preview {
    padding: 20px;
    border-bottom: 3px solid #e5e7eb;
    min-height: 140px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.chanma-theme-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chanma-theme-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.chanma-theme-title {
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chanma-theme-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.chanma-theme-item:hover {
    transform: translateX(4px);
}

.chanma-theme-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chanma-theme-text {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.chanma-theme-info {
    padding: 20px;
    background: #f8fafc;
    transition: all 0.3s ease;
    border-top: 1px solid #e5e7eb;
}

.chanma-theme-info h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    transition: all 0.3s ease;
}

.chanma-theme-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Theme Previews Specific Styles */
.chanma-theme-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chanma-theme-modern .chanma-theme-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chanma-theme-vintage {
    background: linear-gradient(135deg, #d2b48c 0%, #8b7355 100%);
    color: #4a4a4a;
    border: 2px solid #d2b48c;
}

.chanma-theme-vintage .chanma-theme-badge {
    background: #8b4513;
    color: #f4f4f4;
}

.chanma-theme-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f0f0f0;
    border: 1px solid #333;
}

.chanma-theme-dark .chanma-theme-badge {
    background: #00d4ff;
    color: #1a1a1a;
}

.chanma-theme-colorful {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    color: white;
}

.chanma-theme-colorful .chanma-theme-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.chanma-theme-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
}

.chanma-theme-glass .chanma-theme-badge {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.chanma-theme-minimal {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
}

.chanma-theme-minimal .chanma-theme-badge {
    background: #000000;
    color: #ffffff;
}

.chanma-save-settings {
    margin-top: 20px !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
}

/* === GUTENBERG BLOCKS STYLES === */

.chanma-info-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chanma-info-section h3 {
    color: white !important;
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanma-gutenberg-intro {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.chanma-gutenberg-steps {
    margin: 25px 0;
}

.chanma-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.chanma-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.chanma-step-number {
    background: #4CAF50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.chanma-step-content h4 {
    color: white !important;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.chanma-step-content p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.chanma-step-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.chanma-step-content ul li {
    margin: 5px 0;
    line-height: 1.5;
}

.chanma-gutenberg-benefits {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.chanma-gutenberg-benefits h4 {
    color: white !important;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.chanma-gutenberg-benefits ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.chanma-gutenberg-benefits ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chanma-gutenberg-benefits ul li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .chanma-step {
        flex-direction: column;
        text-align: center;
    }
    
    .chanma-step-number {
        margin: 0 auto 15px auto;
    }
}

/* Roadmap Styles */
.chanma-roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
}

.chanma-roadmap-header {
    margin-bottom: 30px;
    text-align: center;
}

.chanma-roadmap-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.chanma-roadmap-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chanma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.chanma-form-column h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.chanma-form-column label {
    display: block;
    margin-bottom: 15px;
}

.chanma-form-column label strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.chanma-form-column input,
.chanma-form-column textarea,
.chanma-form-column select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.chanma-progress-input {
    margin-bottom: 10px !important;
}

.chanma-progress-bar {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.chanma-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.chanma-progress-small {
    height: 12px;
}

.chanma-form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.chanma-roadmap-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.chanma-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.chanma-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.chanma-roadmap-items {
    display: grid;
    gap: 20px;
}

.chanma-roadmap-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.chanma-roadmap-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.chanma-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chanma-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanma-priority-icon {
    font-size: 18px;
}

.chanma-item-order {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.chanma-item-actions {
    display: flex;
    gap: 5px;
}

.chanma-btn-icon {
    background: none;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.chanma-btn-icon:hover {
    background: #f0f0f0;
}

.chanma-item-content {
    margin-bottom: 15px;
}

.chanma-item-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.chanma-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.chanma-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.chanma-status-planned { background: #e3f2fd; color: #1976d2; }
.chanma-status-in-progress { background: #fff3e0; color: #f57c00; }
.chanma-status-completed { background: #e8f5e8; color: #388e3c; }
.chanma-status-on-hold { background: #fce4ec; color: #c2185b; }

.chanma-deadline {
    font-size: 14px;
    color: #666;
}

.chanma-progress-container {
    margin-top: 10px;
}

.chanma-progress-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.chanma-item-edit {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.chanma-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.chanma-edit-actions {
    text-align: right;
}

.chanma-shortcode-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
}

.chanma-shortcode-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.chanma-shortcode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chanma-shortcode-item code {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Easter Egg Styles */
.chanma-easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chanma-easter-egg.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Celebration animation */
.chanma-celebration {
    animation: celebration 3s ease-in-out;
}

@keyframes celebration {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) rotate(1deg); }
    50% { transform: scale(1.01) rotate(-1deg); }
    75% { transform: scale(1.02) rotate(0.5deg); }
}

.chanma-celebration::before {
    content: '🎉🎊✨🌟🎯🚀💝🏆';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    animation: confetti 3s ease-in-out;
    letter-spacing: 20px;
}

@keyframes confetti {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

/* AI Helper Styles */
.chanma-ai-helper-container {
    max-width: 1000px;
    margin: 0 auto;
}

.chanma-ai-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chanma-ai-avatar {
    font-size: 48px;
    margin-right: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.chanma-ai-intro h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.chanma-ai-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.chanma-chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.chanma-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.chanma-message {
    display: flex;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chanma-ai-message {
    justify-content: flex-start;
}

.chanma-user-message {
    justify-content: flex-end;
}

.chanma-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.chanma-ai-message .chanma-message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.chanma-user-message .chanma-message-avatar {
    background: #e3f2fd;
    margin-right: 0;
    margin-left: 15px;
    order: 2;
}

.chanma-message-content {
    max-width: 70%;
    position: relative;
}

.chanma-message-text {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.6;
    white-space: pre-line;
}

.chanma-user-message .chanma-message-text {
    background: #2196f3;
    color: white;
}

.chanma-message-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.chanma-chat-input-container {
    border-top: 1px solid #eee;
    padding: 20px;
}

.chanma-quick-questions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chanma-quick-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.chanma-quick-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.chanma-chat-input-wrapper {
    display: flex;
    align-items: end;
    gap: 15px;
}

#chanma-chat-input {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    resize: vertical;
    min-height: 44px;
    transition: border-color 0.3s ease;
}

#chanma-chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.chanma-send-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chanma-send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.chanma-send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chanma-send-icon {
    font-size: 18px;
}

.chanma-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.chanma-typing-dots {
    display: flex;
    gap: 4px;
}

.chanma-typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.chanma-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.chanma-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chanma-ai-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chanma-info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.chanma-info-card:hover {
    transform: translateY(-5px);
}

.chanma-info-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.chanma-info-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.chanma-developer-note {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chanma-dev-avatar {
    font-size: 32px;
}

.chanma-dev-message {
    flex: 1;
    line-height: 1.6;
}

.chanma-dev-message strong {
    color: #2d3436;
}

.chanma-dev-message small {
    color: #636e72;
    font-style: italic;
}

/* Modal Styles */
.chanma-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.chanma-modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.chanma-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.chanma-modal-close:hover,
.chanma-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.chanma-upgrade-content {
    padding: 40px 30px;
    text-align: center;
}

.chanma-upgrade-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.chanma-feature-icon {
    font-size: 60px;
    margin: 20px 0;
    display: block;
}

.chanma-upgrade-content h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.chanma-upgrade-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.chanma-developer-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.chanma-developer-note p {
    margin: 0;
    color: white;
}

.chanma-upgrade-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.chanma-btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body.chanma-modal-open {
    overflow: hidden;
}

/* Tutorial Settings Section */
.chanma-tutorial-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.chanma-tutorial-info h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.chanma-tutorial-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.chanma-tutorial-status {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.chanma-tutorial-status.completed {
    background: #d4edda;
    color: #155724;
}

.chanma-tutorial-status.pending {
    background: #fff3cd;
    color: #856404;
}

.chanma-restart-tutorial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.chanma-restart-tutorial:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

.chanma-help-links {
    margin-top: 20px;
}

.chanma-help-links h5 {
    margin-bottom: 15px;
    color: #333;
}

.chanma-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.chanma-help-link {
    display: block;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.chanma-help-link:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .chanma-tutorial-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .chanma-help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Shortcode Documentation Styles */
.chanma-shortcode-documentation {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.chanma-shortcode-documentation h5 {
    color: #333;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.chanma-shortcode-basic {
    margin-bottom: 32px;
}

.chanma-code-block {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    position: relative;
    margin: 12px 0;
    overflow-x: auto;
}

.chanma-code-block code {
    background: none;
    color: #f8f8f2;
    font-size: 14px;
    padding: 0;
}

.chanma-copy-code {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chanma-copy-code:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.chanma-copy-code:active {
    transform: translateY(0);
}

.chanma-parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.chanma-param-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #667eea;
}

.chanma-param-item strong {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.chanma-param-type {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: right;
    margin-top: -2px;
}

.chanma-param-item p {
    color: #666;
    font-size: 13px;
    margin: 8px 0 12px 0;
    line-height: 1.4;
}

.chanma-param-item code {
    background: #f5f5f5;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    border: 1px solid #e0e0e0;
}

.chanma-shortcode-examples {
    margin: 32px 0;
}

.chanma-example-item {
    margin: 16px 0;
}

.chanma-example-item h6 {
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.chanma-shortcode-tips {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.chanma-tips-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.chanma-tips-list li {
    margin: 12px 0;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    font-size: 14px;
    line-height: 1.5;
}

.chanma-tips-list li strong {
    color: #10b981;
}

/* Copy notification */
.chanma-copy-success {
    position: fixed;
    top: 50px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    z-index: 999999;
    animation: chanma-copy-slide-in 0.3s ease-out;
}

@keyframes chanma-copy-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chanma-shortcode-documentation {
        padding: 16px;
    }
    
    .chanma-parameters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .chanma-param-item {
        padding: 12px;
    }
    
    .chanma-code-block {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .chanma-copy-code {
        position: static;
        margin-top: 12px;
        display: block;
        width: 100%;
    }
}

/* Color Customization Section (PRO) */
.chanma-pro-section {
    position: relative;
    opacity: 0.8;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.chanma-pro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(102, 126, 234, 0.05) 10px,
        rgba(102, 126, 234, 0.05) 20px
    );
    pointer-events: none;
    border-radius: 8px;
}

.chanma-color-preview-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.chanma-color-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chanma-color-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.chanma-color-category h5 {
    margin: 0 0 16px 0;
    color: #333;
    font-weight: 600;
}

.chanma-color-options.chanma-locked {
    filter: grayscale(50%);
    pointer-events: none;
}

.chanma-color-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chanma-color-item:last-child {
    margin-bottom: 0;
}

.chanma-color-item label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.chanma-color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.chanma-color-input-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.chanma-pro-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    pointer-events: none;
}

.chanma-color-preview {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.chanma-color-preview h5 {
    margin: 0 0 16px 0;
    color: #333;
    font-weight: 600;
}

.chanma-preview-changelog {
    border: 1px solid var(--chanma-border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.chanma-preview-entry {
    background: var(--chanma-card-bg-color, white);
}

.chanma-preview-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--chanma-primary-color, #667eea) 0%, var(--chanma-secondary-color, #764ba2) 100%);
    border-bottom: 1px solid var(--chanma-border-color, #e8eeff);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.chanma-preview-version {
    background: linear-gradient(135deg, var(--chanma-primary-color, #667eea) 0%, var(--chanma-secondary-color, #764ba2) 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
}

.chanma-preview-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.chanma-preview-feature {
    background: var(--chanma-feature-color, #10b981);
}

.chanma-preview-entry h6 {
    margin: 12px 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.chanma-preview-content {
    padding: 0 16px 16px;
}

.chanma-preview-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.chanma-pro-upgrade-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    text-align: center;
}

.chanma-upgrade-colors-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chanma-upgrade-colors-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Color Preset Buttons */
.chanma-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.chanma-preset-btn {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chanma-preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chanma-preset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chanma-color-save {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    background: #f0f9ff;
    border: 1px dashed #0ea5e9;
    border-radius: 12px;
}

.chanma-auto-save-notice {
    margin: 0;
    text-align: center;
    color: #0c4a6e;
    font-size: 14px;
    line-height: 1.5;
}

.chanma-reset-colors-btn {
    padding: 10px 20px;
    border: 2px solid #f59e0b;
    border-radius: 25px;
    background: white;
    color: #f59e0b;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.chanma-reset-colors-btn:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* Unified Save Section */
.chanma-unified-save-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}

.chanma-save-info h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.chanma-save-info p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.chanma-save-all-settings {
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
}

.chanma-save-all-settings:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4) !important;
}

/* Responsive for color section */
@media (max-width: 768px) {
    .chanma-color-preview-container {
        grid-template-columns: 1fr;
    }
    
    .chanma-color-preview {
        position: static;
    }
    
    .chanma-color-presets {
        justify-content: center;
    }
    
    .chanma-color-save {
        flex-direction: column;
    }
    
    .chanma-color-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .chanma-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

