/* Styles for view-palettes.php */
#ctmd-palettes-manager {
    margin-top: 20px;
}

.ctmd-theme-group-container {
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 950px;
}

.ctmd-theme-group-container.active {
    border-color: #00a0d2;
    box-shadow: 0 0 5px rgba(0, 160, 210, 0.5);
}

.ctmd-theme-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ctmd-theme-group-title-swatches {
    display: flex;
    align-items: center;
}

.ctmd-theme-group-title-swatches h3 {
    margin: 0;
}

.ctmd-active-theme-indicator {
    background-color: #00a0d2;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.ctmd-source-swatches {
    margin-left: 15px;
    display: flex;
    gap: 5px;
}

.ctmd-source-swatches span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ctmd-theme-group-actions form {
    display: inline-block;
    vertical-align: middle;
}

.ctmd-theme-group-actions .button {
    margin-left: 10px;
}

.ctmd-palettes-manager-container .notice {
    margin-bottom: 15px;
}

.ctmd-accordion-header {
    background-color: #f6f7f7;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctmd-accordion-header .dashicons-warning {
    color: #f5a623;
}

.ctmd-accordion-content {
    display: none;
    border: 1px solid #e5e5e5;
    border-top: 0;
    padding: 15px;
}

.ctmd-palette-actions {
    margin-bottom: 15px;
}

.ctmd-palette-actions form {
    display: inline-block;
    margin-right: 10px;
}

.ctmd-contrast-warning-icon {
    color: #f5a623;
    margin-right: 5px;
}

.ctmd-contrast-ratio {
    color: #f5a623;
    font-weight: bold;
    vertical-align: text-bottom;
    font-size: 12px;
    margin-right: 5px;
}

.ctmd-fix-contrast-btn .ctmd-contrast-ratio {
    color: #d63638;
    vertical-align: top;
}

.ctmd-color-swatch {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 1px solid #ccc;
    vertical-align: middle;
    margin-right: 5px;
}

hr.ctmd-section-divider {
    margin: 40px 0;
}

.ctmd-palette-card {
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 950px;
}

.ctmd-palette-card h3 {
    margin-top: 0;
}

.ctmd-palette-card .ctmd-palette-actions form {
    vertical-align: middle;
}

.inactive-row {
    opacity: 0.5;
}

.ctmd-copy-me {
    cursor: pointer;
}

.ctmd-copy-me.inactive {
    cursor: default;
}

.ctmd-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-weight: bold;
    border: 1px solid #a7aaad;
    border-radius: 50%;
    background-color: #fff;
    line-height: 1;
}

#ctmd-palettes-manager .button.delete {
    color: #b32d2e;
    border-color: #b32d2e;
    background: #fff;
    vertical-align: middle;
}

#ctmd-palettes-manager .button.delete:hover,
#ctmd-palettes-manager .button.delete:focus {
    background: #f7f7f7;
    border-color: #b32d2e;
    color: #8c2222;
}

.ctmd-fix-contrast-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d63638;
    padding: 0 5px;
    vertical-align: middle;
    transition: color 0.2s;
}

.ctmd-fix-contrast-btn:hover {
    color: #a02324;
}

.ctmd-fix-contrast-btn .dashicons {
    font-size: 18px;
    line-height: 1;
}

.ctmd-fix-contrast-btn.is-fixing .dashicons::before {
    content: "\f463"; /* Spinner icon */
    display: inline-block;
    animation: ctmd-rotation 1s infinite linear;
}

@keyframes ctmd-rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
}
