/**
 * Guard Dog Dashboard Styles
 *
 * @package GuardDog
 * @since 1.8.0
 */

/* Dashboard Layout */
.guard-dog-dashboard {
    margin: 20px 0;
}

.guard-dog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #23282d;
}

.guard-dog-title .dashicons {
    font-size: 24px;
    color: #0073aa;
}

.guard-dog-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.guard-dog-dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Cards */
.guard-dog-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guard-dog-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

/* Feature Cards Grid */
.guard-dog-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.guard-dog-feature-card {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.2s ease;
}

.guard-dog-feature-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.guard-dog-feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.guard-dog-feature-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
    color: white;
    border-radius: 50%;
}

.guard-dog-feature-title {
    flex: 1;
}

.guard-dog-feature-title h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
}

.guard-dog-feature-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guard-dog-feature-status.enabled {
    background: #d4edda;
    color: #155724;
}

.guard-dog-feature-status.partial {
    background: #fff3cd;
    color: #856404;
}

.guard-dog-feature-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.guard-dog-feature-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.guard-dog-feature-stats {
    margin-bottom: 15px;
}

.guard-dog-feature-stats small {
    color: #888;
    font-style: italic;
}

.guard-dog-feature-action {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.guard-dog-feature-action:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Activity List */
.guard-dog-activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.guard-dog-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guard-dog-activity-item:last-child {
    border-bottom: none;
}

.guard-dog-activity-icon {
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.guard-dog-activity-content {
    flex: 1;
    min-width: 0;
}

.guard-dog-activity-title {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.guard-dog-activity-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.guard-dog-activity-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.guard-dog-view-all {
    margin-top: 15px;
    text-align: center;
}

.guard-dog-view-all a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.guard-dog-view-all a:hover {
    text-decoration: underline;
}

.guard-dog-no-activity {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Stats Grid */
.guard-dog-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.guard-dog-stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.guard-dog-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.guard-dog-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Security Status */
.guard-dog-security-status h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #23282d;
}

.guard-dog-status-indicator {
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.guard-dog-status-indicator.secure {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.guard-dog-status-indicator.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.guard-dog-status-indicator.danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Quick Actions */
.guard-dog-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.guard-dog-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #23282d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.guard-dog-quick-action:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    text-decoration: none;
}

.guard-dog-quick-action .dashicons {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .guard-dog-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .guard-dog-features-grid {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guard-dog-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-activity-meta {
        flex-direction: column;
        gap: 5px;
    }
} 