.cpt-list {
    margin: 20px 0;
}

.cpt-item {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    padding: 15px;
}

.cpt-item h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cpt-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.field-group {
    margin-bottom: 20px;
}

.field-group h4 {
    margin-bottom: 10px;
    color: #23282d;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.field-group input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
}

.submit-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    text-align: right;
}

.cpt-enabled {
    margin-right: 8px;
}

/* Estilo do botão de gerar PDF */
.generate-pdf-btn {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    text-decoration: none;
    text-shadow: none;
    padding: 4px 12px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    line-height: 2.15384615 !important;
    min-height: 30px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
}

.generate-pdf-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

.generate-pdf-btn:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1 !important;
    outline: none !important;
}

/* Estilo do loader */
.generate-pdf-btn.loading {
    color: transparent !important;
    pointer-events: none !important;
    position: relative !important;
    padding-left: 28px !important;
}

.generate-pdf-btn.loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-top-color: transparent;
    animation: pdf-button-spin 0.8s linear infinite;
    box-sizing: border-box;
}

@keyframes pdf-button-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos da página de créditos */
.pdf-generator-credits {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pdf-generator-credits h1 {
    color: #1d2327;
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 1rem 0;
    padding: 9px 0 4px 0;
    line-height: 1.3;
}

.credits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.author-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.author-info h2 {
    color: #1d2327;
    font-size: 28px;
    margin: 0 0 10px 0;
    text-align: center;
}

.author-title {
    color: #646970;
    font-size: 18px;
    margin: 0 0 30px 0;
    text-align: center;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: #e5e5e5;
}

.contact-item .dashicons {
    color: #2271b1;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.contact-item a {
    color: #2271b1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #135e96;
}

.plugin-info {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.plugin-info h3 {
    color: #1d2327;
    font-size: 24px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.plugin-info p {
    color: #50575e;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.plugin-info h4 {
    color: #1d2327;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.plugin-info ul {
    margin: 0;
    padding-left: 20px;
}

.plugin-info li {
    color: #50575e;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    padding-left: 5px;
}

.plugin-info li::before {
    content: "•";
    color: #2271b1;
    font-weight: bold;
    margin-right: 10px;
}

/* Estilos para os campos ordenáveis */
.sortable-fields {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.field-item {
    padding: 8px;
    margin: 4px 0;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    cursor: move;
    display: flex;
    align-items: center;
}

.field-item:hover {
    background: #f5f5f5;
}

.field-item .handle {
    margin-right: 10px;
    color: #999;
    cursor: move;
}

.field-item.ui-sortable-helper {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.field-item.ui-sortable-placeholder {
    visibility: visible !important;
    background: #f0f0f0;
    border: 1px dashed #ccc;
}

/* Responsividade */
@media screen and (max-width: 782px) {
    .credits-container {
        grid-template-columns: 1fr;
    }
    
    .author-card, .plugin-info {
        margin-bottom: 20px;
    }
}
