/* Portfolio Dashboard Styles */
.petruth-dashboard-wrap {
    padding: 20px;
}

.petruth-dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.petruth-dashboard-header h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.petruth-dashboard-header h1 .dashicons-portfolio {
    color: #2271b1;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.petruth-dashboard-header .description {
    color: #646970;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.petruth-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.petruth-charts-section {
    grid-template-columns: 1fr 350px;
}

/* Card Styles */
.petruth-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petruth-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.petruth-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.petruth-card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.petruth-card-content {
    flex: 1;
}

.petruth-card h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.petruth-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
    line-height: 1;
}

.petruth-card-subtitle {
    font-size: 13px;
    color: #8c8f94;
    display: block;
    line-height: 1.4;
}

.petruth-card-link {
    display: inline-block;
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.petruth-card-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Quick Actions Card */
.quick-actions-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #d1d5db;
}

.quick-actions-card h3 {
    margin-bottom: 16px;
}

.petruth-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.petruth-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #1d2327;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.petruth-action-btn:hover {
    background: #f8f9fa;
    border-color: #2271b1;
    color: #2271b1;
}

.petruth-action-btn .dashicons {
    color: #646970;
    transition: color 0.2s ease;
}

.petruth-action-btn:hover .dashicons {
    color: #2271b1;
}

/* Card Header */
.petruth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.petruth-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.petruth-card-period {
    font-size: 13px;
    color: #8c8f94;
    background: #f6f7f7;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Chart Container */
.petruth-chart-container {
    height: 250px;
    position: relative;
}

/* Recent Items Card */
.recent-items-card {
    padding: 0;
}

.petruth-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.petruth-recent-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.petruth-recent-item:last-child {
    border-bottom: none;
}

.petruth-recent-item:hover {
    background-color: #f8f9fa;
}

.petruth-recent-item-main {
    display: flex;
    flex-direction: column;
}

.petruth-recent-title {
    font-weight: 500;
    color: #1d2327;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.petruth-recent-title:hover {
    color: #2271b1;
}

.petruth-recent-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #646970;
}

.petruth-recent-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.petruth-recent-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.petruth-view-link {
    color: #646970;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    font-size: 12px;
}

.petruth-view-link:hover {
    color: #2271b1;
}

.petruth-view-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.petruth-view-all {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.petruth-view-all:hover {
    text-decoration: underline;
    color: #135e96;
}

/* Empty State */
.petruth-empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.petruth-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.petruth-empty-state p {
    color: #646970;
    margin: 0 0 20px 0;
    font-size: 15px;
}

/* Resources Card */
.resources-card {
    margin-top: 30px;
}

.resources-card h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    color: #1d2327;
    font-weight: 600;
}

.petruth-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.petruth-resource {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petruth-resource:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.petruth-resource .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
    margin-bottom: 16px;
}

.petruth-resource h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.petruth-resource p {
    color: #646970;
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}

.petruth-resource .button {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.petruth-resource .button:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .petruth-charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .petruth-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .petruth-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .petruth-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .petruth-card-period {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .petruth-dashboard-wrap {
        padding: 15px 10px;
    }
    
    .petruth-card {
        padding: 20px 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .petruth-card-content {
        width: 100%;
    }
}