/**
 * VMP Security Dashboard Widget Styles
 * @since 2.2.2
 */

.vmpfence-dashboard-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* VMP Security Branding Header */
.vmpfence-widget-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-bottom: 2px solid #191970;
    margin-bottom: 20px;
}

.vmpfence-logo {
    margin-right: 15px;
    flex-shrink: 0;
}

.vmpfence-tagline {
    display: flex;
    flex-direction: column;
}

.vmpfence-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #191970;
    line-height: 1.2;
    margin-bottom: 3px;
}

.vmpfence-brand-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.vmpfence-wp-highlight {
    font-weight: 600;
    color: #191970;
}

/* Widget Section */
.vmpfence-widget-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.vmpfence-widget-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Activity Stats Grid */
.vmpfence-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.vmpfence-stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.vmpfence-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #191970;
    margin-bottom: 5px;
}

.vmpfence-stat-label {
    font-size: 13px;
    color: #666;
}

/* Widget Title */
.vmpfence-widget-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #23282d;
}

/* Widget Table */
.vmpfence-widget-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.vmpfence-widget-data-table thead th {
    background: #32373c;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #23282d;
}

.vmpfence-widget-data-table tbody td {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    color: #555;
}

.vmpfence-widget-data-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.vmpfence-widget-data-table tbody tr:hover {
    background: #f0f0f0;
}

.vmpfence-widget-data-table p {
    margin: 10px 0;
    color: #666;
    font-style: italic;
}

/* Widget Actions */
.vmpfence-widget-actions {
    margin-top: 12px;
}

.vmpfence-widget-actions .button {
    font-size: 12px;
    color: #fff;
    border: none;
    padding: 4px 12px;
    height: auto;
    line-height: 1.5;
    background: #191970 !important;
}

.vmpfence-widget-actions .button:hover {
    background: #00008b !important;
    color: #fff !important;
}
/* Updates Section */
.vmpfence-updates-section {
    font-size: 13px;
}

.vmpfence-update-category {
    margin-bottom: 15px;
}

.vmpfence-update-category:last-child {
    margin-bottom: 0;
}

.vmpfence-update-category h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #23282d;
}

.vmpfence-update-category p {
    margin: 5px 0;
    color: #555;
}

.vmpfence-update-list {
    margin: 8px 0 8px 20px;
    list-style: disc;
}

.vmpfence-update-list li {
    margin: 4px 0;
    color: #555;
    font-size: 12px;
}

.vmpfence-update-category .button {
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 12px;
    height: auto;
    line-height: 1.5;
}

.vmpfence-update-category .button-primary {
    background: #191970 !important;
    border-color: #191970 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .vmpfence-stat-grid {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-widget-data-table {
        font-size: 12px;
    }
    
    .vmpfence-widget-data-table thead th,
    .vmpfence-widget-data-table tbody td {
        padding: 6px 8px;
    }
}
