/* Estilização Geral */
.alvim-manage-posts, .alvim-insights, .alvim-create-form, .alvim-edit-form {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Tabela de Posts */
.alvim-posts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.alvim-posts-table th,
.alvim-posts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.alvim-posts-table th {
    background-color: #3498db;
    color: #fff;
}

.alvim-posts-table tr:hover {
    background-color: #f5f6fa;
}

.alvim-posts-table a {
    color: #2980b9;
    text-decoration: none;
    margin-right: 10px;
}

.alvim-posts-table a:hover {
    text-decoration: underline;
}

/* Paginação */
.alvim-pagination {
    margin-top: 20px;
}

.alvim-page-number {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
}

.alvim-page-number.active,
.alvim-page-number:hover {
    background: #3498db;
    color: #fff;
}

/* Formulários */
.alvim-create-form, .alvim-edit-form {
    display: grid;
    gap: 15px;
}

.alvim-field {
    display: flex;
    flex-direction: column;
}

.alvim-field label {
    margin-bottom: 5px;
    color: #34495e;
    font-weight: bold;
}

.alvim-field input[type="text"],
.alvim-field input[type="url"],
.alvim-field select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.alvim-field textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 150px;
}

.alvim-submit-button,
.alvim-cancel-edit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.alvim-submit-button {
    background-color: #2ecc71;
    color: #fff;
}

.alvim-submit-button:hover {
    background-color: #27ae60;
}

.alvim-cancel-edit {
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    margin-left: 10px;
}

.alvim-cancel-edit:hover {
    background-color: #c0392b;
}

/* Tooltip */
.alvim-tooltip {
    cursor: help;
    color: #0073aa;
    margin-left: 5px;
}

.alvim-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

/* Imagem Destacada */
#featured-image-preview img {
    margin-top: 10px;
    max-width: 150px;
}

#featured-image-preview button {
    margin-top: 5px;
    padding: 5px 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#featured-image-preview button:hover {
    background: #c0392b;
}

#upload-featured-image {
    padding: 8px 15px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#upload-featured-image:hover {
    background: #2980b9;
}

/* Insights */
.alvim-insights-title {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.alvim-post-insights {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

.alvim-post-title {
    color: #34495e;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.alvim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.alvim-metric-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.alvim-metric-card h5 {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.alvim-metric-value {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: bold;
}

.alvim-insights-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.alvim-insight-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.alvim-insight-card:hover {
    transform: translateY(-5px);
}

.alvim-insight-title {
    color: #2980b9;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.alvim-insight-description {
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.5;
}

.alvim-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}