.alvim-insights {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alvim-insights-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.alvim-post-insights {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
}

.alvim-post-title {
    color: #34495e;
    font-size: 18px;
    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: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.alvim-metric-card:hover {
    background: #ecf0f1;
}

.alvim-metric-card h5 {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.alvim-metric-value {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.alvim-insights-section {
    margin-top: 20px;
}

.alvim-insight-card {
    background: #fff;
    padding: 10px;
    border-left: 4px solid #3498db;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alvim-insight-card:hover {
    background: #f5f6fa;
}

.alvim-insight-title {
    color: #34495e;
    font-size: 16px;
    margin-bottom: 5px;
}

.alvim-insight-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.alvim-divider {
    border: 0;
    height: 1px;
    background: #ecf0f1;
    margin: 20px 0;
}

.alvim-pagination {
    text-align: center;
    margin-top: 20px;
}

.alvim-page-number {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.alvim-page-number.active, .alvim-page-number:hover {
    background: #3498db;
    color: #fff;
}

.alvim-manage-posts, .alvim-create-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alvim-manage-posts h3, .alvim-create-form h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
}

.alvim-posts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.alvim-posts-table th, .alvim-posts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.alvim-posts-table th {
    background: #3498db;
    color: #fff;
}

.alvim-posts-table td {
    background: #f9f9f9;
}

.alvim-action-button {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 5px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.alvim-action-button:hover {
    background: #27ae60;
}

.alvim-action-button.alvim-delete {
    background: #e74c3c;
}

.alvim-action-button.alvim-delete:hover {
    background: #c0392b;
}

.alvim-edit-form, .alvim-create-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alvim-field {
    margin-bottom: 15px;
}

.alvim-field label {
    display: block;
    color: #34495e;
    font-weight: bold;
    margin-bottom: 5px;
}

.alvim-field input[type="text"],
.alvim-field input[type="url"],
.alvim-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.alvim-field textarea {
    width: 100%;
    min-height: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.alvim-submit-button {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alvim-submit-button:hover {
    background: #2980b9;
}

.alvim-cancel-edit {
    color: #e74c3c;
    text-decoration: none;
    margin-left: 10px;
}

.alvim-cancel-edit:hover {
    text-decoration: underline;
}

#featured-image-preview {
    margin: 10px 0;
}

#featured-image-preview img {
    max-width: 150px;
    margin-right: 10px;
}

#remove-featured-image {
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

#remove-featured-image:hover {
    background: #c0392b;
}

.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;
}